/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 181 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 = 7480
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin53
RA = 28.1614, Dec = 1.7894
tmin = 253065601, tmax = 253324801
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='895586', job_status='RUN', time_executed='2021-08-14 19:29:52.552744', time_epoch_executed='1628994592.55' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895586

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895586/ft1_4FGL_J0152.6+0147_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895586/ft2_4FGL_J0152.6+0147_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895586/ft1_4FGL_J0152.6+0147_daily_bin53.fits outfile=/scratch/kocevski/895586/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin53.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=253065601.0 tmax=253324801.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 1.19
user 1.00
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895586/ft1_filtered_4FGL_J0152.6+0147_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/895586/ft2_4FGL_J0152.6+0147_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/895586/ltcube_253065601_253324801_4FGL_J0152.6+0147_daily_bin53.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/895586/ft2_4FGL_J0152.6+0147_daily_bin53.fits
.....................!
real 12.23
user 11.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895586/ft1_filtered_4FGL_J0152.6+0147_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/895586/ft2_4FGL_J0152.6+0147_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/895586/ltcube_253065601_253324801_4FGL_J0152.6+0147_daily_bin53.fits outfile=/scratch/kocevski/895586/expmap_253065601_253324801_4FGL_J0152.6+0147_daily_bin53.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/895586/ltcube_253065601_253324801_4FGL_J0152.6+0147_daily_bin53.fits
.....................!
real 157.31
user 152.81
sys 4.16

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/895586/ft1_filtered_4FGL_J0152.6+0147_daily_bin53.fits scfile=/scratch/kocevski/895586/ft2_4FGL_J0152.6+0147_daily_bin53.fits outfile=/scratch/kocevski/895586/cmap_253065601_253324801_4FGL_J0152.6+0147_daily_bin53.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 0.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895586/ft1_filtered_4FGL_J0152.6+0147_daily_bin53.fits scfile=/scratch/kocevski/895586/ft2_4FGL_J0152.6+0147_daily_bin53.fits outfile=/scratch/kocevski/895586/cmap_HighResolution_253065601_253324801_4FGL_J0152.6+0147_daily_bin53.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 0.48
user 0.31
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.805       1.0000         .10000E-03   10000.    
     2 'norm      '    8.1660       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9597       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2111       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.584       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5812       1.0000         .10000E-03   10000.    
    10 'norm      '    7.1684       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2189       1.0000         .10000E-03   10000.    
    12 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8713       1.0000         .10000E-03   10000.    
    14 'norm      '    .48815       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15061E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    78.265       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5268       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .75160       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0209       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=   8579.097     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2185 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.762        60.911       -.23841E-05   -.56755E-03
   2  norm          8.1667        1.8363        .13530E-06    .13120E-02
   3  Prefactor     .10000E-03    10.276       -.77998E-07** at limit **
   4  Prefactor     8.9589        6.2818       -.16547E-06   -.14256E-03
   5  Prefactor     1.2123        8.7257        .13089E-04   -.74061E-04
   6  Prefactor     .10000E-03    33.973       -.15572E-06** at limit **
   7  norm          12.584        6.1720       -.11991E-06   -.58850E-04
   8  Prefactor     .10000E-03    17.529       -.45822E-07** at limit **
   9  Prefactor     4.5813        3.4484        .58722E-07   -.18667E-04
  10  norm          7.1682        6.5947       -.76264E-07    .19043E-05
  11  Prefactor     4.2189        5.1506        .27483E-06    .63065E-04
  12  norm          .10000E-03    2.2253        .49431E-06** at limit **
  13  Prefactor     3.8712        1.9233        .58192E-07    .52662E-03
  14  norm          .48839        .62844        .13052E-06    .92442E-03
  15  Prefactor     .10000E-03    16.691       -.14465E-04** at limit **
  16  Prefactor     78.254        53.665       -.21248E-06   -.10694E-03
  17  Prefactor     7.5276        12.222        .20539E-06   -.28279E-04
  18  Prefactor     .10000E-03    11.265        .50136E-07** at limit **
  19  Normalizat    .75143        .14671       -.12341E-06    .21778E-03
  20  Prefactor     1.0210        .12233       -.80159E-06    .67019E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.762
  norm       = 8.16667
  Prefactor  = 0.0001
  Prefactor  = 8.95894
  Prefactor  = 1.21225
  Prefactor  = 0.0001
  norm       = 12.584
  Prefactor  = 0.0001
  Prefactor  = 4.58133
  norm       = 7.16819
  Prefactor  = 4.21894
  norm       = 0.0001
  Prefactor  = 3.87124
  norm       = 0.488387
  Prefactor  = 0.000100003
  Prefactor  = 78.2543
  Prefactor  = 7.5276
  Prefactor  = 0.0001
  Normalizat = 0.751427
  Prefactor  = 1.02103
 **********
 **   18 **HESSE 
 **********

 FCN=   8579.097     FROM HESSE     STATUS=OK           299 CALLS     2484 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.762        62.310        .24372E-03   -1.4060    
   2  norm          8.1667        1.8433        .55246E-04   -1.5136    
   3  Prefactor     .10000E-03    10.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9589        6.2778        .13390E-03   -1.5109    
   5  Prefactor     1.2123        10.563        .20552E-02   -1.5488    
   6  Prefactor     .10000E-03    34.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.584        6.1742        .11292E-03   -1.4998    
   8  Prefactor     .10000E-03    17.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5813        3.4492        .14399E-03   -1.5280    
  10  norm          7.1682        6.5970        .74910E-03   -1.5172    
  11  Prefactor     4.2189        5.1267        .19619E-03   -1.5297    
  12  norm          .10000E-03    4.6734        .26371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8712        1.9069        .85699E-04   -1.5314    
  14  norm          .48839        .59022        .78526E-03   -1.5568    
  15  Prefactor     .10000E-03    49.702        .50222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     78.254        53.642        .45393E-04   -1.3936    
  17  Prefactor     7.5276        12.242        .14618E-03   -1.5159    
  18  Prefactor     .10000E-03    11.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .75143        .16971        .28319E-03   -1.0190    
  20  Prefactor     1.0210        .14162        .20718E-03   -.92032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63242e-09
Minuit parameter uncertainties:
  1  62.3701
  2  1.84327
  3  3.08912e-05
  4  6.27829
  5  7.15832
  6  3.3491e-05
  7  6.1745
  8  4.19648e-05
  9  3.44938
  10  6.59762
  11  5.12725
  12  8.87118e-05
  13  1.90695
  14  0.590229
  15  0.000808904
  16  53.6749
  17  12.2465
  18  4.18672e-05
  19  0.169832
  20  0.141674
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.581e+00  3.449e+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.021e+00  1.417e-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:  7.514e-01  1.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.11
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.56e-08 +/- 1.93e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.39e-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) = 8579.09534043
delta logL = 0.00162940229893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8579.0946339
delta logL = 0.00233593134544

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7236       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9461       1.0000          .0000       10.000    
     3 'Normalizat'    .75298       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0204       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=   8579.095     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      226 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7254        92.734        .46285E-02    .10937E-03
   2  Index         1.9466        5.9485        .14701        .12375E-03
   3  Normalizat    .75292        .82594E-01    .63955E-01    .30381E-04
   4  Prefactor     1.0204        .48277E-01    .42101E-01    .60564E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.72536
  Index      = 1.94663
  Normalizat = 0.752922
  Prefactor  = 1.02042
 **********
 **   18 **HESSE 
 **********

 FCN=   8579.095     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7254        4.2806        .14795E-03   -1.5273    
   2  Index         1.9466        .56600        .80319E-02   -.65691    
   3  Normalizat    .75292        .16507        .28293E-03   -1.0184    
   4  Prefactor     1.0204        .13850        .20724E-03   -.92052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34202e-12
Minuit parameter uncertainties:
  1  4.28086
  2  0.567946
  3  0.165183
  4  0.138547
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895586': 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) = 8579.09463295
delta logL = 0.00233688618573

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.725e+00  4.281e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.947e+00  5.679e-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.020e+00  1.385e-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:  7.529e-01  1.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.10
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.95 +/- 0.57
Photon Flux (Free Index): 2.44e-08 +/- 2.55e-08
Energy Flux (Free Index): 1.93e-05 +/- 2.09e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/895586/cmap_HighResolution_253065601_253324801_4FGL_J0152.6+0147_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.56e-08', energy_flux2='1.93e-05', photon_flux_error='1.93e-08', dlogl='2.34e-03', energy_flux='1.84e-05', photon_flux2='2.44e-08', job_status='DONE', time_completed='2021-08-14 19:38:53.039499', photon_index_error2='0.57', photon_index2='1.95', ts='6.11', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.09e-05', EG='0.75', time_epoch_completed='1628995133.04', return_code='0', job_id='895586', GAL2='1.02', EG2='0.75', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='2.55e-08', ts2='6.10', photon_index='1.98' WHERE bin_id='53' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:38:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 895586: <4FGL_J0152.6+0147_daily_bin53> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin53 28.1614 1.7894 253065601 253324801 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 :                                   539.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             241.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            806 sec.

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

