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 = 17484
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0152.6+0147_weekly_bin717
RA = 28.1614, Dec = 1.7894
tmin = 672624001, tmax = 673228801
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='367532', job_status='RUN', time_executed='2022-05-03 01:04:15.089961', time_epoch_executed='1651565055.09' WHERE source_name='4FGL J0152.6+0147' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367532

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367532/ft1_4FGL_J0152.6+0147_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367532/ft2_4FGL_J0152.6+0147_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367532/ft1_4FGL_J0152.6+0147_weekly_bin717.fits outfile=/scratch/kocevski/367532/ft1_filteredMKT_4FGL_J0152.6+0147_weekly_bin717.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=672624001.0 tmax=673228801.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 6.39
user 6.12
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367532/ft2_4FGL_J0152.6+0147_weekly_bin717.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/367532/ft1_filteredMKT_4FGL_J0152.6+0147_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/367532/ft1_filtered_4FGL_J0152.6+0147_weekly_bin717.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.55
user 0.38
sys 0.16

Number of photons that the gtmktime cut: 710

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367532/ft1_filtered_4FGL_J0152.6+0147_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367532/ft2_4FGL_J0152.6+0147_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367532/ltcube_672624001_673228801_4FGL_J0152.6+0147_weekly_bin717.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/367532/ft2_4FGL_J0152.6+0147_weekly_bin717.fits
.....................!
real 34.43
user 33.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367532/ft1_filtered_4FGL_J0152.6+0147_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367532/ft2_4FGL_J0152.6+0147_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367532/ltcube_672624001_673228801_4FGL_J0152.6+0147_weekly_bin717.fits outfile=/scratch/kocevski/367532/expmap_672624001_673228801_4FGL_J0152.6+0147_weekly_bin717.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/367532/ltcube_672624001_673228801_4FGL_J0152.6+0147_weekly_bin717.fits
.....................!
real 191.89
user 186.88
sys 4.55

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/367532/ft1_filtered_4FGL_J0152.6+0147_weekly_bin717.fits scfile=/scratch/kocevski/367532/ft2_4FGL_J0152.6+0147_weekly_bin717.fits outfile=/scratch/kocevski/367532/cmap_672624001_673228801_4FGL_J0152.6+0147_weekly_bin717.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367532/ft1_filtered_4FGL_J0152.6+0147_weekly_bin717.fits scfile=/scratch/kocevski/367532/ft2_4FGL_J0152.6+0147_weekly_bin717.fits outfile=/scratch/kocevski/367532/cmap_HighResolution_672624001_673228801_4FGL_J0152.6+0147_weekly_bin717.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.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    97.731       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10776E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .34270E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.834       1.0000         .10000E-03   10000.    
     7 'norm      '    26.999       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10238E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.255       1.0000         .10000E-03   10000.    
    12 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.266       1.0000         .10000E-03   10000.    
    14 'norm      '    2.4912       1.0000         .10000E-03   10000.    
    15 'Prefactor '    162.17       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14030E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0654       1.0000         .10000E-03   10000.    
    18 'Prefactor '    107.98       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .81561       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0188       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=   7661.157     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2063 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    101.12       -.17350E-04** at limit **
   2  norm          97.729        5.6917        .35970E-06    .42754E-04
   3  Prefactor     .10000E-03    85.577        .22223E-04** at limit **
   4  Prefactor     .10000E-03    4.6248        .16825E-06** at limit **
   5  Prefactor     .10000E-03    3.6238        .17607E-06** at limit **
   6  Prefactor     12.770        58.570       -.12456E-03    .20673E-05
   7  norm          26.997        8.9238       -.63495E-06    .12517E-04
   8  Prefactor     .10000E-03    69.573       -.17600E-04** at limit **
   9  Prefactor     .10000E-03    1.9375        .76773E-08** at limit **
  10  norm          .10000E-03    82.496        .23390E-04** at limit **
  11  Prefactor     16.259        21.615       -.11255E-05   -.37771E-04
  12  norm          .10000E-03    14.722        .48588E-07** at limit **
  13  Prefactor     18.236        18.547       -.18270E-04    .19856E-03
  14  norm          2.4916        1.8088       -.18275E-05   -.12487E-02
  15  Prefactor     162.17        276.69       -.97230E-05    .24435E-04
  16  Prefactor     .10005E-03    6295.2       -.66064E-03** at limit **
  17  Prefactor     4.0598        21.419        .76943E-06   -.59555E-04
  18  Prefactor     108.67        309.83        .65650E-03    .42382E-04
  19  Normalizat    .81591        .23674        .15421E-05   -.17396E-03
  20  Prefactor     1.0185        .19160       -.36211E-05    .23960E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 97.7287
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 12.7697
  norm       = 26.9973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.2593
  norm       = 0.0001
  Prefactor  = 18.2363
  norm       = 2.49156
  Prefactor  = 162.167
  Prefactor  = 0.000100048
  Prefactor  = 4.0598
  Prefactor  = 108.671
  Normalizat = 0.815912
  Prefactor  = 1.01849
 **********
 **   18 **HESSE 
 **********

 FCN=   7661.157     FROM HESSE     STATUS=OK           291 CALLS     2354 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    101.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          97.729        5.6567        .40661E-04   -1.3728    
   3  Prefactor     .10000E-03    86.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.701        .36079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6374        .16269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.770        58.961        .11181E-03   -1.4993    
   7  norm          26.997        8.9380        .77098E-04   -1.4668    
   8  Prefactor     .10000E-03    69.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9389        .11898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    83.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.259        21.642        .99340E-04   -1.4901    
  12  norm          .10000E-03    14.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.236        18.552        .93713E-04   -1.4854    
  14  norm          2.4916        1.8058        .96249E-04   -1.5392    
  15  Prefactor     162.17        276.47        .15834E-03   -1.3154    
  16  Prefactor     .10005E-03    6295.0        .20523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0598        21.425        .19997E-03   -1.5305    
  18  Prefactor     108.67        309.27        .19352E-03   -1.3619    
  19  Normalizat    .81591        .28024        .44013E-03   -.99481    
  20  Prefactor     1.0185        .22918        .32370E-03   -.92116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55087e-10
Minuit parameter uncertainties:
  1  0.000121388
  2  5.65672
  3  1.60491e-05
  4  0.000353523
  5  9.26375e-06
  6  54.9676
  7  8.93848
  8  0.000125275
  9  2.92115e-06
  10  0.000173869
  11  21.6525
  12  0.000123759
  13  18.5581
  14  1.80588
  15  278.723
  16  0.0233467
  17  18.6631
  18  314.054
  19  0.280741
  20  0.229401
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.921e-06  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.018e+00  2.294e-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:  8.159e-01  2.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/367532/likelihoodResults_672624001_673228801_4FGL_J0152.6+0147_weekly_bin717.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): 102
logL (Free Index) = 7661.1591177
delta logL = -0.00227737849764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7661.15684024
delta logL = 8.13070073491e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9620       1.0000          .0000       10.000    
     3 'Normalizat'    .81583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0186       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7661.157     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10265E-03    1.7212        .12160E-01** at limit **
   2  Index         1.8738        5.8847        .50000        .77223E-04
   3  Normalizat    .81592        .55969E-02    .44013E-03    .53159E-04
   4  Prefactor     1.0185        .45871E-02    .32370E-03    .83341E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102651
  Index      = 1.87379
  Normalizat = 0.815918
  Prefactor  = 1.01848
 **********
 **   18 **HESSE 
 **********

 FCN=   7661.157     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10265E-03    34.430        .12504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8738        8.7096        .50000       -.67544    
   3  Normalizat    .81592        .25435E-01    .17605E-04   -.99481    
   4  Prefactor     1.0185        .20845E-01    .12948E-04   -.92116    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10126e-07
Minuit parameter uncertainties:
  1  0.0191172
  2  238.515
  3  0.0254354
  4  0.0208455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367532': 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) = 7661.1568385
delta logL = 1.82707753993e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.027e-04  1.912e-02  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.874e+00  2.385e+02  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.018e+00  2.085e-02  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:  8.159e-01  2.544e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 28.161 1.789

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/367532/cmap_HighResolution_672624001_673228801_4FGL_J0152.6+0147_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', job_status='DONE', photon_flux_upper_limit='6.12e-08', time_completed='2022-05-03 01:16:36.552389', job_id='367532', GAL2='1.02', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1651565796.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.83e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='717' AND source_name='4FGL J0152.6+0147' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:16:36 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 367532: <4FGL_J0152.6+0147_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0152.6+0147_weekly_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May  3 01:00:23 2022
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:02:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:02:31 2022
Terminated at Tue May  3 01:16:37 2022
Results reported at Tue May  3 01:16:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_weekly_bin717 28.1614 1.7894 672624001 673228801 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 :                                   742.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             296.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            974 sec.

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

