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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin547
RA = 28.1614, Dec = 1.7894
tmin = 381110401, tmax = 381369601
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='898384', job_status='RUN', time_executed='2021-08-14 19:39:35.549209', time_epoch_executed='1628995175.55' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898384/ft1_4FGL_J0152.6+0147_daily_bin547.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898384/ft2_4FGL_J0152.6+0147_daily_bin547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898384/ft1_4FGL_J0152.6+0147_daily_bin547.fits outfile=/scratch/kocevski/898384/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin547.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=381110401.0 tmax=381369601.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 14.15
user 4.44
sys 9.58

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898384/ft1_filtered_4FGL_J0152.6+0147_daily_bin547.fits" evtable="EVENTS" scfile=/scratch/kocevski/898384/ft2_4FGL_J0152.6+0147_daily_bin547.fits sctable="SC_DATA" outfile=/scratch/kocevski/898384/ltcube_381110401_381369601_4FGL_J0152.6+0147_daily_bin547.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/898384/ft2_4FGL_J0152.6+0147_daily_bin547.fits
.....................!
real 23.85
user 12.75
sys 10.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898384/ft1_filtered_4FGL_J0152.6+0147_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/898384/ft2_4FGL_J0152.6+0147_daily_bin547.fits sctable="SC_DATA" expcube=/scratch/kocevski/898384/ltcube_381110401_381369601_4FGL_J0152.6+0147_daily_bin547.fits outfile=/scratch/kocevski/898384/expmap_381110401_381369601_4FGL_J0152.6+0147_daily_bin547.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/898384/ltcube_381110401_381369601_4FGL_J0152.6+0147_daily_bin547.fits
.....................!
real 206.27
user 185.39
sys 17.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 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/898384/ft1_filtered_4FGL_J0152.6+0147_daily_bin547.fits scfile=/scratch/kocevski/898384/ft2_4FGL_J0152.6+0147_daily_bin547.fits outfile=/scratch/kocevski/898384/cmap_381110401_381369601_4FGL_J0152.6+0147_daily_bin547.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 9.71
user 0.38
sys 9.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898384/ft1_filtered_4FGL_J0152.6+0147_daily_bin547.fits scfile=/scratch/kocevski/898384/ft2_4FGL_J0152.6+0147_daily_bin547.fits outfile=/scratch/kocevski/898384/cmap_HighResolution_381110401_381369601_4FGL_J0152.6+0147_daily_bin547.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 9.70
user 0.40
sys 9.26

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/898384/ft1_filtered_4FGL_J0152.6+0147_daily_bin547.fits', '/scratch/kocevski/898384/ft2_4FGL_J0152.6+0147_daily_bin547.fits', expMap='/scratch/kocevski/898384/expmap_381110401_381369601_4FGL_J0152.6+0147_daily_bin547.fits', expCube='/scratch/kocevski/898384/ltcube_381110401_381369601_4FGL_J0152.6+0147_daily_bin547.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/898384/Model_4FGL_J0152.6+0147_daily_bin547.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/898384/ft1_filtered_4FGL_J0152.6+0147_daily_bin547.fits
Spacecraft file(s): /scratch/kocevski/898384/ft2_4FGL_J0152.6+0147_daily_bin547.fits
Exposure map: /scratch/kocevski/898384/expmap_381110401_381369601_4FGL_J0152.6+0147_daily_bin547.fits
Exposure cube: /scratch/kocevski/898384/ltcube_381110401_381369601_4FGL_J0152.6+0147_daily_bin547.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/898384/Model_4FGL_J0152.6+0147_daily_bin547.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) = 4911.12080329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.885       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21824E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10861E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.2218       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14138E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8415       1.0000         .10000E-03   10000.    
    10 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13193E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3695       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .12470       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12224E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10675E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8562       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.858       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .75771       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2497       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=   4911.117     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2044 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    106.25       -.21076E-05** at limit **
   2  norm          10.886        2.7362       -.65706E-07   -.25079E-03
   3  Prefactor     .10000E-03    20.317       -.53438E-07** at limit **
   4  Prefactor     .10001E-03    18.813       -.14917E-04** at limit **
   5  Prefactor     .10000E-03    4.2308        .94818E-08** at limit **
   6  Prefactor     .10000E-03    32.830       -.71039E-06** at limit **
   7  norm          5.2258        7.8251        .65182E-06    .57594E-03
   8  Prefactor     .10008E-03    68.456        .39857E-05** at limit **
   9  Prefactor     2.8450        4.3420        .10380E-06    .17627E-04
  10  norm          .10000E-03    7.3815       -.84408E-07** at limit **
  11  Prefactor     .10000E-03    9.2355       -.20334E-06** at limit **
  12  norm          1.3741        4.5257        .73595E-05    .71002E-05
  13  Prefactor     .10000E-03    .76119       -.70076E-07** at limit **
  14  norm          .12646        .68742        .19680E-06   -.27080E-04
  15  Prefactor     .10001E-03    29.399        .11256E-05** at limit **
  16  Prefactor     .10002E-03    106.83       -.21206E-05** at limit **
  17  Prefactor     6.8724        15.874        .34049E-06    .17912E-04
  18  Prefactor     18.851        21.154        .46900E-06    .16944E-03
  19  Normalizat    .75758        .21137       -.54370E-06    .32055E-03
  20  Prefactor     1.2495        .17305       -.38224E-06    .75291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  norm       = 10.8858
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 5.22584
  Prefactor  = 0.000100077
  Prefactor  = 2.84498
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37413
  Prefactor  = 0.0001
  norm       = 0.126462
  Prefactor  = 0.000100005
  Prefactor  = 0.000100021
  Prefactor  = 6.87242
  Prefactor  = 18.8514
  Normalizat = 0.757583
  Prefactor  = 1.24951
 **********
 **   18 **HESSE 
 **********

 FCN=   4911.117     FROM HESSE     STATUS=OK           289 CALLS     2333 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    106.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.886        2.7164        .55669E-04   -1.5048    
   3  Prefactor     .10000E-03    20.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    42.172        .34812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2368        .14078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.2258        7.8456        .17591E-03   -1.5251    
   8  Prefactor     .10008E-03    70.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8450        4.3279        .17440E-03   -1.5371    
  10  norm          .10000E-03    7.3879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.5333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3741        5.3420        .15054E-02   -1.5474    
  13  Prefactor     .10000E-03    .76429        .59711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .12646        1.2691        .10888E-02   -1.5637    
  15  Prefactor     .10001E-03    29.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    107.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8724        15.891        .15323E-03   -1.5184    
  18  Prefactor     18.851        21.160        .92231E-04   -1.4839    
  19  Normalizat    .75758        .23680        .30832E-03   -1.0166    
  20  Prefactor     1.2495        .19774        .20551E-03   -.84821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14057e-08
Minuit parameter uncertainties:
  1  0.0028184
  2  2.71639
  3  6.0174e-07
  4  0.000985017
  5  2.20116e-06
  6  0.000534266
  7  7.84717
  8  0.00466248
  9  4.32838
  10  2.27299e-05
  11  4.87455e-05
  12  5.34389
  13  5.7249e-06
  14  0.800926
  15  0.00080685
  16  0.00298285
  17  15.9006
  18  21.1682
  19  0.237117
  20  0.197859
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.845e+00  4.328e+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:  1.250e+00  1.979e-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:  7.576e-01  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/898384/likelihoodResults_381110401_381369601_4FGL_J0152.6+0147_daily_bin547.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) = 4910.91820295
delta logL = 0.198845193238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4910.91421669
delta logL = 0.202831457372

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3278       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6167       1.0000          .0000       10.000    
     3 'Normalizat'    .73731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2581       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=   4910.914     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      243 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3269        44.950        .95326E-02    .13702E-02
   2  Index         2.6177        3.5442        .10535        .23879E-03
   3  Normalizat    .73701        .64390E-01    .70558E-01    .24364E-03
   4  Prefactor     1.2583        .50547E-01    .33383E-01   -.48871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32691
  Index      = 2.61771
  Normalizat = 0.737011
  Prefactor  = 1.25834
 **********
 **   18 **HESSE 
 **********

 FCN=   4910.914     FROM HESSE     STATUS=OK            31 CALLS      274 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3269        4.6178        .92884E-04   -1.5478    
   2  Index         2.6177        1.5288        .64810E-02   -.49662    
   3  Normalizat    .73701        .23668        .31226E-03   -1.0245    
   4  Prefactor     1.2583        .19569        .20485E-03   -.84555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7168e-10
Minuit parameter uncertainties:
  1  4.61907
  2  1.56144
  3  0.237011
  4  0.195803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898384': 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) = 4910.91421516
delta logL = 0.202832985028

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.327e+00  4.619e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.618e+00  1.561e+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:  1.258e+00  1.958e-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:  7.370e-01  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.62 +/- 1.56
Photon Flux (Free Index): 3.40e-08 +/- 4.73e-08
Energy Flux (Free Index): 8.76e-06 +/- 1.20e-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/898384/cmap_HighResolution_381110401_381369601_4FGL_J0152.6+0147_daily_bin547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', comment='SUCCESS', energy_flux2='8.76e-06', dlogl='2.03e-01', photon_flux2='3.40e-08', job_status='DONE', time_completed='2021-08-14 19:51:08.707124', photon_index_error2='1.56', photon_index2='2.62', ts='0.67', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='8.43e-08', energy_flux_error2='1.20e-05', EG='0.76', time_epoch_completed='1628995868.71', return_code='0', job_id='898384', GAL2='1.26', EG2='0.74', return_code2='0', photon_flux_error2='4.73e-08', ts2='1.08', photon_index='1.98' WHERE bin_id='547' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:51:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 898384: <4FGL_J0152.6+0147_daily_bin547> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin547> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:39 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:36:51 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:36:51 2021
Terminated at Sat Aug 14 19:51:11 2021
Results reported at Sat Aug 14 19:51:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin547 28.1614 1.7894 381110401 381369601 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 :                                   826.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            932 sec.

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

