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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin277
RA = 28.1614, Dec = 1.7894
tmin = 311126401, tmax = 311385601
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='896827', job_status='RUN', time_executed='2021-08-14 19:32:38.674892', time_epoch_executed='1628994758.67' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896827/ft1_4FGL_J0152.6+0147_daily_bin277.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896827/ft2_4FGL_J0152.6+0147_daily_bin277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896827/ft1_4FGL_J0152.6+0147_daily_bin277.fits outfile=/scratch/kocevski/896827/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin277.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=311126401.0 tmax=311385601.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.48
user 3.29
sys 2.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896827/ft1_filtered_4FGL_J0152.6+0147_daily_bin277.fits" evtable="EVENTS" scfile=/scratch/kocevski/896827/ft2_4FGL_J0152.6+0147_daily_bin277.fits sctable="SC_DATA" outfile=/scratch/kocevski/896827/ltcube_311126401_311385601_4FGL_J0152.6+0147_daily_bin277.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/896827/ft2_4FGL_J0152.6+0147_daily_bin277.fits
.....................!
real 14.88
user 12.33
sys 2.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896827/ft1_filtered_4FGL_J0152.6+0147_daily_bin277.fits evtable="EVENTS" scfile=/scratch/kocevski/896827/ft2_4FGL_J0152.6+0147_daily_bin277.fits sctable="SC_DATA" expcube=/scratch/kocevski/896827/ltcube_311126401_311385601_4FGL_J0152.6+0147_daily_bin277.fits outfile=/scratch/kocevski/896827/expmap_311126401_311385601_4FGL_J0152.6+0147_daily_bin277.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/896827/ltcube_311126401_311385601_4FGL_J0152.6+0147_daily_bin277.fits
.....................!
real 193.89
user 186.40
sys 6.92

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/896827/ft1_filtered_4FGL_J0152.6+0147_daily_bin277.fits scfile=/scratch/kocevski/896827/ft2_4FGL_J0152.6+0147_daily_bin277.fits outfile=/scratch/kocevski/896827/cmap_311126401_311385601_4FGL_J0152.6+0147_daily_bin277.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 2.85
user 0.37
sys 2.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896827/ft1_filtered_4FGL_J0152.6+0147_daily_bin277.fits scfile=/scratch/kocevski/896827/ft2_4FGL_J0152.6+0147_daily_bin277.fits outfile=/scratch/kocevski/896827/cmap_HighResolution_311126401_311385601_4FGL_J0152.6+0147_daily_bin277.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 2.86
user 0.37
sys 2.07

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2167       1.0000         .10000E-03   10000.    
     3 'Prefactor '    105.16       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11910E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8548       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .74508E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3616       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5448       1.0000         .10000E-03   10000.    
    12 'norm      '    23.830       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1710       1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0175       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .72169       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0379       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=   4477.317     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     1749 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.857        .36532E-05** at limit **
   2  norm          1.2178        1.6586       -.48129E-07   -.14853E-03
   3  Prefactor     105.14        59.175        .20069E-05    .15664E-04
   4  Prefactor     .10000E-03    3.5992       -.25997E-06** at limit **
   5  Prefactor     3.8577        10.195        .29400E-05    .22692E-04
   6  Prefactor     .10000E-03    13.659        .61186E-07** at limit **
   7  norm          .10001E-03    4.6272        .68989E-06** at limit **
   8  Prefactor     .10000E-03    28.695        .25986E-05** at limit **
   9  Prefactor     5.3623        6.7482        .15696E-05    .54590E-04
  10  norm          .10000E-03    8.1242       -.29261E-07** at limit **
  11  Prefactor     8.5446        6.9072        .76321E-07    .55355E-05
  12  norm          23.829        8.0457        .40194E-07    .23687E-04
  13  Prefactor     4.1710        3.2746        .15505E-06    .11798E-03
  14  norm          .10000E-03    .32342        .16964E-07** at limit **
  15  Prefactor     9.0283        29.947       -.68858E-06    .39133E-04
  16  Prefactor     .10000E-03    21.177       -.78485E-06** at limit **
  17  Prefactor     .10000E-03    5.4784       -.19079E-07** at limit **
  18  Prefactor     .10000E-03    45.272       -.36973E-05** at limit **
  19  Normalizat    .72139        .19520       -.38363E-06    .29185E-04
  20  Prefactor     1.0381        .16516       -.40629E-06    .40948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.21777
  Prefactor  = 105.138
  Prefactor  = 0.0001
  Prefactor  = 3.85774
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 5.36226
  norm       = 0.0001
  Prefactor  = 8.54457
  norm       = 23.8293
  Prefactor  = 4.17097
  norm       = 0.0001
  Prefactor  = 9.02831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.721391
  Prefactor  = 1.03811
 **********
 **   18 **HESSE 
 **********

 FCN=   4477.317     FROM HESSE     STATUS=OK           293 CALLS     2042 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2178        1.6330        .95615E-04   -1.5487    
   3  Prefactor     105.14        59.349        .19607E-03   -1.3654    
   4  Prefactor     .10000E-03    3.6167        .12401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8577        10.205        .10277E-02   -1.5315    
   6  Prefactor     .10000E-03    13.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    26.422        .27468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3623        6.7553        .86779E-03   -1.5245    
  10  norm          .10000E-03    8.1331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.5446        6.9054        .13713E-03   -1.5123    
  12  norm          23.829        8.0422        .82057E-04   -1.4731    
  13  Prefactor     4.1710        3.2584        .97050E-04   -1.5299    
  14  norm          .10000E-03    .33429        .74222E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.0283        29.659        .13347E-03   -1.5107    
  16  Prefactor     .10000E-03    21.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4844        .15296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    45.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .72139        .22306        .28271E-03   -1.0305    
  20  Prefactor     1.0381        .18961        .20328E-03   -.91470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11731e-10
Minuit parameter uncertainties:
  1  6.05356e-05
  2  1.63306
  3  59.3825
  4  2.05476e-05
  5  10.2092
  6  6.61735e-07
  7  0.0010539
  8  2.39905e-05
  9  6.75623
  10  3.32752e-07
  11  6.90608
  12  8.04258
  13  3.25857
  14  4.45493e-07
  15  29.7079
  16  1.24713e-06
  17  1.01311e-08
  18  0.000223472
  19  0.223341
  20  0.189729
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  5.362e+00  6.756e+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.038e+00  1.897e-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.214e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.84
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896827/likelihoodResults_311126401_311385601_4FGL_J0152.6+0147_daily_bin277.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) = 4477.2512532
delta logL = 0.0654569495528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4477.24704421
delta logL = 0.0696659353025

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8593       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7105       1.0000          .0000       10.000    
     3 'Normalizat'    .72655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0352       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=   4477.247     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      291 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8596        10.201        .14303E-03   -.16080E-03
   2  Index         1.7104        .67876        .69650E-02   -.47225E-04
   3  Normalizat    .72655        .21913        .28169E-03    .79669E-04
   4  Prefactor     1.0352        .18707        .20349E-03    .11972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.85961
  Index      = 1.71045
  Normalizat = 0.726554
  Prefactor  = 1.03525
 **********
 **   18 **HESSE 
 **********

 FCN=   4477.247     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8596        9.9555        .57212E-05   -1.5147    
   2  Index         1.7104        .66243        .27860E-03   -.71804    
   3  Normalizat    .72655        .21924        .11267E-04   -1.0285    
   4  Prefactor     1.0352        .18719        .40698E-04   -.91564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07977e-10
Minuit parameter uncertainties:
  1  9.9576
  2  0.665899
  3  0.219506
  4  0.187311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896827': 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) = 4477.24704421
delta logL = 0.0696659415025

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  7.860e+00  9.958e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.710e+00  6.659e-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.035e+00  1.873e-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.266e-01  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.84
Ra Dec: 28.161 1.789

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/896827/cmap_HighResolution_311126401_311385601_4FGL_J0152.6+0147_daily_bin277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.64e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-08-14 19:41:48.278641', job_id='896827', GAL2='1.04', fit_tolerance='1e-08', EG2='0.73', EG='0.72', time_epoch_completed='1628995308.28', return_code2='0', ts='0.84', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='6.97e-02', ts2='0.97', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='277' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:41:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 896827: <4FGL_J0152.6+0147_daily_bin277> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin277 28.1614 1.7894 311126401 311385601 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 :                                   570.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   623 sec.
    Turnaround time :                            684 sec.

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

