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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin838
RA = 28.1614, Dec = 1.7894
tmin = 456537601, tmax = 456796801
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='899894', job_status='RUN', time_executed='2021-08-14 19:45:17.367364', time_epoch_executed='1628995517.37' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='838'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899894

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899894/ft1_4FGL_J0152.6+0147_daily_bin838.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899894/ft2_4FGL_J0152.6+0147_daily_bin838.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899894/ft1_4FGL_J0152.6+0147_daily_bin838.fits outfile=/scratch/kocevski/899894/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin838.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=456537601.0 tmax=456796801.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.24
user 5.07
sys 1.09

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899894/ft2_4FGL_J0152.6+0147_daily_bin838.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/899894/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin838.fits evtable="EVENTS" outfile="/scratch/kocevski/899894/ft1_filtered_4FGL_J0152.6+0147_daily_bin838.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 1.43
user 0.34
sys 1.06

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899894/ft1_filtered_4FGL_J0152.6+0147_daily_bin838.fits" evtable="EVENTS" scfile=/scratch/kocevski/899894/ft2_4FGL_J0152.6+0147_daily_bin838.fits sctable="SC_DATA" outfile=/scratch/kocevski/899894/ltcube_456537601_456796801_4FGL_J0152.6+0147_daily_bin838.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/899894/ft2_4FGL_J0152.6+0147_daily_bin838.fits
.....................!
real 14.22
user 12.84
sys 1.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899894/ft1_filtered_4FGL_J0152.6+0147_daily_bin838.fits evtable="EVENTS" scfile=/scratch/kocevski/899894/ft2_4FGL_J0152.6+0147_daily_bin838.fits sctable="SC_DATA" expcube=/scratch/kocevski/899894/ltcube_456537601_456796801_4FGL_J0152.6+0147_daily_bin838.fits outfile=/scratch/kocevski/899894/expmap_456537601_456796801_4FGL_J0152.6+0147_daily_bin838.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/899894/ltcube_456537601_456796801_4FGL_J0152.6+0147_daily_bin838.fits
.....................!
real 192.41
user 186.16
sys 5.84

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/899894/ft1_filtered_4FGL_J0152.6+0147_daily_bin838.fits scfile=/scratch/kocevski/899894/ft2_4FGL_J0152.6+0147_daily_bin838.fits outfile=/scratch/kocevski/899894/cmap_456537601_456796801_4FGL_J0152.6+0147_daily_bin838.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 1.41
user 0.40
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899894/ft1_filtered_4FGL_J0152.6+0147_daily_bin838.fits scfile=/scratch/kocevski/899894/ft2_4FGL_J0152.6+0147_daily_bin838.fits outfile=/scratch/kocevski/899894/cmap_HighResolution_456537601_456796801_4FGL_J0152.6+0147_daily_bin838.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 1.44
user 0.38
sys 1.05

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59983E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3777       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.016       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10764E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.8651       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .68541E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33606       1.0000         .10000E-03   10000.    
    12 'norm      '    4.5432       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6940       1.0000         .10000E-03   10000.    
    14 'norm      '    .52041       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14649E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3292       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.110       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0495       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91902       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=   6183.048     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2098 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    309.25        .14514E-04** at limit **
   2  norm          4.3771        1.6493       -.23900E-07   -.22649E-03
   3  Prefactor     18.032        39.333       -.11963E-04   -.51951E-05
   4  Prefactor     .10000E-03    4.6149        .27317E-06** at limit **
   5  Prefactor     .10000E-03    2.9267        .14519E-07** at limit **
   6  Prefactor     .10000E-03    123.03        .12313E-05** at limit **
   7  norm          7.8645        6.1882       -.19197E-06   -.53537E-04
   8  Prefactor     .10012E-03    75.093       -.20296E-05** at limit **
   9  Prefactor     .10000E-03    1.6118       -.22480E-07** at limit **
  10  norm          .10000E-03    9.7690       -.33101E-07** at limit **
  11  Prefactor     .36368        4.0293       -.16771E-05   -.27037E-03
  12  norm          4.5450        4.8628       -.29058E-06   -.19337E-03
  13  Prefactor     1.6945        1.6136        .10642E-06    .33191E-03
  14  norm          .52052        .52724       -.41369E-07   -.23147E-03
  15  Prefactor     .10000E-03    14.987        .30957E-06** at limit **
  16  Prefactor     4.3237        219.40        .27900E-06    .84102E-06
  17  Prefactor     .10000E-03    4.7681       -.28186E-07** at limit **
  18  Prefactor     19.094        26.832       -.12609E-04    .10438E-05
  19  Normalizat    1.0496        .17413        .45474E-06    .19038E-03
  20  Prefactor     .91883        .14863        .18390E-05    .96850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 4.37706
  Prefactor  = 18.032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.86452
  Prefactor  = 0.00010012
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.363676
  norm       = 4.54502
  Prefactor  = 1.69447
  norm       = 0.520515
  Prefactor  = 0.0001
  Prefactor  = 4.32374
  Prefactor  = 0.0001
  Prefactor  = 19.0942
  Normalizat = 1.04962
  Prefactor  = 0.918825
 **********
 **   18 **HESSE 
 **********

 FCN=   6183.048     FROM HESSE     STATUS=OK           305 CALLS     2403 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    316.15        .42128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3771        1.6478        .59741E-04   -1.5290    
   3  Prefactor     18.032        39.362        .94361E-04   -1.4858    
   4  Prefactor     .10000E-03    4.6828        .16475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9435        .13137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    124.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.8645        6.1898        .14298E-03   -1.5147    
   8  Prefactor     .10012E-03    64.768        .19002       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6195        .97477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.8255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .36368        10.698        .30430E-02   -1.5587    
  12  norm          4.5450        4.8588        .17081E-03   -1.5282    
  13  Prefactor     1.6945        1.6272        .93912E-04   -1.5448    
  14  norm          .52052        .50615        .55603E-03   -1.5564    
  15  Prefactor     .10000E-03    15.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3237        219.57        .19360E-03   -1.5292    
  17  Prefactor     .10000E-03    4.7884        .16769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.094        26.808        .91621E-04   -1.4834    
  19  Normalizat    1.0496        .20162        .25000E-03   -.91386    
  20  Prefactor     .91883        .17246        .22167E-03   -.95486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60306e-10
Minuit parameter uncertainties:
  1  0.00127079
  2  1.64783
  3  39.4187
  4  5.93098e-05
  5  7.04095e-07
  6  0.000311668
  7  6.19028
  8  0.00557017
  9  3.00362e-06
  10  1.12187e-05
  11  3.94511
  12  4.85927
  13  1.62719
  14  0.50615
  15  0.000129148
  16  61.864
  17  5.85199e-06
  18  26.8253
  19  0.201772
  20  0.172566
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.004e-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:  9.188e-01  1.726e-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.050e+00  2.018e-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: 4.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899894/likelihoodResults_456537601_456796801_4FGL_J0152.6+0147_daily_bin838.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) = 6183.05086298
delta logL = -0.00292026423267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6183.0479427
delta logL = 1.85291355592e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9775       1.0000          .0000       10.000    
     3 'Normalizat'    1.0496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91884       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=   6183.048     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3656        .90712E-02** at limit **
   2  Index         1.9711        6.3071        .50000        .30837E-04
   3  Normalizat    1.0496        .10743E-01    .40581E-01    .29467E-05
   4  Prefactor     .91883        .90209E-02    .45245E-01    .13127E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97111
  Normalizat = 1.04962
  Prefactor  = 0.918826
 **********
 **   18 **HESSE 
 **********

 FCN=   6183.048     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      229 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    228.85        .97650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9711        6.5113        .50000       -.65074    
   3  Normalizat    1.0496        .66421E-01    .25000E-03   -.91386    
   4  Prefactor     .91883        .55738E-01    .22167E-03   -.95486    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38603e-07
Minuit parameter uncertainties:
  1  1.56541e-05
  2  47.4075
  3  0.0664258
  4  0.0557419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899894': 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) = 6183.04794262
delta logL = 1.01286786958e-07

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.565e-05  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.971e+00  4.741e+01  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:  9.188e-01  5.574e-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:  1.050e+00  6.643e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/899894/cmap_HighResolution_456537601_456796801_4FGL_J0152.6+0147_daily_bin838.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-03', job_status='DONE', photon_flux_upper_limit='4.36e-08', time_completed='2021-08-14 19:55:50.687602', job_id='899894', GAL2='0.92', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1628996150.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='838' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:55:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 899894: <4FGL_J0152.6+0147_daily_bin838> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin838> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:40:39 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:41:43 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:41:43 2021
Terminated at Sat Aug 14 19:55:51 2021
Results reported at Sat Aug 14 19:55:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin838 28.1614 1.7894 456537601 456796801 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 :                                   646.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            912 sec.

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

