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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin611
RA = 28.1614, Dec = 1.7894
tmin = 397699201, tmax = 397958401
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='898477', job_status='RUN', time_executed='2021-08-14 19:41:43.124957', time_epoch_executed='1628995303.12' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898477

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898477/ft1_4FGL_J0152.6+0147_daily_bin611.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898477/ft2_4FGL_J0152.6+0147_daily_bin611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898477/ft1_4FGL_J0152.6+0147_daily_bin611.fits outfile=/scratch/kocevski/898477/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin611.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=397699201.0 tmax=397958401.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.54
user 3.43
sys 0.82

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898477/ft1_filtered_4FGL_J0152.6+0147_daily_bin611.fits" evtable="EVENTS" scfile=/scratch/kocevski/898477/ft2_4FGL_J0152.6+0147_daily_bin611.fits sctable="SC_DATA" outfile=/scratch/kocevski/898477/ltcube_397699201_397958401_4FGL_J0152.6+0147_daily_bin611.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/898477/ft2_4FGL_J0152.6+0147_daily_bin611.fits
.....................!
real 14.11
user 12.85
sys 1.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898477/ft1_filtered_4FGL_J0152.6+0147_daily_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/898477/ft2_4FGL_J0152.6+0147_daily_bin611.fits sctable="SC_DATA" expcube=/scratch/kocevski/898477/ltcube_397699201_397958401_4FGL_J0152.6+0147_daily_bin611.fits outfile=/scratch/kocevski/898477/expmap_397699201_397958401_4FGL_J0152.6+0147_daily_bin611.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/898477/ltcube_397699201_397958401_4FGL_J0152.6+0147_daily_bin611.fits
.....................!
real 192.72
user 186.27
sys 6.04

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/898477/ft1_filtered_4FGL_J0152.6+0147_daily_bin611.fits scfile=/scratch/kocevski/898477/ft2_4FGL_J0152.6+0147_daily_bin611.fits outfile=/scratch/kocevski/898477/cmap_397699201_397958401_4FGL_J0152.6+0147_daily_bin611.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.12
user 0.37
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898477/ft1_filtered_4FGL_J0152.6+0147_daily_bin611.fits scfile=/scratch/kocevski/898477/ft2_4FGL_J0152.6+0147_daily_bin611.fits outfile=/scratch/kocevski/898477/cmap_HighResolution_397699201_397958401_4FGL_J0152.6+0147_daily_bin611.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.10
user 0.37
sys 0.72

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.666       1.0000         .10000E-03   10000.    
     2 'norm      '    13.847       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5616       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.5208       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    33.784       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.090       1.0000         .10000E-03   10000.    
    12 'norm      '    8.2341       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1959       1.0000         .10000E-03   10000.    
    14 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12141E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3408       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96487       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96963       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=   6122.599     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     1749 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.451        103.74       -.41731E-03    .88852E-04
   2  norm          13.848        2.9839        .62008E-05    .93789E-05
   3  Prefactor     .10000E-03    18.886        .33248E-05** at limit **
   4  Prefactor     1.5615        10.111       -.13261E-04   -.65746E-03
   5  Prefactor     .10000E-03    4.5149       -.76226E-07** at limit **
   6  Prefactor     .10000E-03    24.296       -.27266E-05** at limit **
   7  norm          2.5192        6.8040        .68293E-05   -.41498E-03
   8  Prefactor     .10000E-03    38.520       -.28185E-05** at limit **
   9  Prefactor     .10000E-03    1.4574        .43587E-07** at limit **
  10  norm          33.783        17.004       -.50985E-06    .22497E-04
  11  Prefactor     12.090        6.9034       -.88608E-06    .15970E-04
  12  norm          8.2338        4.8428        .33755E-07   -.32824E-04
  13  Prefactor     2.1958        1.7779       -.30635E-06   -.21397E-03
  14  norm          .10000E-03    .42600       -.38275E-06** at limit **
  15  Prefactor     .10000E-03    23.610        .25738E-06** at limit **
  16  Prefactor     .10000E-03    15.125       -.14164E-05** at limit **
  17  Prefactor     .10000E-03    6.1158       -.78021E-08** at limit **
  18  Prefactor     2.2141        54.948        .14894E-04   -.62151E-04
  19  Normalizat    .96490        .18420        .34400E-05    .41393E-03
  20  Prefactor     .96969        .15205        .19148E-05    .49886E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4506
  norm       = 13.8482
  Prefactor  = 0.0001
  Prefactor  = 1.5615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.5192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.7827
  Prefactor  = 12.0896
  norm       = 8.23376
  Prefactor  = 2.19584
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.21408
  Normalizat = 0.964895
  Prefactor  = 0.969688
 **********
 **   18 **HESSE 
 **********

 FCN=   6122.599     FROM HESSE     STATUS=OK           289 CALLS     2038 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.451        104.39        .88107E-04   -1.4803    
   2  norm          13.848        2.9767        .55162E-04   -1.4964    
   3  Prefactor     .10000E-03    18.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5615        10.080        .34047E-03   -1.5458    
   5  Prefactor     .10000E-03    4.5657        .16236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5192        6.7798        .25730E-03   -1.5391    
   8  Prefactor     .10000E-03    38.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4613        .92243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          33.783        17.006        .68943E-04   -1.4545    
  11  Prefactor     12.090        6.9046        .11521E-03   -1.5012    
  12  norm          8.2338        4.8497        .12695E-03   -1.5134    
  13  Prefactor     2.1958        1.7703        .90674E-04   -1.5412    
  14  norm          .10000E-03    1.8766        .97766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.1321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2141        54.816        .26798E-03   -1.5410    
  19  Normalizat    .96490        .21081        .27367E-03   -.94216    
  20  Prefactor     .96969        .17540        .22495E-03   -.93747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50249e-09
Minuit parameter uncertainties:
  1  92.6642
  2  2.97677
  3  0.0001262
  4  7.93623
  5  1.57851e-05
  6  6.87019e-05
  7  6.78183
  8  0.000117102
  9  4.50694e-06
  10  17.0083
  11  6.90503
  12  4.84991
  13  1.77033
  14  6.07504e-05
  15  0.000321651
  16  1.4747e-05
  17  2.0131e-05
  18  22.0554
  19  0.210991
  20  0.175502
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  4.507e-06  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.697e-01  1.755e-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.649e-01  2.110e-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.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898477/likelihoodResults_397699201_397958401_4FGL_J0152.6+0147_daily_bin611.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) = 6122.60228533
delta logL = -0.00322245137158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6122.59906235
delta logL = 5.24462848261e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9624       1.0000          .0000       10.000    
     3 'Normalizat'    .96487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96972       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=   6122.599     FROM MIGRAD    STATUS=FAILED        86 CALLS      231 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10183E-03    30.616        .93952E-03** at limit **
   2  Index         1.8899        7.5487        .50000        .94204E-04
   3  Normalizat    .96489        .21133E-01    .27366E-03   -.32278E-04
   4  Prefactor     .96969        .17500E-01    .22495E-03   -.29160E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6122.599     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      356 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10183E-03    30.616        .22751E-03** at limit **
   2  Index         1.8899        7.5487        .35393E-03    .94204E-04
   3  Normalizat    .96489        .21133E-01    .32933E-05   -.32278E-04
   4  Prefactor     .96969        .17500E-01    .36281E-05   -.29160E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6122.599     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      405 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.105        .18790E-02** at limit **
   2  Index         1.5058        5.3690        .50000       -.52751E-08
   3  Normalizat    .96490        .20976E-01    .10947E-04    .51679E-03
   4  Prefactor     .96969        .17373E-01    .89981E-05    .62212E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.50582
  Normalizat = 0.964896
  Prefactor  = 0.969688
 **********
 **   18 **HESSE 
 **********

 FCN=   6122.599     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      434 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    157.90        .37581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5058        7.4387        .50000       -.77377    
   3  Normalizat    .96490        .48873E-01    .21893E-05   -.94216    
   4  Prefactor     .96969        .40452E-01    .17996E-05   -.93747    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.51319e-10
Minuit parameter uncertainties:
  1  3.68441e-05
  2  670.368
  3  0.0488754
  4  0.0404536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898477': 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): 102
logL (Free Index) = 6122.59905592
delta logL = 6.95911057846e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.684e-05  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.506e+00  6.704e+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:  9.697e-01  4.045e-02  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.649e-01  4.888e-02  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/898477/cmap_HighResolution_397699201_397958401_4FGL_J0152.6+0147_daily_bin611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-03', job_status='DONE', photon_flux_upper_limit='4.28e-08', time_completed='2021-08-14 19:51:45.568283', job_id='898477', GAL2='0.97', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1628995905.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='6.96e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='611' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:51:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 898477: <4FGL_J0152.6+0147_daily_bin611> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin611 28.1614 1.7894 397699201 397958401 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 :                                   610.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             227.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            961 sec.

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

