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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin509
RA = 28.1614, Dec = 1.7894
tmin = 371260801, tmax = 371520001
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='898328', job_status='RUN', time_executed='2021-08-14 19:40:08.045402', time_epoch_executed='1628995208.05' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898328

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898328/ft1_4FGL_J0152.6+0147_daily_bin509.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898328/ft2_4FGL_J0152.6+0147_daily_bin509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898328/ft1_4FGL_J0152.6+0147_daily_bin509.fits outfile=/scratch/kocevski/898328/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin509.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=371260801.0 tmax=371520001.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 9.10
user 5.10
sys 3.79

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898328/ft2_4FGL_J0152.6+0147_daily_bin509.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/898328/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin509.fits evtable="EVENTS" outfile="/scratch/kocevski/898328/ft1_filtered_4FGL_J0152.6+0147_daily_bin509.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898328/ft1_filtered_4FGL_J0152.6+0147_daily_bin509.fits" evtable="EVENTS" scfile=/scratch/kocevski/898328/ft2_4FGL_J0152.6+0147_daily_bin509.fits sctable="SC_DATA" outfile=/scratch/kocevski/898328/ltcube_371260801_371520001_4FGL_J0152.6+0147_daily_bin509.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/898328/ft2_4FGL_J0152.6+0147_daily_bin509.fits
.....................!
real 17.05
user 12.65
sys 4.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898328/ft1_filtered_4FGL_J0152.6+0147_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/898328/ft2_4FGL_J0152.6+0147_daily_bin509.fits sctable="SC_DATA" expcube=/scratch/kocevski/898328/ltcube_371260801_371520001_4FGL_J0152.6+0147_daily_bin509.fits outfile=/scratch/kocevski/898328/expmap_371260801_371520001_4FGL_J0152.6+0147_daily_bin509.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/898328/ltcube_371260801_371520001_4FGL_J0152.6+0147_daily_bin509.fits
.....................!
real 196.26
user 186.02
sys 9.68

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/898328/ft1_filtered_4FGL_J0152.6+0147_daily_bin509.fits scfile=/scratch/kocevski/898328/ft2_4FGL_J0152.6+0147_daily_bin509.fits outfile=/scratch/kocevski/898328/cmap_371260801_371520001_4FGL_J0152.6+0147_daily_bin509.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 4.12
user 0.37
sys 3.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898328/ft1_filtered_4FGL_J0152.6+0147_daily_bin509.fits scfile=/scratch/kocevski/898328/ft2_4FGL_J0152.6+0147_daily_bin509.fits outfile=/scratch/kocevski/898328/cmap_HighResolution_371260801_371520001_4FGL_J0152.6+0147_daily_bin509.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 4.12
user 0.37
sys 3.65

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.649       1.0000         .10000E-03   10000.    
     2 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .49360E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49398E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.5683       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8679       1.0000         .10000E-03   10000.    
    10 'norm      '    8.7578       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7233       1.0000         .10000E-03   10000.    
    12 'norm      '    5.8475       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10559E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9147       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.164       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1298       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0126       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=   4681.861     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2046 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.730        78.550       -.14057E-06    .57982E-04
   2  norm          .10000E-03    .71913       -.71294E-06** at limit **
   3  Prefactor     .10023E-03    226.83        .23044E-04** at limit **
   4  Prefactor     .10008E-03    9.6474       -.37963E-05** at limit **
   5  Prefactor     .10000E-03    7.0355        .91975E-07** at limit **
   6  Prefactor     .10000E-03    30.651       -.92061E-06** at limit **
   7  norm          5.5683        6.0306       -.53403E-07    .88642E-05
   8  Prefactor     .10000E-03    34.227        .51079E-06** at limit **
   9  Prefactor     1.8670        5.9615        .17237E-06    .43983E-03
  10  norm          8.7576        13.677       -.11554E-06    .52350E-05
  11  Prefactor     9.7221        8.3582       -.99105E-07    .26032E-04
  12  norm          5.8475        5.6778       -.11011E-06    .48455E-05
  13  Prefactor     .10000E-03    .81217        .14285E-07** at limit **
  14  norm          .10000E-03    .78545       -.27472E-06** at limit **
  15  Prefactor     .10000E-03    9.7863       -.12877E-06** at limit **
  16  Prefactor     7.9098        72.859        .73316E-06    .17745E-04
  17  Prefactor     .10000E-03    6.3250       -.13260E-07** at limit **
  18  Prefactor     10.165        24.656       -.59263E-06   -.52332E-05
  19  Normalizat    1.1298        .20838        .85461E-06    .56703E-03
  20  Prefactor     1.0126        .17551        .36399E-06    .59326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.7298
  norm       = 0.0001
  Prefactor  = 0.000100229
  Prefactor  = 0.000100076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.56828
  Prefactor  = 0.0001
  Prefactor  = 1.86696
  norm       = 8.75764
  Prefactor  = 9.72213
  norm       = 5.84753
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.90978
  Prefactor  = 0.0001
  Prefactor  = 10.1652
  Normalizat = 1.12981
  Prefactor  = 1.01264
 **********
 **   18 **HESSE 
 **********

 FCN=   4681.861     FROM HESSE     STATUS=OK           293 CALLS     2339 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.730        79.880        .26418E-03   -1.4187    
   2  norm          .10000E-03    .92392        .10494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10023E-03    251.88        .42328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10008E-03    18.468        .26582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.0819        .17723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.5683        6.0337        .17025E-03   -1.5236    
   8  Prefactor     .10000E-03    34.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8670        6.2000        .14766E-02   -1.5435    
  10  norm          8.7576        13.688        .13545E-03   -1.5116    
  11  Prefactor     9.7221        8.3620        .12851E-03   -1.5084    
  12  norm          5.8475        5.6817        .15264E-03   -1.5224    
  13  Prefactor     .10000E-03    .82032        .60192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.0448        .11595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.7994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.9098        73.239        .14252E-03   -1.5145    
  17  Prefactor     .10000E-03    6.3303        .16807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.165        24.688        .12568E-03   -1.5070    
  19  Normalizat    1.1298        .24149        .25570E-03   -.88800    
  20  Prefactor     1.0126        .20593        .22325E-03   -.92309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74977e-09
Minuit parameter uncertainties:
  1  80.029
  2  9.00723e-06
  3  0.0152678
  4  0.00237136
  5  7.03018e-06
  6  0.000224869
  7  6.03435
  8  0.000127217
  9  6.20213
  10  13.6925
  11  8.36305
  12  5.68226
  13  2.07349e-07
  14  8.61351e-07
  15  2.0346e-05
  16  48.2152
  17  3.93297e-06
  18  24.7124
  19  0.241725
  20  0.206091
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.867e+00  6.202e+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.013e+00  2.061e-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.130e+00  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/898328/likelihoodResults_371260801_371520001_4FGL_J0152.6+0147_daily_bin509.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) = 4681.5843364
delta logL = 0.276313534406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4681.53490924
delta logL = 0.325740701841

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91456       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8653       1.0000          .0000       10.000    
     3 'Normalizat'    1.0903       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0286       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=   4681.535     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      221 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91056        24.153        .12860E-01    .22677E-02
   2  Index         2.8677        2.9109        .92563E-01    .31646E-03
   3  Normalizat    1.0900        .50200E-01    .58713E-01    .20386E-05
   4  Prefactor     1.0290        .41579E-01    .41374E-01   -.22538E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.910558
  Index      = 2.86769
  Normalizat = 1.08996
  Prefactor  = 1.029
 **********
 **   18 **HESSE 
 **********

 FCN=   4681.535     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      252 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91056        67.495        .77915E-04   -1.5517    
   2  Index         2.8677        6.2674        .55383E-02   -.44058    
   3  Normalizat    1.0900        .26867        .25965E-03   -.90075    
   4  Prefactor     1.0290        .21930        .22157E-03   -.91769    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.08997e-09
Minuit parameter uncertainties:
  1  15.6966
  2  6.7712
  3  0.269006
  4  0.219488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898328': 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): 102
logL (Free Index) = 4681.53490387
delta logL = 0.325746066845

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  9.106e-01  1.570e+01  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.868e+00  6.771e+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.029e+00  2.195e-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.090e+00  2.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 28.161 1.789

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/898328/cmap_HighResolution_371260801_371520001_4FGL_J0152.6+0147_daily_bin509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-03', job_status='DONE', photon_flux_upper_limit='9.46e-08', time_completed='2021-08-14 19:50:17.148247', job_id='898328', GAL2='1.03', fit_tolerance='1e-08', EG2='1.09', EG='1.13', time_epoch_completed='1628995817.15', return_code2='102', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.26e-01', ts2='0.77', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='509' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:50:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 898328: <4FGL_J0152.6+0147_daily_bin509> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin509 28.1614 1.7894 371260801 371520001 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 :                                   661.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             219.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            883 sec.

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

