/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 115 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 = 7473
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin551
RA = 28.1614, Dec = 1.7894
tmin = 382147201, tmax = 382406401
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='898390', job_status='RUN', time_executed='2021-08-14 19:39:21.258727', time_epoch_executed='1628995161.26' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='551'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898390

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898390/ft1_4FGL_J0152.6+0147_daily_bin551.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898390/ft2_4FGL_J0152.6+0147_daily_bin551.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898390/ft1_4FGL_J0152.6+0147_daily_bin551.fits outfile=/scratch/kocevski/898390/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin551.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=382147201.0 tmax=382406401.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.60
user 3.20
sys 1.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898390/ft1_filtered_4FGL_J0152.6+0147_daily_bin551.fits" evtable="EVENTS" scfile=/scratch/kocevski/898390/ft2_4FGL_J0152.6+0147_daily_bin551.fits sctable="SC_DATA" outfile=/scratch/kocevski/898390/ltcube_382147201_382406401_4FGL_J0152.6+0147_daily_bin551.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/898390/ft2_4FGL_J0152.6+0147_daily_bin551.fits
.....................!
real 15.99
user 14.27
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898390/ft1_filtered_4FGL_J0152.6+0147_daily_bin551.fits evtable="EVENTS" scfile=/scratch/kocevski/898390/ft2_4FGL_J0152.6+0147_daily_bin551.fits sctable="SC_DATA" expcube=/scratch/kocevski/898390/ltcube_382147201_382406401_4FGL_J0152.6+0147_daily_bin551.fits outfile=/scratch/kocevski/898390/expmap_382147201_382406401_4FGL_J0152.6+0147_daily_bin551.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/898390/ltcube_382147201_382406401_4FGL_J0152.6+0147_daily_bin551.fits
.....................!
real 193.68
user 186.07
sys 7.12

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/898390/ft1_filtered_4FGL_J0152.6+0147_daily_bin551.fits scfile=/scratch/kocevski/898390/ft2_4FGL_J0152.6+0147_daily_bin551.fits outfile=/scratch/kocevski/898390/cmap_382147201_382406401_4FGL_J0152.6+0147_daily_bin551.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.69
user 0.39
sys 1.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898390/ft1_filtered_4FGL_J0152.6+0147_daily_bin551.fits scfile=/scratch/kocevski/898390/ft2_4FGL_J0152.6+0147_daily_bin551.fits outfile=/scratch/kocevski/898390/cmap_HighResolution_382147201_382406401_4FGL_J0152.6+0147_daily_bin551.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.68
user 0.39
sys 1.26

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    136.20       1.0000         .10000E-03   10000.    
     2 'norm      '    4.3112       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8878       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0974       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.004       1.0000         .10000E-03   10000.    
     8 'Prefactor '    82.457       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4293       1.0000         .10000E-03   10000.    
    10 'norm      '    43.277       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16900       1.0000         .10000E-03   10000.    
    12 'norm      '    12.075       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7619       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1392       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.880       1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.429       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2073       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9515       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87662       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97464       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=   6556.545     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2094 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     136.19        99.705       -.38588E-05   -.12017E-04
   2  norm          4.3111        2.0900        .35076E-07   -.40470E-04
   3  Prefactor     .10000E-03    14.076       -.60164E-06** at limit **
   4  Prefactor     1.8864        2.8658        .12359E-05   -.24093E-02
   5  Prefactor     8.0956        8.9121        .10825E-06   -.30307E-03
   6  Prefactor     .10000E-03    10.811        .23046E-06** at limit **
   7  norm          16.004        7.5496        .13986E-06    .87130E-05
   8  Prefactor     82.450        95.066       -.63786E-05   -.12270E-04
   9  Prefactor     3.4285        4.2536       -.14385E-06   -.60321E-04
  10  norm          43.283        19.209        .69652E-05    .28902E-03
  11  Prefactor     .10610        5.7374       -.10490E-05    .40304E-04
  12  norm          12.079        6.2376       -.69003E-06    .14247E-03
  13  Prefactor     2.7606        3.1676        .40453E-06    .83528E-04
  14  norm          1.1390        .76170        .77274E-08    .22806E-04
  15  Prefactor     34.879        27.177       -.16228E-05    .18834E-05
  16  Prefactor     42.431        46.469        .19293E-05    .14914E-04
  17  Prefactor     9.2064        11.054       -.99871E-06   -.23854E-04
  18  Prefactor     4.9431        18.648       -.11546E-04   -.49164E-04
  19  Normalizat    .87637        .17972        .50932E-06    .88498E-04
  20  Prefactor     .97499        .14940        .12308E-06    .17111E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 136.193
  norm       = 4.31106
  Prefactor  = 0.0001
  Prefactor  = 1.8864
  Prefactor  = 8.09557
  Prefactor  = 0.0001
  norm       = 16.0039
  Prefactor  = 82.4496
  Prefactor  = 3.42854
  norm       = 43.2833
  Prefactor  = 0.106105
  norm       = 12.0792
  Prefactor  = 2.76064
  norm       = 1.13903
  Prefactor  = 34.8789
  Prefactor  = 42.4311
  Prefactor  = 9.20644
  Prefactor  = 4.94311
  Normalizat = 0.876371
  Prefactor  = 0.974989
 **********
 **   18 **HESSE 
 **********

 FCN=   6556.545     FROM HESSE     STATUS=OK           307 CALLS     2401 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     136.19        99.830        .34511E-04   -1.3369    
   2  norm          4.3111        2.1191        .73491E-04   -1.5293    
   3  Prefactor     .10000E-03    14.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8864        6.9956        .15144E-02   -1.5433    
   5  Prefactor     8.0956        8.9202        .70448E-03   -1.5139    
   6  Prefactor     .10000E-03    10.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.004        7.5529        .10012E-03   -1.4908    
   8  Prefactor     82.450        95.547        .44234E-04   -1.3889    
   9  Prefactor     3.4285        4.2492        .17887E-03   -1.5338    
  10  norm          43.283        19.275        .60940E-04   -1.4391    
  11  Prefactor     .10610        6.6896        .56082E-01   -1.5643    
  12  norm          12.079        6.2307        .11528E-03   -1.5013    
  13  Prefactor     2.7606        3.1406        .13696E-03   -1.5376    
  14  norm          1.1390        .74169        .55351E-03   -1.5495    
  15  Prefactor     34.879        27.042        .67854E-04   -1.4526    
  16  Prefactor     42.431        46.449        .61544E-04   -1.4404    
  17  Prefactor     9.2064        11.085        .13208E-03   -1.5101    
  18  Prefactor     4.9431        18.693        .18074E-03   -1.5263    
  19  Normalizat    .87637        .21047        .28382E-03   -.97295    
  20  Prefactor     .97499        .17439        .22616E-03   -.93568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52702e-08
Minuit parameter uncertainties:
  1  99.9537
  2  2.11914
  3  7.47331e-06
  4  6.99862
  5  8.9217
  6  1.44871e-06
  7  7.55335
  8  95.7259
  9  4.24957
  10  19.2775
  11  1.6844
  12  6.23108
  13  3.14075
  14  0.7417
  15  27.0511
  16  46.489
  17  11.0871
  18  18.7147
  19  0.210667
  20  0.174495
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.429e+00  4.250e+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.750e-01  1.745e-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.764e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/898390/likelihoodResults_382147201_382406401_4FGL_J0152.6+0147_daily_bin551.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) = 6556.48035765
delta logL = 0.0649564201422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6556.47870027
delta logL = 0.066613803805

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5260       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2982       1.0000          .0000       10.000    
     3 'Normalizat'    .86402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98018       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6556.479     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      314 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5256        5.1079        .13821E-03   -.19808E-03
   2  Index         2.2985        1.0517        .79128E-02   -.21732E-04
   3  Normalizat    .86393        .20458        .28570E-03   -.21766E-03
   4  Prefactor     .98032        .16869        .22562E-03   -.49918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.52555
  Index      = 2.29849
  Normalizat = 0.863925
  Prefactor  = 0.980315
 **********
 **   18 **HESSE 
 **********

 FCN=   6556.479     FROM HESSE     STATUS=OK            25 CALLS      339 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5256        4.2633        .55283E-05   -1.5390    
   2  Index         2.2985        .87900        .31651E-03   -.57080    
   3  Normalizat    .86393        .20349        .11428E-04   -.97740    
   4  Prefactor     .98032        .16828        .45124E-04   -.93389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12495e-10
Minuit parameter uncertainties:
  1  4.26382
  2  0.885524
  3  0.203671
  4  0.168372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898390': 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) = 6556.47869973
delta logL = 0.066614344476

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.526e+00  4.264e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.298e+00  8.855e-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.803e-01  1.684e-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.639e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.30 +/- 0.89
Photon Flux (Free Index): 2.92e-08 +/- 4.15e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.37e-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/898390/cmap_HighResolution_382147201_382406401_4FGL_J0152.6+0147_daily_bin551.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='6.66e-02', photon_flux2='2.92e-08', job_status='DONE', time_completed='2021-08-14 19:50:17.549339', photon_index_error2='0.89', photon_index2='2.30', ts='0.96', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='7.81e-08', energy_flux_error2='1.37e-05', EG='0.88', time_epoch_completed='1628995817.55', return_code='0', job_id='898390', GAL2='0.98', EG2='0.86', return_code2='0', photon_flux_error2='4.15e-08', ts2='1.09', photon_index='1.98' WHERE bin_id='551' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:50:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 898390: <4FGL_J0152.6+0147_daily_bin551> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin551> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:39 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:36:57 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:36:57 2021
Terminated at Sat Aug 14 19:50:18 2021
Results reported at Sat Aug 14 19:50:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin551 28.1614 1.7894 382147201 382406401 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 :                                   671.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            879 sec.

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

