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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin137
RA = 28.1614, Dec = 1.7894
tmin = 274838401, tmax = 275097601
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='895709', job_status='RUN', time_executed='2021-08-14 19:31:52.011167', time_epoch_executed='1628994712.01' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895709/ft1_4FGL_J0152.6+0147_daily_bin137.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895709/ft2_4FGL_J0152.6+0147_daily_bin137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895709/ft1_4FGL_J0152.6+0147_daily_bin137.fits outfile=/scratch/kocevski/895709/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin137.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=274838401.0 tmax=275097601.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 4.83
user 3.96
sys 0.83

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895709/ft1_filtered_4FGL_J0152.6+0147_daily_bin137.fits" evtable="EVENTS" scfile=/scratch/kocevski/895709/ft2_4FGL_J0152.6+0147_daily_bin137.fits sctable="SC_DATA" outfile=/scratch/kocevski/895709/ltcube_274838401_275097601_4FGL_J0152.6+0147_daily_bin137.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/895709/ft2_4FGL_J0152.6+0147_daily_bin137.fits
.....................!
real 14.78
user 13.67
sys 1.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895709/ft1_filtered_4FGL_J0152.6+0147_daily_bin137.fits evtable="EVENTS" scfile=/scratch/kocevski/895709/ft2_4FGL_J0152.6+0147_daily_bin137.fits sctable="SC_DATA" expcube=/scratch/kocevski/895709/ltcube_274838401_275097601_4FGL_J0152.6+0147_daily_bin137.fits outfile=/scratch/kocevski/895709/expmap_274838401_275097601_4FGL_J0152.6+0147_daily_bin137.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/895709/ltcube_274838401_275097601_4FGL_J0152.6+0147_daily_bin137.fits
.....................!
real 192.85
user 186.39
sys 5.77

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/895709/ft1_filtered_4FGL_J0152.6+0147_daily_bin137.fits scfile=/scratch/kocevski/895709/ft2_4FGL_J0152.6+0147_daily_bin137.fits outfile=/scratch/kocevski/895709/cmap_274838401_275097601_4FGL_J0152.6+0147_daily_bin137.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.16
user 0.38
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895709/ft1_filtered_4FGL_J0152.6+0147_daily_bin137.fits scfile=/scratch/kocevski/895709/ft2_4FGL_J0152.6+0147_daily_bin137.fits outfile=/scratch/kocevski/895709/cmap_HighResolution_274838401_275097601_4FGL_J0152.6+0147_daily_bin137.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.16
user 0.38
sys 0.77

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.092       1.0000         .10000E-03   10000.    
     2 'norm      '    10.039       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.493       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    84.023       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0723       1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6413       1.0000         .10000E-03   10000.    
    12 'norm      '    17.304       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0851       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    69.709       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86264       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1700       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=   4853.252     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1972 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.092        81.819        .14927E-02   -.14297E-03
   2  norm          10.039        2.6956        .31617E-02   -.72285E-04
   3  Prefactor     .10000E-03    31.620        .90712E-02** at limit **
   4  Prefactor     .10000E-03    4.1594        .90712E-02** at limit **
   5  Prefactor     .10000E-03    3.9366        .90712E-02** at limit **
   6  Prefactor     11.493        45.401        .29542E-02    .22343E-04
   7  norm          .10000E-03    3.3207        .90712E-02** at limit **
   8  Prefactor     84.023        133.23        .10956E-02    .37930E-03
   9  Prefactor     9.0728        6.7336        .33266E-02    .56501E-04
  10  norm          .10009E-03    16.092        .90712E-02** at limit **
  11  Prefactor     4.6410        5.3963        .46704E-02    .11790E-03
  12  norm          17.303        7.2246        .24071E-02   -.27460E-04
  13  Prefactor     .10000E-03    1.0846        .90712E-02** at limit **
  14  norm          1.0851        .77425        .11202E-01    .58538E-03
  15  Prefactor     .10000E-03    9.6696        .90712E-02** at limit **
  16  Prefactor     69.708        67.076        .12020E-02    .33630E-03
  17  Prefactor     .10008E-03    14.582        .90712E-02** at limit **
  18  Prefactor     .10000E-03    7.5652        .90712E-02** at limit **
  19  Normalizat    .86251        .22423        .68651E-01    .26051E-06
  20  Prefactor     1.1701        .18476        .35382E-01   -.10076E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.0919
  norm       = 10.0387
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4933
  norm       = 0.0001
  Prefactor  = 84.0228
  Prefactor  = 9.07284
  norm       = 0.000100086
  Prefactor  = 4.64105
  norm       = 17.3031
  Prefactor  = 0.0001
  norm       = 1.08513
  Prefactor  = 0.000100003
  Prefactor  = 69.7083
  Prefactor  = 0.000100078
  Prefactor  = 0.0001
  Normalizat = 0.862509
  Prefactor  = 1.17007
 **********
 **   18 **HESSE 
 **********

 FCN=   4853.252     FROM HESSE     STATUS=OK           283 CALLS     2255 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.092        81.860        .59706E-04   -1.4364    
   2  norm          10.039        2.6985        .56443E-04   -1.5074    
   3  Prefactor     .10000E-03    31.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1897        .13873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.9426        .13499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.493        45.411        .11817E-03   -1.5030    
   7  norm          .10000E-03    3.3242        .12397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     84.023        133.62        .43823E-04   -1.3872    
   9  Prefactor     9.0728        6.7411        .13306E-03   -1.5105    
  10  norm          .10009E-03    16.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6410        5.3930        .16861E-03   -1.5277    
  12  norm          17.303        7.2296        .96283E-04   -1.4876    
  13  Prefactor     .10000E-03    1.1084        .70800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0851        .76467        .50089E-04   -1.5500    
  15  Prefactor     .10000E-03    9.6834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     69.708        67.087        .48078E-04   -1.4036    
  17  Prefactor     .10008E-03    14.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .86251        .25785        .30373E-03   -.97790    
  20  Prefactor     1.1701        .21294        .22014E-03   -.87257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52724e-08
Minuit parameter uncertainties:
  1  82.0652
  2  2.6985
  3  0.000444648
  4  2.03237e-05
  5  4.78723e-06
  6  45.5483
  7  1.68263e-05
  8  134.104
  9  6.7417
  10  0.0023603
  11  5.39356
  12  7.22994
  13  3.27475e-07
  14  0.764672
  15  0.00036129
  16  67.1602
  17  0.00214073
  18  4.39845e-05
  19  0.258219
  20  0.213094
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  9.073e+00  6.742e+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.170e+00  2.131e-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.625e-01  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.52
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 5.08e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 3.65e-05 +/- 2.71e-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) = 4853.21864791
delta logL = 0.0338225474916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4853.21717109
delta logL = 0.0352993697734

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8984       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1497       1.0000          .0000       10.000    
     3 'Normalizat'    .84493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1779       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=   4853.217     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      259 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8984        132.58        .35668E-02    .30932E-03
   2  Index         2.1495        6.0717        .99850E-01    .12628E-03
   3  Normalizat    .84519        .15181        .69268E-01    .19154E-04
   4  Prefactor     1.1777        .79069E-01    .35175E-01    .31266E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.89837
  Index      = 2.14951
  Normalizat = 0.845194
  Prefactor  = 1.17774
 **********
 **   18 **HESSE 
 **********

 FCN=   4853.217     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8984        8.1492        .12904E-03   -1.5146    
   2  Index         2.1495        .66452        .55930E-02   -.60662    
   3  Normalizat    .84519        .26304        .30648E-03   -.98414    
   4  Prefactor     1.1777        .21269        .21948E-03   -.87019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12819e-09
Minuit parameter uncertainties:
  1  8.15031
  2  0.667457
  3  0.263441
  4  0.212845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895709': 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) = 4853.21717058
delta logL = 0.0352998803282

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  7.898e+00  8.150e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.150e+00  6.675e-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:  1.178e+00  2.128e-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.452e-01  2.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.58
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.15 +/- 0.67
Photon Flux (Free Index): 6.41e-08 +/- 6.67e-08
Energy Flux (Free Index): 3.17e-05 +/- 2.82e-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/895709/cmap_HighResolution_274838401_275097601_4FGL_J0152.6+0147_daily_bin137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.08e-08', energy_flux2='3.17e-05', photon_flux_error='3.77e-08', dlogl='3.53e-02', energy_flux='3.65e-05', photon_flux2='6.41e-08', job_status='DONE', time_completed='2021-08-14 19:40:36.908815', photon_index_error2='0.67', photon_index2='2.15', ts='7.52', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='2.82e-05', EG='0.86', time_epoch_completed='1628995236.91', return_code='0', job_id='895709', GAL2='1.18', EG2='0.85', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='6.67e-08', ts2='7.58', photon_index='1.98' WHERE bin_id='137' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:40:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 895709: <4FGL_J0152.6+0147_daily_bin137> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin137> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 19:25:35 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:28:08 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:08 2021
Terminated at Sat Aug 14 19:40:38 2021
Results reported at Sat Aug 14 19:40:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin137 28.1614 1.7894 274838401 275097601 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 :                                   530.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            903 sec.

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

