/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 85 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 = 7478
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin745
RA = 28.1614, Dec = 1.7894
tmin = 432432001, tmax = 432691201
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='899750', job_status='RUN', time_executed='2021-08-14 19:42:32.432933', time_epoch_executed='1628995352.43' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899750

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899750/ft1_4FGL_J0152.6+0147_daily_bin745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899750/ft2_4FGL_J0152.6+0147_daily_bin745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899750/ft1_4FGL_J0152.6+0147_daily_bin745.fits outfile=/scratch/kocevski/899750/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin745.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=432432001.0 tmax=432691201.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 5.52
user 4.82
sys 0.61

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899750/ft1_filtered_4FGL_J0152.6+0147_daily_bin745.fits" evtable="EVENTS" scfile=/scratch/kocevski/899750/ft2_4FGL_J0152.6+0147_daily_bin745.fits sctable="SC_DATA" outfile=/scratch/kocevski/899750/ltcube_432432001_432691201_4FGL_J0152.6+0147_daily_bin745.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/899750/ft2_4FGL_J0152.6+0147_daily_bin745.fits
.....................!
real 13.73
user 12.91
sys 0.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899750/ft1_filtered_4FGL_J0152.6+0147_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/899750/ft2_4FGL_J0152.6+0147_daily_bin745.fits sctable="SC_DATA" expcube=/scratch/kocevski/899750/ltcube_432432001_432691201_4FGL_J0152.6+0147_daily_bin745.fits outfile=/scratch/kocevski/899750/expmap_432432001_432691201_4FGL_J0152.6+0147_daily_bin745.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/899750/ltcube_432432001_432691201_4FGL_J0152.6+0147_daily_bin745.fits
.....................!
real 193.39
user 187.33
sys 5.53

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/899750/ft1_filtered_4FGL_J0152.6+0147_daily_bin745.fits scfile=/scratch/kocevski/899750/ft2_4FGL_J0152.6+0147_daily_bin745.fits outfile=/scratch/kocevski/899750/cmap_432432001_432691201_4FGL_J0152.6+0147_daily_bin745.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.91
user 0.38
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899750/ft1_filtered_4FGL_J0152.6+0147_daily_bin745.fits scfile=/scratch/kocevski/899750/ft2_4FGL_J0152.6+0147_daily_bin745.fits outfile=/scratch/kocevski/899750/cmap_HighResolution_432432001_432691201_4FGL_J0152.6+0147_daily_bin745.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.89
user 0.37
sys 0.51

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.819       1.0000         .10000E-03   10000.    
     2 'norm      '    3.6562       1.0000         .10000E-03   10000.    
     3 'Prefactor '    74.193       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5671       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    91.968       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6397       1.0000         .10000E-03   10000.    
    10 'norm      '    29.357       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7220       1.0000         .10000E-03   10000.    
    12 'norm      '    8.9574       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.363       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.022       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0356       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93361       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=   4586.090     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1993 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.734        87.771       -.10791E-03   -.45799E-06
   2  norm          3.6570        2.0704        .19324E-05   -.11828E-02
   3  Prefactor     74.144        68.219       -.48994E-04   -.20837E-03
   4  Prefactor     1.5738        9.0994        .23004E-04   -.24512E-03
   5  Prefactor     .10000E-03    13.227       -.40358E-06** at limit **
   6  Prefactor     91.965        66.372       -.20495E-05   -.12550E-04
   7  norm          .10000E-03    2.4114       -.10473E-06** at limit **
   8  Prefactor     .10000E-03    79.183        .68309E-06** at limit **
   9  Prefactor     2.6397        3.1077       -.10247E-06    .45069E-04
  10  norm          29.359        25.084       -.65057E-07    .17530E-04
  11  Prefactor     7.7214        9.6937       -.18378E-05   -.53369E-04
  12  norm          8.9582        7.5108       -.17673E-05   -.85639E-04
  13  Prefactor     .10000E-03    .76119       -.16476E-07** at limit **
  14  norm          .10000E-03    .32135       -.69991E-07** at limit **
  15  Prefactor     .10000E-03    9.4813       -.30973E-07** at limit **
  16  Prefactor     .10000E-03    31.993        .99534E-07** at limit **
  17  Prefactor     12.363        11.277       -.36741E-06   -.14804E-05
  18  Prefactor     23.022        17.093       -.47927E-06    .94221E-05
  19  Normalizat    1.0357        .20866        .10738E-05   -.66151E-04
  20  Prefactor     .93356        .17582        .41046E-05   -.17471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.7343
  norm       = 3.65697
  Prefactor  = 74.1441
  Prefactor  = 1.57384
  Prefactor  = 0.0001
  Prefactor  = 91.9653
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.63966
  norm       = 29.3592
  Prefactor  = 7.72142
  norm       = 8.95816
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3634
  Prefactor  = 23.0218
  Normalizat = 1.03565
  Prefactor  = 0.933564
 **********
 **   18 **HESSE 
 **********

 FCN=   4586.090     FROM HESSE     STATUS=OK           293 CALLS     2286 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.734        87.747        .27857E-03   -1.4268    
   2  norm          3.6570        2.0677        .69057E-04   -1.5325    
   3  Prefactor     74.144        67.684        .23306E-03   -1.3984    
   4  Prefactor     1.5738        8.7891        .33971E-03   -1.5457    
   5  Prefactor     .10000E-03    13.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     91.965        66.391        .20952E-03   -1.3787    
   7  norm          .10000E-03    2.4141        .10270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    79.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6397        3.1060        .12614E-03   -1.5383    
  10  norm          29.359        25.136        .73944E-04   -1.4624    
  11  Prefactor     7.7214        9.6731        .14431E-03   -1.5152    
  12  norm          8.9582        7.5162        .13392E-03   -1.5109    
  13  Prefactor     .10000E-03    .76575        .57675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .33241        .74873E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.5339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.363        11.279        .11392E-03   -1.5005    
  18  Prefactor     23.022        17.102        .83482E-04   -1.4748    
  19  Normalizat    1.0357        .24335        .26648E-03   -.91845    
  20  Prefactor     .93356        .20571        .22891E-03   -.94978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30201e-10
Minuit parameter uncertainties:
  1  87.9672
  2  2.06773
  3  67.7542
  4  7.43987
  5  5.30565e-05
  6  66.4443
  7  1.81641e-06
  8  9.31926e-05
  9  3.1062
  10  25.1455
  11  9.67508
  12  7.51696
  13  7.73785e-07
  14  3.78549e-06
  15  1.89471e-05
  16  1.46663e-05
  17  11.2812
  18  17.1055
  19  0.243614
  20  0.205884
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.640e+00  3.106e+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:  9.336e-01  2.059e-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.036e+00  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.98
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.48e-08 +/- 1.74e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/899750/likelihoodResults_432432001_432691201_4FGL_J0152.6+0147_daily_bin745.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) = 4586.07951197
delta logL = 0.0107948258128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4586.07334188
delta logL = 0.016964918801

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0872       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8303       1.0000          .0000       10.000    
     3 'Normalizat'    1.0381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93247       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=   4586.073     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      226 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0855        179.96        .57707E-02    .19967E-04
   2  Index         1.8298        5.4973        .17306        .61667E-04
   3  Normalizat    1.0381        .13747        .60192E-01    .50823E-05
   4  Prefactor     .93250        .82628E-01    .45417E-01   -.18861E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.08554
  Index      = 1.82981
  Normalizat = 1.03811
  Prefactor  = 0.932502
 **********
 **   18 **HESSE 
 **********

 FCN=   4586.073     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0855        4.3520        .13636E-03   -1.5357    
   2  Index         1.8298        .83456        .10109E-01   -.68677    
   3  Normalizat    1.0381        .24099        .26619E-03   -.91764    
   4  Prefactor     .93250        .19853        .22902E-03   -.95014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14946e-11
Minuit parameter uncertainties:
  1  4.35246
  2  0.841185
  3  0.241245
  4  0.198687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899750': 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) = 4586.07334131
delta logL = 0.0169654898209

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.086e+00  4.352e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.830e+00  8.412e-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:  9.325e-01  1.987e-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.038e+00  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.83 +/- 0.84
Photon Flux (Free Index): 1.25e-08 +/- 1.85e-08
Energy Flux (Free Index): 1.37e-05 +/- 2.68e-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/899750/cmap_HighResolution_432432001_432691201_4FGL_J0152.6+0147_daily_bin745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', comment='SUCCESS', photon_flux='1.48e-08', energy_flux2='1.37e-05', photon_flux_error='1.74e-08', dlogl='1.70e-02', energy_flux='1.06e-05', photon_flux2='1.25e-08', job_status='DONE', time_completed='2021-08-14 19:51:36.561208', photon_index_error2='0.84', photon_index2='1.83', ts='1.98', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='7.50e-08', energy_flux_error2='2.68e-05', EG='1.04', time_epoch_completed='1628995896.56', return_code='0', job_id='899750', GAL2='0.93', EG2='1.04', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='1.85e-08', ts2='2.01', photon_index='1.98' WHERE bin_id='745' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:51:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 899750: <4FGL_J0152.6+0147_daily_bin745> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin745> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:40:27 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:40:39 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:40:39 2021
Terminated at Sat Aug 14 19:51:37 2021
Results reported at Sat Aug 14 19:51:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin745 28.1614 1.7894 432432001 432691201 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 :                                   549.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            670 sec.

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

