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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin28
RA = 28.1614, Dec = 1.7894
tmin = 246585601, tmax = 246844801
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='895550', job_status='RUN', time_executed='2021-08-14 19:31:06.902048', time_epoch_executed='1628994666.9' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='28'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895550

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895550/ft1_4FGL_J0152.6+0147_daily_bin28.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895550/ft2_4FGL_J0152.6+0147_daily_bin28.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895550/ft1_4FGL_J0152.6+0147_daily_bin28.fits outfile=/scratch/kocevski/895550/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin28.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=246585601.0 tmax=246844801.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.04
user 0.99
sys 3.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/895550/ft2_4FGL_J0152.6+0147_daily_bin28.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/895550/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin28.fits evtable="EVENTS" outfile="/scratch/kocevski/895550/ft1_filtered_4FGL_J0152.6+0147_daily_bin28.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 5.09
user 0.27
sys 3.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895550/ft1_filtered_4FGL_J0152.6+0147_daily_bin28.fits" evtable="EVENTS" scfile=/scratch/kocevski/895550/ft2_4FGL_J0152.6+0147_daily_bin28.fits sctable="SC_DATA" outfile=/scratch/kocevski/895550/ltcube_246585601_246844801_4FGL_J0152.6+0147_daily_bin28.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/895550/ft2_4FGL_J0152.6+0147_daily_bin28.fits
.....................!
real 19.48
user 12.17
sys 4.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895550/ft1_filtered_4FGL_J0152.6+0147_daily_bin28.fits evtable="EVENTS" scfile=/scratch/kocevski/895550/ft2_4FGL_J0152.6+0147_daily_bin28.fits sctable="SC_DATA" expcube=/scratch/kocevski/895550/ltcube_246585601_246844801_4FGL_J0152.6+0147_daily_bin28.fits outfile=/scratch/kocevski/895550/expmap_246585601_246844801_4FGL_J0152.6+0147_daily_bin28.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/895550/ltcube_246585601_246844801_4FGL_J0152.6+0147_daily_bin28.fits
.....................!
real 160.77
user 150.67
sys 9.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/895550/ft1_filtered_4FGL_J0152.6+0147_daily_bin28.fits scfile=/scratch/kocevski/895550/ft2_4FGL_J0152.6+0147_daily_bin28.fits outfile=/scratch/kocevski/895550/cmap_246585601_246844801_4FGL_J0152.6+0147_daily_bin28.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 4.31
user 0.30
sys 3.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895550/ft1_filtered_4FGL_J0152.6+0147_daily_bin28.fits scfile=/scratch/kocevski/895550/ft2_4FGL_J0152.6+0147_daily_bin28.fits outfile=/scratch/kocevski/895550/cmap_HighResolution_246585601_246844801_4FGL_J0152.6+0147_daily_bin28.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 4.34
user 0.29
sys 3.73

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    6.2552       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.639       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.930       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.841       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7432       1.0000         .10000E-03   10000.    
     8 'Prefactor '    115.95       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3276       1.0000         .10000E-03   10000.    
    12 'norm      '    8.3700       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1062       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5609       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.070       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5475       1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.372       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .78426       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0078       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=   5352.038     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     2003 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.231       -.47904E-06** at limit **
   2  norm          6.2549        1.9351        .29733E-07    .63355E-05
   3  Prefactor     13.642        24.107       -.28240E-06    .47784E-07
   4  Prefactor     .10000E-03    2.4597        .23509E-08** at limit **
   5  Prefactor     12.931        12.254        .20529E-06   -.16328E-05
   6  Prefactor     33.838        44.928        .41243E-06   -.21960E-06
   7  norm          3.7436        4.2094        .63604E-07   -.31708E-05
   8  Prefactor     115.94        88.714        .11383E-05   -.11547E-05
   9  Prefactor     .10000E-03    2.7030       -.24392E-07** at limit **
  10  norm          .10000E-03    15.385        .86601E-07** at limit **
  11  Prefactor     5.3282        6.5334       -.12552E-08    .12640E-04
  12  norm          8.3698        5.6161        .21988E-07    .55811E-04
  13  Prefactor     1.1087        2.4983       -.98808E-06   -.32914E-03
  14  norm          2.5609        .92163        .20649E-07    .24345E-04
  15  Prefactor     .10000E-03    8.2125       -.16928E-06** at limit **
  16  Prefactor     10.936        83.261        .30305E-04   -.15699E-04
  17  Prefactor     1.5477        10.724        .94317E-05    .18113E-04
  18  Prefactor     43.376        26.709       -.46183E-06    .47364E-05
  19  Normalizat    .78428        .18095       -.14171E-05    .20489E-04
  20  Prefactor     1.0078        .15627        .36179E-06    .61149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.25488
  Prefactor  = 13.642
  Prefactor  = 0.0001
  Prefactor  = 12.931
  Prefactor  = 33.8381
  norm       = 3.74362
  Prefactor  = 115.942
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.32819
  norm       = 8.36977
  Prefactor  = 1.10865
  norm       = 2.56089
  Prefactor  = 0.0001
  Prefactor  = 10.9357
  Prefactor  = 1.54768
  Prefactor  = 43.3762
  Normalizat = 0.784275
  Prefactor  = 1.00777
 **********
 **   18 **HESSE 
 **********

 FCN=   5352.038     FROM HESSE     STATUS=OK           299 CALLS     2302 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.2549        1.9354        .54633E-04   -1.5208    
   3  Prefactor     13.642        24.099        .10846E-03   -1.4969    
   4  Prefactor     .10000E-03    2.4754        .11202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.931        12.253        .11140E-03   -1.4989    
   6  Prefactor     33.838        44.937        .68885E-04   -1.4544    
   7  norm          3.7436        4.2085        .15489E-03   -1.5321    
   8  Prefactor     115.94        88.819        .37364E-04   -1.3550    
   9  Prefactor     .10000E-03    2.7208        .11742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    15.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.3282        6.5355        .17412E-03   -1.5246    
  12  norm          8.3698        5.6043        .13459E-03   -1.5129    
  13  Prefactor     1.1087        2.4775        .16138E-03   -1.5497    
  14  norm          2.5609        .92242        .40614E-04   -1.5388    
  15  Prefactor     .10000E-03    8.2182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.936        83.340        .12041E-03   -1.5046    
  17  Prefactor     1.5477        10.745        .17125E-02   -1.5459    
  18  Prefactor     43.376        26.706        .60874E-04   -1.4390    
  19  Normalizat    .78428        .20713        .27993E-03   -1.0065    
  20  Prefactor     1.0078        .18016        .21319E-03   -.92471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.15563e-11
Minuit parameter uncertainties:
  1  3.69917e-06
  2  1.93544
  3  24.1161
  4  1.23939e-06
  5  12.2557
  6  44.9822
  7  4.20882
  8  88.9213
  9  1.49227e-06
  10  8.10388e-06
  11  6.53642
  12  5.60462
  13  2.47772
  14  0.922422
  15  1.084e-05
  16  60.4955
  17  8.15763
  18  26.7132
  19  0.207343
  20  0.180264
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.492e-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:  1.008e+00  1.803e-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.843e-01  2.073e-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: 6.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/895550/likelihoodResults_246585601_246844801_4FGL_J0152.6+0147_daily_bin28.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) = 5352.03996619
delta logL = -0.00174845919992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5352.03821748
delta logL = 2.49427102972e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0069       1.0000          .0000       10.000    
     3 'Normalizat'    .78425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0078       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=   5352.038     FROM MIGRAD    STATUS=FAILED        87 CALLS      236 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    68.903        .12020E-02** at limit **
   2  Index         2.0325        8.1523        .50000       -.82176E-04
   3  Normalizat    .78428        .23536E-01    .27993E-03   -.22824E-04
   4  Prefactor     1.0078        .20230E-01    .21319E-03    .26664E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5350.686     FROM SIMPLEX   STATUS=PROGRESS     345 CALLS      581 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80171E-03    68.903        .17625E-04** at limit **
   2  Index         5.5436        8.1523        .40535E-02   -.82176E-04
   3  Normalizat    .78861        .23536E-01    .63675E-05   -.22824E-04
   4  Prefactor     1.0093        .20230E-01    .18950E-05    .26664E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5350.438     FROM MIGRAD    STATUS=FAILED       149 CALLS      730 TOTAL
                     EDM=   .54E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13532E-02    .29787E-01    .71157E-04** at limit **
   2  Index         5.4273        2.8288        .27232E-02   -.14671E-03
   3  Normalizat    .65186        .13985        .22394E-04   -.25241E-03
   4  Prefactor     1.0772        .11765        .17055E-04   -.31050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00135324
  Index      = 5.42733
  Normalizat = 0.651862
  Prefactor  = 1.07717
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.438     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      755 TOTAL
                     EDM=   .56E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13532E-02    .30813E-01    .35578E-04    149.23    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.4273        2.8706        .10893E-03    .85569E-01
   3  Normalizat    .65186        .17340        .44788E-05   -1.0583    
   4  Prefactor     1.0772        .14480        .34110E-05   -.90200    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000562366
Minuit parameter uncertainties:
  1  0.0124284
  2  3.05929
  3  0.173547
  4  0.144857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895550': 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): 1
logL (Free Index) = 5350.43771778
delta logL = 1.60049994994

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.353e-03  1.243e-02  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  5.427e+00  3.059e+00  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.077e+00  1.449e-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:  6.519e-01  1.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.54
Ra Dec: 28.161 1.789
Photon Index (Free Index): 5.43 +/- 3.06
Photon Flux (Free Index): 9.71e-08 +/- 6.32e-08
Energy Flux (Free Index): 1.25e-05 +/- 8.97e-06

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/895550/cmap_HighResolution_246585601_246844801_4FGL_J0152.6+0147_daily_bin28.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-03', comment='SUCCESS', energy_flux2='1.25e-05', dlogl='1.60e+00', photon_flux2='9.71e-08', job_status='DONE', time_completed='2021-08-14 19:40:11.358272', photon_index_error2='3.06', photon_index2='5.43', ts='-0.00', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='6.10e-08', energy_flux_error2='8.97e-06', EG='0.78', time_epoch_completed='1628995211.36', return_code='0', job_id='895550', GAL2='1.08', EG2='0.65', return_code2='1', photon_flux_error2='6.32e-08', ts2='3.54', photon_index='1.98' WHERE bin_id='28' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:40:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 895550: <4FGL_J0152.6+0147_daily_bin28> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin28 28.1614 1.7894 246585601 246844801 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 :                                   592.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             198.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            887 sec.

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

