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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin875
RA = 28.1614, Dec = 1.7894
tmin = 466128001, tmax = 466387201
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='899952', job_status='RUN', time_executed='2021-08-14 19:44:55.836434', time_epoch_executed='1628995495.84' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='875'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899952

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899952/ft1_4FGL_J0152.6+0147_daily_bin875.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899952/ft2_4FGL_J0152.6+0147_daily_bin875.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899952/ft1_4FGL_J0152.6+0147_daily_bin875.fits outfile=/scratch/kocevski/899952/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin875.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=466128001.0 tmax=466387201.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.31
user 3.28
sys 0.99

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899952/ft1_filtered_4FGL_J0152.6+0147_daily_bin875.fits" evtable="EVENTS" scfile=/scratch/kocevski/899952/ft2_4FGL_J0152.6+0147_daily_bin875.fits sctable="SC_DATA" outfile=/scratch/kocevski/899952/ltcube_466128001_466387201_4FGL_J0152.6+0147_daily_bin875.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/899952/ft2_4FGL_J0152.6+0147_daily_bin875.fits
.....................!
real 13.21
user 11.91
sys 1.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899952/ft1_filtered_4FGL_J0152.6+0147_daily_bin875.fits evtable="EVENTS" scfile=/scratch/kocevski/899952/ft2_4FGL_J0152.6+0147_daily_bin875.fits sctable="SC_DATA" expcube=/scratch/kocevski/899952/ltcube_466128001_466387201_4FGL_J0152.6+0147_daily_bin875.fits outfile=/scratch/kocevski/899952/expmap_466128001_466387201_4FGL_J0152.6+0147_daily_bin875.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/899952/ltcube_466128001_466387201_4FGL_J0152.6+0147_daily_bin875.fits
.....................!
real 192.27
user 185.98
sys 5.84

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/899952/ft1_filtered_4FGL_J0152.6+0147_daily_bin875.fits scfile=/scratch/kocevski/899952/ft2_4FGL_J0152.6+0147_daily_bin875.fits outfile=/scratch/kocevski/899952/cmap_466128001_466387201_4FGL_J0152.6+0147_daily_bin875.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.30
user 0.36
sys 0.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899952/ft1_filtered_4FGL_J0152.6+0147_daily_bin875.fits scfile=/scratch/kocevski/899952/ft2_4FGL_J0152.6+0147_daily_bin875.fits outfile=/scratch/kocevski/899952/cmap_HighResolution_466128001_466387201_4FGL_J0152.6+0147_daily_bin875.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.32
user 0.36
sys 0.95

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    22.523       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15409E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.0071       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.230       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    20.840       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5457       1.0000         .10000E-03   10000.    
    12 'norm      '    12.000       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0007       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.392       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1238       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85339       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=   6328.258     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2034 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.161        .15907E-05** at limit **
   2  norm          22.522        3.2034       -.23470E-07   -.52466E-03
   3  Prefactor     .10000E-03    31.149       -.11684E-06** at limit **
   4  Prefactor     .10000E-03    2.1292       -.64682E-08** at limit **
   5  Prefactor     .10000E-03    4.9212       -.11914E-06** at limit **
   6  Prefactor     .10000E-03    116.00        .12339E-05** at limit **
   7  norm          3.0058        3.6848       -.14633E-07   -.27073E-04
   8  Prefactor     62.212        58.066        .13472E-05   -.34578E-05
   9  Prefactor     .10000E-03    1.8217       -.14524E-08** at limit **
  10  norm          20.839        18.095       -.57075E-06   -.46579E-06
  11  Prefactor     2.5449        6.1285        .52256E-05   -.86838E-05
  12  norm          12.001        5.5206       -.10525E-06    .97841E-04
  13  Prefactor     .10000E-03    1.1074        .17331E-06** at limit **
  14  norm          .10000E-03    .29023        .28807E-07** at limit **
  15  Prefactor     4.0111        68.930        .53405E-06    .25906E-04
  16  Prefactor     .10000E-03    80.384       -.33294E-05** at limit **
  17  Prefactor     .10000E-03    5.2368        .20996E-08** at limit **
  18  Prefactor     34.396        30.655        .52893E-06    .96463E-04
  19  Normalizat    1.1240        .18723        .81214E-06    .11933E-04
  20  Prefactor     .85332        .15262       -.15029E-05    .39970E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 22.5224
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 3.00577
  Prefactor  = 62.212
  Prefactor  = 0.0001
  norm       = 20.8393
  Prefactor  = 2.54493
  norm       = 12.0008
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.0111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.3959
  Normalizat = 1.124
  Prefactor  = 0.85332
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.258     FROM HESSE     STATUS=OK           287 CALLS     2321 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          22.522        3.2081        .51724E-04   -1.4758    
   3  Prefactor     .10000E-03    31.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1348        .11335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.205        .34254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    117.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.0058        3.6809        .82405E-03   -1.5361    
   8  Prefactor     62.212        58.161        .25433E-03   -1.4129    
   9  Prefactor     .10000E-03    1.8311        .10484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          20.839        18.119        .87739E-04   -1.4795    
  11  Prefactor     2.5449        6.1347        .12797E-02   -1.5389    
  12  norm          12.001        5.5226        .11564E-03   -1.5015    
  13  Prefactor     .10000E-03    1.1181        .81655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .29759        .83592E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.0111        67.511        .20163E-03   -1.5307    
  16  Prefactor     .10000E-03    80.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2447        .17779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.396        30.498        .68332E-04   -1.4534    
  19  Normalizat    1.1240        .21866        .26811E-03   -.88985    
  20  Prefactor     .85332        .17761        .24173E-03   -.97792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52671e-10
Minuit parameter uncertainties:
  1  4.38325e-05
  2  3.20816
  3  2.01281e-06
  4  5.18644e-07
  5  5.76097e-05
  6  0.00111034
  7  3.68122
  8  58.2139
  9  1.38034e-07
  10  18.1238
  11  6.1362
  12  5.52288
  13  1.1652e-05
  14  1.024e-06
  15  32.9551
  16  0.000292768
  17  4.67907e-07
  18  30.5115
  19  0.218839
  20  0.177729
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.380e-07  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.533e-01  1.777e-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.124e+00  2.188e-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: 4.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899952/likelihoodResults_466128001_466387201_4FGL_J0152.6+0147_daily_bin875.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) = 6328.26093224
delta logL = -0.00257821138985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6328.25835401
delta logL = 2.17696651816e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9771       1.0000          .0000       10.000    
     3 'Normalizat'    1.1240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85334       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6328.258     FROM MIGRAD    STATUS=FAILED        88 CALLS      239 TOTAL
                     EDM=   .26E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10041E-03    421.92        .10505E-02** at limit **
   2  Index         1.7075        5.1795        .20000        .25627E-05
   3  Normalizat    1.1240        .13524        .26811E-03   -.39858E-04
   4  Prefactor     .85332        .10837        .24173E-03   -.30006E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6328.258     FROM SIMPLEX   STATUS=UNCHANGED    153 CALLS      392 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10041E-03    421.92        .27108E-03** at limit **
   2  Index         1.7075        5.1795        .13167E-04    .25627E-05
   3  Normalizat    1.1240        .13524        .12881E-05   -.39858E-04
   4  Prefactor     .85332        .10837        .53339E-06   -.30006E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6328.258     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      427 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9172        .21010E-03** at limit **
   2  Index         1.6859        8.4913        .80000E-02    .11369E-07
   3  Normalizat    1.1240        .21564        .10725E-04    .78445E-05
   4  Prefactor     .85332        .17283        .96691E-05    .82304E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.68591
  Normalizat = 1.124
  Prefactor  = 0.85332
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.258     FROM HESSE     STATUS=OK            23 CALLS      450 TOTAL
                     EDM=   .55E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9169        .42021E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6859        8.8309        .32000E-03   -.72458    
   3  Normalizat    1.1240        .21611        .21449E-05   -.88985    
   4  Prefactor     .85332        .17321        .19338E-05   -.97792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47764e-13
Minuit parameter uncertainties:
  1  3.37574e-07
  2  177.662
  3  0.216276
  4  0.173323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899952': 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) = 6328.25835281
delta logL = 1.22091387311e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.376e-07  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.686e+00  1.777e+02  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.533e-01  1.733e-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.124e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/899952/cmap_HighResolution_466128001_466387201_4FGL_J0152.6+0147_daily_bin875.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-03', job_status='DONE', photon_flux_upper_limit='4.81e-08', time_completed='2021-08-14 19:55:30.645829', job_id='899952', GAL2='0.85', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1628996130.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='875' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:55:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 899952: <4FGL_J0152.6+0147_daily_bin875> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin875> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:40:44 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:42:00 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:42:00 2021
Terminated at Sat Aug 14 19:55:31 2021
Results reported at Sat Aug 14 19:55:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin875 28.1614 1.7894 466128001 466387201 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 :                                   646.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            887 sec.

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

