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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin121
RA = 28.1614, Dec = 1.7894
tmin = 270691201, tmax = 270950401
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='895687', job_status='RUN', time_executed='2021-08-14 19:30:24.079160', time_epoch_executed='1628994624.08' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895687/ft1_4FGL_J0152.6+0147_daily_bin121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895687/ft2_4FGL_J0152.6+0147_daily_bin121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895687/ft1_4FGL_J0152.6+0147_daily_bin121.fits outfile=/scratch/kocevski/895687/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin121.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=270691201.0 tmax=270950401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.97
user 1.44
sys 0.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/895687/ft2_4FGL_J0152.6+0147_daily_bin121.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/895687/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin121.fits evtable="EVENTS" outfile="/scratch/kocevski/895687/ft1_filtered_4FGL_J0152.6+0147_daily_bin121.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.82
user 0.32
sys 0.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895687/ft1_filtered_4FGL_J0152.6+0147_daily_bin121.fits" evtable="EVENTS" scfile=/scratch/kocevski/895687/ft2_4FGL_J0152.6+0147_daily_bin121.fits sctable="SC_DATA" outfile=/scratch/kocevski/895687/ltcube_270691201_270950401_4FGL_J0152.6+0147_daily_bin121.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/895687/ft2_4FGL_J0152.6+0147_daily_bin121.fits
.....................!
real 12.75
user 12.02
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895687/ft1_filtered_4FGL_J0152.6+0147_daily_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/895687/ft2_4FGL_J0152.6+0147_daily_bin121.fits sctable="SC_DATA" expcube=/scratch/kocevski/895687/ltcube_270691201_270950401_4FGL_J0152.6+0147_daily_bin121.fits outfile=/scratch/kocevski/895687/expmap_270691201_270950401_4FGL_J0152.6+0147_daily_bin121.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/895687/ltcube_270691201_270950401_4FGL_J0152.6+0147_daily_bin121.fits
.....................!
real 193.47
user 187.69
sys 5.31

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/895687/ft1_filtered_4FGL_J0152.6+0147_daily_bin121.fits scfile=/scratch/kocevski/895687/ft2_4FGL_J0152.6+0147_daily_bin121.fits outfile=/scratch/kocevski/895687/cmap_270691201_270950401_4FGL_J0152.6+0147_daily_bin121.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.85
user 0.36
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895687/ft1_filtered_4FGL_J0152.6+0147_daily_bin121.fits scfile=/scratch/kocevski/895687/ft2_4FGL_J0152.6+0147_daily_bin121.fits outfile=/scratch/kocevski/895687/cmap_HighResolution_270691201_270950401_4FGL_J0152.6+0147_daily_bin121.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.86
user 0.36
sys 0.47

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13345E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.4885       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11335E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3915       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0952       1.0000         .10000E-03   10000.    
     6 'Prefactor '    94.990       1.0000         .10000E-03   10000.    
     7 'norm      '    9.1257       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.469       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1594       1.0000         .10000E-03   10000.    
    10 'norm      '    27.361       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.643       1.0000         .10000E-03   10000.    
    12 'norm      '    13.375       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .40790       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2153       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    103.76       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.046       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0791       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80308       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=   7237.323     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2080 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    88.560        .38884E-07** at limit **
   2  norm          4.4883        1.6184       -.40320E-07    .13495E-04
   3  Prefactor     .10000E-03    67.478       -.12315E-06** at limit **
   4  Prefactor     5.3920        7.1804        .12512E-06   -.21523E-04
   5  Prefactor     2.1000        10.092        .86671E-06   -.21903E-04
   6  Prefactor     94.923        45.540       -.58941E-07    .30530E-04
   7  norm          9.1241        6.2097        .32061E-06   -.45045E-04
   8  Prefactor     17.245        58.084       -.92832E-06   -.47976E-05
   9  Prefactor     5.1595        4.4138        .59973E-07   -.20783E-05
  10  norm          27.362        15.607        .17463E-08    .10605E-04
  11  Prefactor     12.644        6.8112        .86658E-07    .51165E-04
  12  norm          13.385        5.8086        .56710E-06    .23189E-03
  13  Prefactor     .40674        1.9034       -.88356E-06    .34674E-04
  14  norm          1.2153        .77582        .11309E-07    .88467E-04
  15  Prefactor     .10000E-03    29.663       -.34428E-05** at limit **
  16  Prefactor     103.63        84.122        .31978E-05    .21432E-04
  17  Prefactor     .10000E-03    6.9558        .11567E-06** at limit **
  18  Prefactor     39.091        27.327        .81940E-06    .39427E-04
  19  Normalizat    1.0790        .17062       -.17922E-06    .16847E-03
  20  Prefactor     .80328        .14089        .84776E-06    .11483E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.48827
  Prefactor  = 0.0001
  Prefactor  = 5.39202
  Prefactor  = 2.09996
  Prefactor  = 94.9225
  norm       = 9.12408
  Prefactor  = 17.2452
  Prefactor  = 5.15953
  norm       = 27.3616
  Prefactor  = 12.6443
  norm       = 13.3849
  Prefactor  = 0.406742
  norm       = 1.21526
  Prefactor  = 0.0001
  Prefactor  = 103.627
  Prefactor  = 0.0001
  Prefactor  = 39.0911
  Normalizat = 1.07902
  Prefactor  = 0.803283
 **********
 **   18 **HESSE 
 **********

 FCN=   7237.323     FROM HESSE     STATUS=OK           303 CALLS     2383 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    89.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.4883        1.6174        .62098E-04   -1.5284    
   3  Prefactor     .10000E-03    67.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.3920        7.1622        .17307E-03   -1.5244    
   5  Prefactor     2.1000        10.013        .28515E-03   -1.5418    
   6  Prefactor     94.923        45.476        .20619E-03   -1.3756    
   7  norm          9.1241        6.1963        .66337E-03   -1.5104    
   8  Prefactor     17.245        58.102        .95825E-04   -1.4877    
   9  Prefactor     5.1595        4.4100        .15874E-03   -1.5254    
  10  norm          27.362        15.612        .76589E-04   -1.4661    
  11  Prefactor     12.644        6.8094        .11266E-03   -1.4997    
  12  norm          13.385        5.8063        .10952E-03   -1.4976    
  13  Prefactor     .40674        3.1399        .20486E-02   -1.5580    
  14  norm          1.2153        .76637        .56907E-04   -1.5487    
  15  Prefactor     .10000E-03    29.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     103.63        84.033        .19737E-03   -1.3668    
  17  Prefactor     .10000E-03    7.0062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     39.091        27.337        .64144E-04   -1.4457    
  19  Normalizat    1.0790        .19719        .25987E-03   -.90428    
  20  Prefactor     .80328        .16204        .24184E-03   -.99607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08332e-10
Minuit parameter uncertainties:
  1  0.000109311
  2  1.61737
  3  5.54182e-05
  4  7.16331
  5  9.17321
  6  45.4928
  7  6.19669
  8  58.2939
  9  4.41032
  10  15.6147
  11  6.80981
  12  5.80655
  13  2.26008
  14  0.766374
  15  1.57682e-05
  16  84.1296
  17  5.24805e-06
  18  27.3453
  19  0.19732
  20  0.162135
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  5.160e+00  4.410e+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:  8.033e-01  1.621e-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.079e+00  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.25
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.89e-08 +/- 2.47e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 1.77e-05

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

Saving results to:
/scratch/kocevski/895687/likelihoodResults_270691201_270950401_4FGL_J0152.6+0147_daily_bin121.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) = 7237.11240119
delta logL = 0.21053313318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7237.10590779
delta logL = 0.217026531723

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3032       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3451       1.0000          .0000       10.000    
     3 'Normalizat'    1.0631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81012       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=   7237.106     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      252 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2975        59.916        .55689E-02    .43027E-03
   2  Index         2.3463        2.9311        .10790        .18412E-03
   3  Normalizat    1.0631        .70332E-01    .59141E-01    .21155E-04
   4  Prefactor     .81009        .49909E-01    .43849E-01    .17000E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.29747
  Index      = 2.34632
  Normalizat = 1.06312
  Prefactor  = 0.810092
 **********
 **   18 **HESSE 
 **********

 FCN=   7237.106     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2975        4.7419        .11331E-03   -1.5345    
   2  Index         2.3463        .65787        .55653E-02   -.55947    
   3  Normalizat    1.0631        .19366        .26154E-03   -.90945    
   4  Prefactor     .81009        .15685        .24088E-03   -.99357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35238e-11
Minuit parameter uncertainties:
  1  4.74241
  2  0.660546
  3  0.193788
  4  0.156935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895687': 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) = 7237.10590531
delta logL = 0.21702900721

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.297e+00  4.742e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.346e+00  6.605e-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:  8.101e-01  1.569e-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.063e+00  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.67
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.35 +/- 0.66
Photon Flux (Free Index): 4.28e-08 +/- 3.68e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.44e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', comment='SUCCESS', photon_flux='2.89e-08', energy_flux2='1.51e-05', photon_flux_error='2.47e-08', dlogl='2.17e-01', energy_flux='2.08e-05', photon_flux2='4.28e-08', job_status='DONE', time_completed='2021-08-14 19:41:20.748754', photon_index_error2='0.66', photon_index2='2.35', ts='2.25', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='8.51e-08', energy_flux_error2='1.44e-05', EG='1.08', time_epoch_completed='1628995280.75', return_code='0', job_id='895687', GAL2='0.81', EG2='1.06', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='3.68e-08', ts2='2.67', photon_index='1.98' WHERE bin_id='121' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:41:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 895687: <4FGL_J0152.6+0147_daily_bin121> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin121 28.1614 1.7894 270691201 270950401 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 :                                   661.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            948 sec.

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

