/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 0 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 = 7424
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin172
RA = 28.1614, Dec = 1.7894
tmin = 283910401, tmax = 284169601
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='895761', job_status='RUN', time_executed='2021-08-14 19:30:11.182750', time_epoch_executed='1628994611.18' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='172'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895761

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895761/ft1_4FGL_J0152.6+0147_daily_bin172.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895761/ft2_4FGL_J0152.6+0147_daily_bin172.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895761/ft1_4FGL_J0152.6+0147_daily_bin172.fits outfile=/scratch/kocevski/895761/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin172.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=283910401.0 tmax=284169601.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 8.13
user 3.44
sys 4.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/895761/ft2_4FGL_J0152.6+0147_daily_bin172.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/895761/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin172.fits evtable="EVENTS" outfile="/scratch/kocevski/895761/ft1_filtered_4FGL_J0152.6+0147_daily_bin172.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.99
user 0.33
sys 4.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895761/ft1_filtered_4FGL_J0152.6+0147_daily_bin172.fits" evtable="EVENTS" scfile=/scratch/kocevski/895761/ft2_4FGL_J0152.6+0147_daily_bin172.fits sctable="SC_DATA" outfile=/scratch/kocevski/895761/ltcube_283910401_284169601_4FGL_J0152.6+0147_daily_bin172.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/895761/ft2_4FGL_J0152.6+0147_daily_bin172.fits
.....................!
real 17.23
user 11.30
sys 5.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895761/ft1_filtered_4FGL_J0152.6+0147_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/895761/ft2_4FGL_J0152.6+0147_daily_bin172.fits sctable="SC_DATA" expcube=/scratch/kocevski/895761/ltcube_283910401_284169601_4FGL_J0152.6+0147_daily_bin172.fits outfile=/scratch/kocevski/895761/expmap_283910401_284169601_4FGL_J0152.6+0147_daily_bin172.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/895761/ltcube_283910401_284169601_4FGL_J0152.6+0147_daily_bin172.fits
.....................!
real 197.76
user 185.94
sys 11.38

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/895761/ft1_filtered_4FGL_J0152.6+0147_daily_bin172.fits scfile=/scratch/kocevski/895761/ft2_4FGL_J0152.6+0147_daily_bin172.fits outfile=/scratch/kocevski/895761/cmap_283910401_284169601_4FGL_J0152.6+0147_daily_bin172.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.25
user 0.37
sys 4.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895761/ft1_filtered_4FGL_J0152.6+0147_daily_bin172.fits scfile=/scratch/kocevski/895761/ft2_4FGL_J0152.6+0147_daily_bin172.fits outfile=/scratch/kocevski/895761/cmap_HighResolution_283910401_284169601_4FGL_J0152.6+0147_daily_bin172.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.83
user 0.39
sys 4.42

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.3666       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9448       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .25343       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.736       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1140       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8472       1.0000         .10000E-03   10000.    
    12 'norm      '    10.526       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1988       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.907       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91896       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2183       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=   5668.578     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     1761 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.381       -.23615E-05** at limit **
   2  norm          7.3664        2.1790        .19719E-07    .20134E-03
   3  Prefactor     .10000E-03    23.413        .29983E-06** at limit **
   4  Prefactor     7.9448        7.7593        .72120E-06   -.16474E-04
   5  Prefactor     .10000E-03    13.629       -.29267E-06** at limit **
   6  Prefactor     .10000E-03    22.002        .12517E-05** at limit **
   7  norm          .25325        5.7497       -.87900E-08   -.75038E-04
   8  Prefactor     13.725        138.91        .32691E-05    .50288E-05
   9  Prefactor     2.1139        4.1233        .19024E-06    .95014E-06
  10  norm          .10000E-03    6.4056       -.84702E-07** at limit **
  11  Prefactor     2.8464        6.5330        .47779E-05   -.27954E-06
  12  norm          10.525        6.0108        .60555E-07   -.27934E-04
  13  Prefactor     1.1975        1.8393        .11953E-07   -.10153E-03
  14  norm          .10000E-03    .39331        .83078E-07** at limit **
  15  Prefactor     .10000E-03    6.5929        .10204E-06** at limit **
  16  Prefactor     .10000E-03    44.206        .13529E-05** at limit **
  17  Prefactor     .10000E-03    4.2254        .13905E-07** at limit **
  18  Prefactor     11.906        13.734        .13953E-06   -.17075E-04
  19  Normalizat    .91878        .19969        .96093E-06    .30299E-04
  20  Prefactor     1.2185        .17101       -.16398E-05    .19152E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.36644
  Prefactor  = 0.0001
  Prefactor  = 7.94478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.253255
  Prefactor  = 13.7249
  Prefactor  = 2.11389
  norm       = 0.0001
  Prefactor  = 2.84643
  norm       = 10.5254
  Prefactor  = 1.19755
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.906
  Normalizat = 0.918778
  Prefactor  = 1.21846
 **********
 **   18 **HESSE 
 **********

 FCN=   5668.578     FROM HESSE     STATUS=OK           295 CALLS     2056 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.3664        2.1789        .58052E-04   -1.5165    
   3  Prefactor     .10000E-03    23.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.9448        7.7693        .71126E-03   -1.5144    
   5  Prefactor     .10000E-03    13.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .25325        31.177        .34839E-02   -1.5607    
   8  Prefactor     13.725        139.10        .10807E-03   -1.4967    
   9  Prefactor     2.1139        4.0960        .20597E-03   -1.5417    
  10  norm          .10000E-03    6.4222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8464        6.5396        .12048E-02   -1.5371    
  12  norm          10.525        6.0103        .61749E-03   -1.5059    
  13  Prefactor     1.1975        1.7977        .12141E-03   -1.5489    
  14  norm          .10000E-03    .67767        .91460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.5962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    44.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2295        .15115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.906        13.740        .58046E-03   -1.5018    
  19  Normalizat    .91878        .23497        .29013E-03   -.95803    
  20  Prefactor     1.2185        .20133        .21653E-03   -.85765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95561e-08
Minuit parameter uncertainties:
  1  1.90482e-05
  2  2.17894
  3  1.93651e-06
  4  7.77031
  5  2.97241e-05
  6  1.05479e-05
  7  5.62173
  8  87.6521
  9  4.09651
  10  3.37793e-06
  11  6.54125
  12  6.01063
  13  1.79779
  14  3.4831e-06
  15  9.11623e-07
  16  1.65814e-05
  17  4.39091e-07
  18  13.7437
  19  0.235234
  20  0.201453
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.114e+00  4.097e+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.218e+00  2.015e-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:  9.188e-01  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/895761/likelihoodResults_283910401_284169601_4FGL_J0152.6+0147_daily_bin172.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) = 5668.29278454
delta logL = 0.285521182177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5668.26548818
delta logL = 0.312817545994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86397       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9365       1.0000          .0000       10.000    
     3 'Normalizat'    .86670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2424       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=   5668.265     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      263 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86279        13.860        .12676E-01    .90658E-03
   2  Index         2.9371        2.0290        .13086        .11607E-03
   3  Normalizat    .86666        .39998E-01    .67349E-01    .14122E-04
   4  Prefactor     1.2425        .33597E-01    .48563E-01   -.18429E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.862791
  Index      = 2.93705
  Normalizat = 0.866659
  Prefactor  = 1.24246
 **********
 **   18 **HESSE 
 **********

 FCN=   5668.265     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86279        7.7455        .74909E-04   -1.5522    
   2  Index         2.9371        2.4420        .46417E-02   -.42530    
   3  Normalizat    .86666        .25835        .29795E-03   -.97642    
   4  Prefactor     1.2425        .20707        .21468E-03   -.85035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01695e-08
Minuit parameter uncertainties:
  1  5.17079
  2  2.57741
  3  0.258719
  4  0.207207
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895761': 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) = 5668.26548802
delta logL = 0.312817701084

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  8.628e-01  5.171e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.937e+00  2.577e+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.242e+00  2.072e-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.667e-01  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.94 +/- 2.58
Photon Flux (Free Index): 5.10e-08 +/- 7.67e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.27e-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/895761/cmap_HighResolution_283910401_284169601_4FGL_J0152.6+0147_daily_bin172.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.08e-03', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='3.13e-01', photon_flux2='5.10e-08', job_status='DONE', time_completed='2021-08-14 19:40:44.180479', photon_index_error2='2.58', photon_index2='2.94', ts='0.39', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='8.12e-08', energy_flux_error2='1.27e-05', EG='0.92', time_epoch_completed='1628995244.18', return_code='0', job_id='895761', GAL2='1.24', EG2='0.87', return_code2='0', photon_flux_error2='7.67e-08', ts2='1.06', photon_index='1.98' WHERE bin_id='172' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:40:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 895761: <4FGL_J0152.6+0147_daily_bin172> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin172> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 19:25:39 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:28:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 19:28:51 2021
Terminated at Sat Aug 14 19:40:45 2021
Results reported at Sat Aug 14 19:40:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin172 28.1614 1.7894 283910401 284169601 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 :                                   699.62 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            906 sec.

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

