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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin566
RA = 28.1614, Dec = 1.7894
tmin = 386035201, tmax = 386294401
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='898412', job_status='RUN', time_executed='2021-08-14 19:40:48.486275', time_epoch_executed='1628995248.49' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='566'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898412

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898412/ft1_4FGL_J0152.6+0147_daily_bin566.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898412/ft2_4FGL_J0152.6+0147_daily_bin566.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898412/ft1_4FGL_J0152.6+0147_daily_bin566.fits outfile=/scratch/kocevski/898412/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin566.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=386035201.0 tmax=386294401.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 14.06
user 4.71
sys 8.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898412/ft2_4FGL_J0152.6+0147_daily_bin566.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/898412/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin566.fits evtable="EVENTS" outfile="/scratch/kocevski/898412/ft1_filtered_4FGL_J0152.6+0147_daily_bin566.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 8.74
user 0.35
sys 8.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898412/ft1_filtered_4FGL_J0152.6+0147_daily_bin566.fits" evtable="EVENTS" scfile=/scratch/kocevski/898412/ft2_4FGL_J0152.6+0147_daily_bin566.fits sctable="SC_DATA" outfile=/scratch/kocevski/898412/ltcube_386035201_386294401_4FGL_J0152.6+0147_daily_bin566.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/898412/ft2_4FGL_J0152.6+0147_daily_bin566.fits
.....................!
real 23.35
user 13.77
sys 9.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898412/ft1_filtered_4FGL_J0152.6+0147_daily_bin566.fits evtable="EVENTS" scfile=/scratch/kocevski/898412/ft2_4FGL_J0152.6+0147_daily_bin566.fits sctable="SC_DATA" expcube=/scratch/kocevski/898412/ltcube_386035201_386294401_4FGL_J0152.6+0147_daily_bin566.fits outfile=/scratch/kocevski/898412/expmap_386035201_386294401_4FGL_J0152.6+0147_daily_bin566.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/898412/ltcube_386035201_386294401_4FGL_J0152.6+0147_daily_bin566.fits
.....................!
real 202.45
user 186.26
sys 15.57

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/898412/ft1_filtered_4FGL_J0152.6+0147_daily_bin566.fits scfile=/scratch/kocevski/898412/ft2_4FGL_J0152.6+0147_daily_bin566.fits outfile=/scratch/kocevski/898412/cmap_386035201_386294401_4FGL_J0152.6+0147_daily_bin566.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 8.50
user 0.39
sys 8.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898412/ft1_filtered_4FGL_J0152.6+0147_daily_bin566.fits scfile=/scratch/kocevski/898412/ft2_4FGL_J0152.6+0147_daily_bin566.fits outfile=/scratch/kocevski/898412/cmap_HighResolution_386035201_386294401_4FGL_J0152.6+0147_daily_bin566.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 8.45
user 0.38
sys 8.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.8446       1.0000         .10000E-03   10000.    
     3 'Prefactor '    110.70       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8007       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5030       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20332E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    6.0286       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.216       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.665       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3363       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5508       1.0000         .10000E-03   10000.    
    16 'Prefactor '    236.68       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9239       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0270       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90181       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=   5092.876     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2044 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.884       -.25378E-06** at limit **
   2  norm          4.8448        2.1394       -.15603E-07    .34064E-03
   3  Prefactor     110.72        65.544        .78149E-05    .32374E-04
   4  Prefactor     6.7990        8.6925       -.39502E-05   -.32358E-04
   5  Prefactor     2.5012        8.0398       -.18489E-05   -.30044E-03
   6  Prefactor     .10000E-03    392.34       -.10125E-03** at limit **
   7  norm          6.0285        5.8050        .52590E-06    .54778E-04
   8  Prefactor     29.225        78.449        .13022E-04    .50856E-05
   9  Prefactor     .10000E-03    5.4127       -.22593E-07** at limit **
  10  norm          .10000E-03    6.2355       -.72585E-07** at limit **
  11  Prefactor     .10000E-03    4.5698        .17379E-07** at limit **
  12  norm          14.664        6.8597       -.22301E-05   -.33548E-03
  13  Prefactor     .10001E-03    1.3047        .15466E-05** at limit **
  14  norm          1.3361        .94708       -.59151E-08   -.98562E-04
  15  Prefactor     9.5692        24.983       -.33084E-04   -.10682E-03
  16  Prefactor     236.65        112.36       -.17014E-04   -.82294E-04
  17  Prefactor     .10000E-03    4.0208        .31510E-08** at limit **
  18  Prefactor     5.9212        17.597        .82215E-05    .44702E-05
  19  Normalizat    1.0269        .19931       -.20113E-06    .26801E-03
  20  Prefactor     .90192        .16342        .39094E-05   -.67795E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.84483
  Prefactor  = 110.716
  Prefactor  = 6.79903
  Prefactor  = 2.50118
  Prefactor  = 0.000100002
  norm       = 6.0285
  Prefactor  = 29.2253
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6642
  Prefactor  = 0.000100006
  norm       = 1.33612
  Prefactor  = 9.56918
  Prefactor  = 236.651
  Prefactor  = 0.0001
  Prefactor  = 5.92124
  Normalizat = 1.0269
  Prefactor  = 0.901918
 **********
 **   18 **HESSE 
 **********

 FCN=   5092.876     FROM HESSE     STATUS=OK           295 CALLS     2339 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.8448        2.1380        .66395E-04   -1.5268    
   3  Prefactor     110.72        65.450        .19115E-03   -1.3600    
   4  Prefactor     6.7990        8.6738        .15386E-03   -1.5186    
   5  Prefactor     2.5012        8.0348        .25830E-03   -1.5392    
   6  Prefactor     .10000E-03    396.50        .20214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.0285        5.8103        .16353E-03   -1.5217    
   8  Prefactor     29.225        78.442        .74122E-04   -1.4626    
   9  Prefactor     .10000E-03    5.5088        .16203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.2398        .17405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.6232        .14893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.664        6.8780        .10459E-03   -1.4942    
  13  Prefactor     .10001E-03    2.2582        .15814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3361        .93784        .55813E-04   -1.5477    
  15  Prefactor     9.5692        25.034        .12967E-03   -1.5089    
  16  Prefactor     236.65        112.34        .13157E-03   -1.2619    
  17  Prefactor     .10000E-03    4.0225        .13976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.9212        17.603        .16499E-03   -1.5221    
  19  Normalizat    1.0269        .23176        .26872E-03   -.92135    
  20  Prefactor     .90192        .18974        .22977E-03   -.96074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65711e-09
Minuit parameter uncertainties:
  1  6.84242e-06
  2  2.13799
  3  65.4927
  4  8.67536
  5  8.03827
  6  0.00182237
  7  5.81086
  8  78.7203
  9  2.67306e-05
  10  5.17461e-06
  11  3.23418e-06
  12  6.87835
  13  0.00023542
  14  0.937848
  15  25.0617
  16  112.441
  17  3.55429e-06
  18  17.6183
  19  0.23199
  20  0.189878
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.673e-05  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.019e-01  1.899e-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.027e+00  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/898412/likelihoodResults_386035201_386294401_4FGL_J0152.6+0147_daily_bin566.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): 102
logL (Free Index) = 5092.87668104
delta logL = -0.000865115786837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5092.87581542
delta logL = 5.09034180141e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12390E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0635       1.0000          .0000       10.000    
     3 'Normalizat'    1.0272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90174       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=   5091.915     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      256 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20241        5.9831        .54555E-02   -.23959E-02
   2  Index         3.6833        2.9451        .88943E-01    .10668E-03
   3  Normalizat    .91778        .20256        .63829E-01    .34008E-03
   4  Prefactor     .94911        .11331        .45027E-01    .29692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.202407
  Index      = 3.68334
  Normalizat = 0.917783
  Prefactor  = 0.949111
 **********
 **   18 **HESSE 
 **********

 FCN=   5091.915     FROM HESSE     STATUS=OK            31 CALLS      287 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20241        .58097        .24731E-03   -1.5798    
   2  Index         3.6833        1.0293        .32533E-02   -.26648    
   3  Normalizat    .91778        .23852        .28234E-03   -.95838    
   4  Prefactor     .94911        .18709        .22449E-03   -.94446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60155e-10
Minuit parameter uncertainties:
  1  0.580985
  2  1.03725
  3  0.238798
  4  0.187222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898412': 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) = 5091.91454801
delta logL = 0.961267916848

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.024e-01  5.810e-01  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  3.683e+00  1.037e+00  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.491e-01  1.872e-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:  9.178e-01  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 28.161 1.789
Photon Index (Free Index): 3.68 +/- 1.04
Photon Flux (Free Index): 9.28e-08 +/- 5.30e-07
Energy Flux (Free Index): 1.48e-05 +/- 8.11e-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/898412/cmap_HighResolution_386035201_386294401_4FGL_J0152.6+0147_daily_bin566.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', comment='SUCCESS', energy_flux2='1.48e-05', dlogl='9.61e-01', photon_flux2='9.28e-08', job_status='DONE', time_completed='2021-08-14 19:52:16.278130', photon_index_error2='1.04', photon_index2='3.68', ts='-0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='7.74e-08', energy_flux_error2='8.11e-05', EG='1.03', time_epoch_completed='1628995936.28', return_code='0', job_id='898412', GAL2='0.95', EG2='0.92', return_code2='0', photon_flux_error2='5.30e-07', ts2='2.09', photon_index='1.98' WHERE bin_id='566' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:52:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 898412: <4FGL_J0152.6+0147_daily_bin566> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin566 28.1614 1.7894 386035201 386294401 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 :                                   814.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             242.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            997 sec.

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

