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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin719
RA = 28.1614, Dec = 1.7894
tmin = 425692801, tmax = 425952001
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='898620', job_status='RUN', time_executed='2021-08-14 19:43:53.369035', time_epoch_executed='1628995433.37' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898620

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898620/ft1_4FGL_J0152.6+0147_daily_bin719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898620/ft2_4FGL_J0152.6+0147_daily_bin719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898620/ft1_4FGL_J0152.6+0147_daily_bin719.fits outfile=/scratch/kocevski/898620/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin719.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=425692801.0 tmax=425952001.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 7.55
user 2.74
sys 4.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898620/ft2_4FGL_J0152.6+0147_daily_bin719.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/898620/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin719.fits evtable="EVENTS" outfile="/scratch/kocevski/898620/ft1_filtered_4FGL_J0152.6+0147_daily_bin719.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 5.32
user 0.28
sys 4.95

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898620/ft1_filtered_4FGL_J0152.6+0147_daily_bin719.fits" evtable="EVENTS" scfile=/scratch/kocevski/898620/ft2_4FGL_J0152.6+0147_daily_bin719.fits sctable="SC_DATA" outfile=/scratch/kocevski/898620/ltcube_425692801_425952001_4FGL_J0152.6+0147_daily_bin719.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/898620/ft2_4FGL_J0152.6+0147_daily_bin719.fits
.....................!
real 18.12
user 12.37
sys 5.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898620/ft1_filtered_4FGL_J0152.6+0147_daily_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/898620/ft2_4FGL_J0152.6+0147_daily_bin719.fits sctable="SC_DATA" expcube=/scratch/kocevski/898620/ltcube_425692801_425952001_4FGL_J0152.6+0147_daily_bin719.fits outfile=/scratch/kocevski/898620/expmap_425692801_425952001_4FGL_J0152.6+0147_daily_bin719.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/898620/ltcube_425692801_425952001_4FGL_J0152.6+0147_daily_bin719.fits
.....................!
real 159.23
user 148.08
sys 10.73

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/898620/ft1_filtered_4FGL_J0152.6+0147_daily_bin719.fits scfile=/scratch/kocevski/898620/ft2_4FGL_J0152.6+0147_daily_bin719.fits outfile=/scratch/kocevski/898620/cmap_425692801_425952001_4FGL_J0152.6+0147_daily_bin719.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 5.02
user 0.33
sys 4.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898620/ft1_filtered_4FGL_J0152.6+0147_daily_bin719.fits scfile=/scratch/kocevski/898620/ft2_4FGL_J0152.6+0147_daily_bin719.fits outfile=/scratch/kocevski/898620/cmap_HighResolution_425692801_425952001_4FGL_J0152.6+0147_daily_bin719.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 5.05
user 0.34
sys 4.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.325       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.988       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7555       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8004       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2550       1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.5096       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9847       1.0000         .10000E-03   10000.    
    14 'norm      '    .91726       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0900       1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.503       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0566       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84325       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=   5703.907     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     1779 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.018       -.12557E-07** at limit **
   2  norm          10.325        2.3644        .11764E-07   -.22582E-04
   3  Prefactor     10.893        55.421       -.11711E-05    .25138E-04
   4  Prefactor     5.7602        6.9510        .61028E-06   -.77760E-05
   5  Prefactor     .10000E-03    5.3446        .30445E-06** at limit **
   6  Prefactor     .10000E-03    38.846        .42216E-07** at limit **
   7  norm          .10000E-03    1.8142       -.56878E-07** at limit **
   8  Prefactor     1.2713        873.32       -.37556E-05   -.87292E-06
   9  Prefactor     8.2542        4.7555        .51245E-07   -.48891E-05
  10  norm          .10000E-03    21.948        .47443E-08** at limit **
  11  Prefactor     .10000E-03    9.5523       -.13625E-06** at limit **
  12  norm          5.5087        4.3906        .92163E-06   -.52940E-04
  13  Prefactor     1.9842        1.8146       -.16613E-08   -.27537E-04
  14  norm          .91701        .65368        .28194E-07    .64118E-05
  15  Prefactor     .10000E-03    9.8029       -.67503E-09** at limit **
  16  Prefactor     .10000E-03    32.266       -.28777E-07** at limit **
  17  Prefactor     1.0730        28.494        .44872E-05   -.20271E-04
  18  Prefactor     37.499        20.772        .70729E-07   -.18517E-05
  19  Normalizat    1.0569        .19042       -.88336E-06   -.28290E-04
  20  Prefactor     .84308        .15061       -.89485E-07   -.56266E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.3252
  Prefactor  = 10.8934
  Prefactor  = 5.76017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.27129
  Prefactor  = 8.25419
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.50867
  Prefactor  = 1.98422
  norm       = 0.917011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.07299
  Prefactor  = 37.4988
  Normalizat = 1.05694
  Prefactor  = 0.843076
 **********
 **   18 **HESSE 
 **********

 FCN=   5703.907     FROM HESSE     STATUS=OK           295 CALLS     2074 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.325        2.3645        .53292E-04   -1.5065    
   3  Prefactor     10.893        54.297        .12086E-03   -1.5048    
   4  Prefactor     5.7602        6.9195        .16742E-03   -1.5228    
   5  Prefactor     .10000E-03    5.3839        .17060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8153        .99335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2713        917.00        .31155E-02   -1.5482    
   9  Prefactor     8.2542        4.7568        .12102E-03   -1.5133    
  10  norm          .10000E-03    22.681        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.8605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.5087        4.4077        .68037E-03   -1.5239    
  13  Prefactor     1.9842        1.8065        .93569E-04   -1.5426    
  14  norm          .91701        .63882        .49839E-04   -1.5516    
  15  Prefactor     .10000E-03    9.8188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.0730        29.066        .45836E-03   -1.5501    
  18  Prefactor     37.499        20.769        .65446E-04   -1.4482    
  19  Normalizat    1.0569        .21802        .25270E-03   -.91147    
  20  Prefactor     .84308        .17328        .22767E-03   -.98160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22023e-10
Minuit parameter uncertainties:
  1  2.29044e-06
  2  2.36454
  3  48.7111
  4  6.92041
  5  2.96693e-06
  6  3.1049e-05
  7  8.79327e-07
  8  69.3779
  9  4.75704
  10  1.8309e-05
  11  6.04618e-06
  12  4.40792
  13  1.80654
  14  0.638825
  15  1.71174e-06
  16  8.2601e-06
  17  11.1747
  18  20.7734
  19  0.218206
  20  0.173392
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  8.431e-01  1.734e-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.057e+00  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.18
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 3.32e-05 +/- 1.91e-05

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) = 5703.90582731
delta logL = 0.00113541769497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5703.90499877
delta logL = 0.00196394878276

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5003       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9580       1.0000          .0000       10.000    
     3 'Normalizat'    1.0582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84250       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=   5703.905     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      224 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5004        6.4820        .12345E-03   -.51579E-03
   2  Index         1.9580        .42737        .48506E-02   -.17920E-03
   3  Normalizat    1.0582        .20958        .25258E-03   -.19379E-03
   4  Prefactor     .84256        .17042        .22774E-03    .17432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.50042
  Index      = 1.95798
  Normalizat = 1.0582
  Prefactor  = 0.842561
 **********
 **   18 **HESSE 
 **********

 FCN=   5703.905     FROM HESSE     STATUS=OK            25 CALLS      249 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5004        6.2657        .24690E-04   -1.5125    
   2  Index         1.9580        .41304        .19402E-03   -.65405    
   3  Normalizat    1.0582        .20967        .50515E-04   -.91105    
   4  Prefactor     .84256        .17054        .91096E-05   -.98178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29955e-10
Minuit parameter uncertainties:
  1  6.26615
  2  0.41379
  3  0.209835
  4  0.170643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898620': 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) = 5703.90499868
delta logL = 0.00196404107555

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  8.500e+00  6.266e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.958e+00  4.138e-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:  8.426e-01  1.706e-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.058e+00  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.16
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.96 +/- 0.41
Photon Flux (Free Index): 4.50e-08 +/- 3.24e-08
Energy Flux (Free Index): 3.46e-05 +/- 2.98e-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/898620/cmap_HighResolution_425692801_425952001_4FGL_J0152.6+0147_daily_bin719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='3.46e-05', photon_flux_error='2.66e-08', dlogl='1.96e-03', energy_flux='3.32e-05', photon_flux2='4.50e-08', job_status='DONE', time_completed='2021-08-14 19:52:17.706948', photon_index_error2='0.41', photon_index2='1.96', ts='9.18', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.98e-05', EG='1.06', time_epoch_completed='1628995937.71', return_code='0', job_id='898620', GAL2='0.84', EG2='1.06', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='3.24e-08', ts2='9.16', photon_index='1.98' WHERE bin_id='719' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:52:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0026>
Subject: Job 898620: <4FGL_J0152.6+0147_daily_bin719> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin719 28.1614 1.7894 425692801 425952001 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 :                                   577.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             256.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            983 sec.

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

