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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin326
RA = 28.1614, Dec = 1.7894
tmin = 323827201, tmax = 324086401
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='896898', job_status='RUN', time_executed='2021-08-14 19:34:56.739825', time_epoch_executed='1628994896.74' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896898/ft1_4FGL_J0152.6+0147_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896898/ft2_4FGL_J0152.6+0147_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896898/ft1_4FGL_J0152.6+0147_daily_bin326.fits outfile=/scratch/kocevski/896898/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin326.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=323827201.0 tmax=324086401.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.39
user 3.10
sys 1.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896898/ft1_filtered_4FGL_J0152.6+0147_daily_bin326.fits" evtable="EVENTS" scfile=/scratch/kocevski/896898/ft2_4FGL_J0152.6+0147_daily_bin326.fits sctable="SC_DATA" outfile=/scratch/kocevski/896898/ltcube_323827201_324086401_4FGL_J0152.6+0147_daily_bin326.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/896898/ft2_4FGL_J0152.6+0147_daily_bin326.fits
.....................!
real 14.76
user 13.19
sys 1.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896898/ft1_filtered_4FGL_J0152.6+0147_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/896898/ft2_4FGL_J0152.6+0147_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/896898/ltcube_323827201_324086401_4FGL_J0152.6+0147_daily_bin326.fits outfile=/scratch/kocevski/896898/expmap_323827201_324086401_4FGL_J0152.6+0147_daily_bin326.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/896898/ltcube_323827201_324086401_4FGL_J0152.6+0147_daily_bin326.fits
.....................!
real 192.59
user 185.74
sys 6.40

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/896898/ft1_filtered_4FGL_J0152.6+0147_daily_bin326.fits scfile=/scratch/kocevski/896898/ft2_4FGL_J0152.6+0147_daily_bin326.fits outfile=/scratch/kocevski/896898/cmap_323827201_324086401_4FGL_J0152.6+0147_daily_bin326.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.57
user 0.37
sys 1.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896898/ft1_filtered_4FGL_J0152.6+0147_daily_bin326.fits scfile=/scratch/kocevski/896898/ft2_4FGL_J0152.6+0147_daily_bin326.fits outfile=/scratch/kocevski/896898/cmap_HighResolution_323827201_324086401_4FGL_J0152.6+0147_daily_bin326.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.62
user 0.40
sys 1.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    173.15       1.0000         .10000E-03   10000.    
     2 'norm      '    5.8895       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.820       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18365E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.301       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.159       1.0000         .10000E-03   10000.    
     7 'norm      '    16.043       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5423       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1362       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1247       1.0000         .10000E-03   10000.    
    14 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4468       1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.248       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.449       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1946       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1436       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=   6590.893     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2039 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     173.15        130.77        .29667E-06   -.56939E-04
   2  norm          5.8879        2.4685       -.33110E-06   -.14856E-02
   3  Prefactor     35.771        45.610       -.25601E-05   -.33373E-04
   4  Prefactor     .10000E-03    17.291       -.47666E-05** at limit **
   5  Prefactor     12.299        13.362       -.15558E-06   -.11392E-03
   6  Prefactor     26.158        38.732       -.20443E-07   -.16417E-04
   7  norm          16.043        9.9098        .51793E-07   -.30221E-04
   8  Prefactor     .10000E-03    47.157       -.57436E-07** at limit **
   9  Prefactor     7.5425        5.3145        .46597E-07   -.41047E-04
  10  norm          .10000E-03    16.011       -.21415E-06** at limit **
  11  Prefactor     .10000E-03    4.3518       -.59520E-07** at limit **
  12  norm          2.1363        2.4265        .47705E-07    .38705E-04
  13  Prefactor     1.1233        2.1276       -.59677E-06    .34383E-03
  14  norm          .10000E-03    .51754        .32117E-06** at limit **
  15  Prefactor     9.4484        24.867        .48194E-06    .15074E-04
  16  Prefactor     48.178        93.065        .25038E-05    .10487E-03
  17  Prefactor     .10000E-03    11.963       -.12973E-06** at limit **
  18  Prefactor     11.450        27.615        .27015E-06    .12574E-04
  19  Normalizat    1.1943        .20657       -.50381E-06   -.34068E-03
  20  Prefactor     1.1437        .16539       -.30604E-06   -.38927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 173.147
  norm       = 5.88792
  Prefactor  = 35.7711
  Prefactor  = 0.000100005
  Prefactor  = 12.2995
  Prefactor  = 26.1583
  norm       = 16.0434
  Prefactor  = 0.0001
  Prefactor  = 7.54254
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1363
  Prefactor  = 1.12332
  norm       = 0.0001
  Prefactor  = 9.4484
  Prefactor  = 48.178
  Prefactor  = 0.0001
  Prefactor  = 11.4499
  Normalizat = 1.19432
  Prefactor  = 1.14375
 **********
 **   18 **HESSE 
 **********

 FCN=   6590.893     FROM HESSE     STATUS=OK           295 CALLS     2334 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     173.15        131.03        .30665E-04   -1.3069    
   2  norm          5.8879        2.4811        .73916E-04   -1.5223    
   3  Prefactor     35.771        45.586        .66960E-04   -1.4511    
   4  Prefactor     .10000E-03    17.719        .37114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.299        13.363        .11422E-03   -1.5006    
   6  Prefactor     26.158        38.729        .78324E-04   -1.4685    
   7  norm          16.043        9.9143        .99995E-04   -1.4907    
   8  Prefactor     .10000E-03    47.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.5425        5.3169        .14603E-03   -1.5159    
  10  norm          .10000E-03    16.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3841        .16533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1363        2.4273        .13131E-03   -1.5416    
  13  Prefactor     1.1233        2.1177        .78438E-03   -1.5496    
  14  norm          .10000E-03    1.9531        .10881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.4484        24.814        .13039E-03   -1.5093    
  16  Prefactor     48.178        94.783        .28864E-03   -1.4319    
  17  Prefactor     .10000E-03    12.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.450        27.560        .11840E-03   -1.5031    
  19  Normalizat    1.1943        .24096        .29561E-03   -.86779    
  20  Prefactor     1.1437        .19522        .24320E-03   -.88080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02274e-10
Minuit parameter uncertainties:
  1  131.247
  2  2.48112
  3  45.6304
  4  0.000574886
  5  13.366
  6  38.7658
  7  9.91527
  8  1.65651e-05
  9  5.31727
  10  4.76213e-05
  11  1.67336e-06
  12  2.42739
  13  2.11784
  14  9.76522e-06
  15  24.8407
  16  95.0811
  17  2.28583e-05
  18  27.5902
  19  0.241182
  20  0.195339
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  7.543e+00  5.317e+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.144e+00  1.953e-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.194e+00  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.96
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 2.14e-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) = 6590.2859603
delta logL = 0.607040762988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6590.28368278
delta logL = 0.609318283612

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5888       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3857       1.0000          .0000       10.000    
     3 'Normalizat'    1.2154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1418       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=   6590.284     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      234 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5888        298.47        .36394E-02   -.60420E-04
   2  Index         1.3857        5.4742        .26443        .52755E-04
   3  Normalizat    1.2154        .35034        .66326E-01    .13231E-04
   4  Prefactor     1.1418        .15750        .55074E-01    .28777E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.58878
  Index      = 1.38572
  Normalizat = 1.21544
  Prefactor  = 1.14179
 **********
 **   18 **HESSE 
 **********

 FCN=   6590.284     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5888        7.9375        .14558E-03   -1.5157    
   2  Index         1.3857        .62490        .93111E-02   -.80793    
   3  Normalizat    1.2154        .23432        .29342E-03   -.86127    
   4  Prefactor     1.1418        .19037        .24352E-03   -.88142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44745e-10
Minuit parameter uncertainties:
  1  7.93861
  2  0.62836
  3  0.234524
  4  0.190484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896898': 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) = 6590.28368278
delta logL = 0.609318290174

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  7.589e+00  7.939e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.386e+00  6.284e-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.142e+00  1.905e-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.215e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.16
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.39 +/- 0.63
Photon Flux (Free Index): 1.50e-08 +/- 2.34e-08
Energy Flux (Free Index): 6.97e-05 +/- 8.02e-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/896898/cmap_HighResolution_323827201_324086401_4FGL_J0152.6+0147_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='6.97e-05', photon_flux_error='2.97e-08', dlogl='6.09e-01', energy_flux='3.04e-05', photon_flux2='1.50e-08', job_status='DONE', time_completed='2021-08-14 19:44:47.267179', photon_index_error2='0.63', photon_index2='1.39', ts='11.96', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='8.02e-05', EG='1.19', time_epoch_completed='1628995487.27', return_code='0', job_id='896898', GAL2='1.14', EG2='1.22', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='2.34e-08', ts2='13.16', photon_index='1.98' WHERE bin_id='326' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:44:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 896898: <4FGL_J0152.6+0147_daily_bin326> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin326> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 19:30:31 2021
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:32:24 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:32:24 2021
Terminated at Sat Aug 14 19:44:48 2021
Results reported at Sat Aug 14 19:44:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin326 28.1614 1.7894 323827201 324086401 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 :                                   606.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            857 sec.

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

