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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin586
RA = 28.1614, Dec = 1.7894
tmin = 391219201, tmax = 391478401
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='898440', job_status='RUN', time_executed='2021-08-14 19:40:41.308257', time_epoch_executed='1628995241.31' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898440

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898440/ft1_4FGL_J0152.6+0147_daily_bin586.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898440/ft2_4FGL_J0152.6+0147_daily_bin586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898440/ft1_4FGL_J0152.6+0147_daily_bin586.fits outfile=/scratch/kocevski/898440/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin586.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=391219201.0 tmax=391478401.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.64
user 3.11
sys 1.49

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898440/ft1_filtered_4FGL_J0152.6+0147_daily_bin586.fits" evtable="EVENTS" scfile=/scratch/kocevski/898440/ft2_4FGL_J0152.6+0147_daily_bin586.fits sctable="SC_DATA" outfile=/scratch/kocevski/898440/ltcube_391219201_391478401_4FGL_J0152.6+0147_daily_bin586.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/898440/ft2_4FGL_J0152.6+0147_daily_bin586.fits
.....................!
real 14.81
user 13.07
sys 1.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898440/ft1_filtered_4FGL_J0152.6+0147_daily_bin586.fits evtable="EVENTS" scfile=/scratch/kocevski/898440/ft2_4FGL_J0152.6+0147_daily_bin586.fits sctable="SC_DATA" expcube=/scratch/kocevski/898440/ltcube_391219201_391478401_4FGL_J0152.6+0147_daily_bin586.fits outfile=/scratch/kocevski/898440/expmap_391219201_391478401_4FGL_J0152.6+0147_daily_bin586.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/898440/ltcube_391219201_391478401_4FGL_J0152.6+0147_daily_bin586.fits
.....................!
real 193.50
user 185.98
sys 7.01

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/898440/ft1_filtered_4FGL_J0152.6+0147_daily_bin586.fits scfile=/scratch/kocevski/898440/ft2_4FGL_J0152.6+0147_daily_bin586.fits outfile=/scratch/kocevski/898440/cmap_391219201_391478401_4FGL_J0152.6+0147_daily_bin586.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.76
user 0.38
sys 1.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898440/ft1_filtered_4FGL_J0152.6+0147_daily_bin586.fits scfile=/scratch/kocevski/898440/ft2_4FGL_J0152.6+0147_daily_bin586.fits outfile=/scratch/kocevski/898440/cmap_HighResolution_391219201_391478401_4FGL_J0152.6+0147_daily_bin586.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.79
user 0.40
sys 1.37

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55392E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.6362       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6336       1.0000         .10000E-03   10000.    
     8 'Prefactor '    88.509       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.221       1.0000         .10000E-03   10000.    
    12 'norm      '    4.3391       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7589       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7484       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11194E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.663       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97329       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89538       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=   6196.525     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     1993 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    129.89        .10246E-04** at limit **
   2  norm          6.6323        2.0321       -.40530E-07   -.37048E-03
   3  Prefactor     .10000E-03    13.177       -.14671E-06** at limit **
   4  Prefactor     .10000E-03    4.6231       -.13344E-07** at limit **
   5  Prefactor     .10000E-03    3.5154        .66236E-08** at limit **
   6  Prefactor     .10000E-03    27.282        .19137E-05** at limit **
   7  norm          2.6338        4.3755        .21025E-06    .79575E-05
   8  Prefactor     88.518        84.322       -.80889E-06   -.19662E-05
   9  Prefactor     .10000E-03    1.4171       -.48140E-08** at limit **
  10  norm          .10000E-03    7.4143        .64254E-07** at limit **
  11  Prefactor     10.221        7.2329       -.14058E-06   -.53575E-05
  12  norm          4.3399        6.3815        .22403E-05   -.31672E-06
  13  Prefactor     8.7579        3.4524       -.17682E-06   -.40837E-04
  14  norm          1.7485        .83492        .52459E-07   -.47816E-04
  15  Prefactor     .10000E-03    49.455        .65643E-06** at limit **
  16  Prefactor     .10000E-03    36.468       -.38377E-05** at limit **
  17  Prefactor     .10000E-03    6.4270       -.47470E-07** at limit **
  18  Prefactor     18.651        26.624        .12224E-05   -.76136E-05
  19  Normalizat    .97321        .17351        .19697E-06   -.71516E-04
  20  Prefactor     .89538        .14442       -.75808E-06   -.25409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.63227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.63383
  Prefactor  = 88.5183
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.2213
  norm       = 4.33988
  Prefactor  = 8.75795
  norm       = 1.74848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6512
  Normalizat = 0.973212
  Prefactor  = 0.895383
 **********
 **   18 **HESSE 
 **********

 FCN=   6196.525     FROM HESSE     STATUS=OK           289 CALLS     2282 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    130.44        .21106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.6323        2.0345        .59849E-04   -1.5193    
   3  Prefactor     .10000E-03    13.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6683        .16520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.5311        .14413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6338        4.3582        .20590E-03   -1.5383    
   8  Prefactor     88.518        84.443        .42707E-04   -1.3823    
   9  Prefactor     .10000E-03    1.4244        .91504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.4383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.221        7.2414        .12533E-03   -1.5068    
  12  norm          4.3399        6.3899        .96687E-03   -1.5291    
  13  Prefactor     8.7579        3.4510        .85623E-04   -1.5116    
  14  norm          1.7485        .83162        .23843E-03   -1.5444    
  15  Prefactor     .10000E-03    49.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.5080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.651        26.603        .92711E-04   -1.4844    
  19  Normalizat    .97321        .19664        .26361E-03   -.93933    
  20  Prefactor     .89538        .16346        .22494E-03   -.96303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53068e-10
Minuit parameter uncertainties:
  1  0.000155638
  2  2.03447
  3  2.40644e-07
  4  1.61929e-06
  5  1.18233e-06
  6  9.36547e-06
  7  4.35871
  8  84.5576
  9  1.29179e-07
  10  7.61466e-07
  11  7.24203
  12  6.39091
  13  3.45104
  14  0.831623
  15  0.000192371
  16  3.31519e-05
  17  8.41224e-07
  18  26.6201
  19  0.196789
  20  0.163553
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.292e-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.954e-01  1.636e-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.732e-01  1.968e-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: 3.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898440/likelihoodResults_391219201_391478401_4FGL_J0152.6+0147_daily_bin586.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) = 6196.52786823
delta logL = -0.00330038499942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6196.52456711
delta logL = 7.35293724574e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9598       1.0000          .0000       10.000    
     3 'Normalizat'    .97320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89541       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=   6196.525     FROM MIGRAD    STATUS=FAILED        86 CALLS      233 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1.4997        .93649E-03** at limit **
   2  Index         1.9356        5.9573        .50000        .12269E-03
   3  Normalizat    .97321        .19024        .26361E-03   -.41315E-04
   4  Prefactor     .89538        .15725        .22493E-03   -.41899E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6196.525     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      356 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    1.4997        .12999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9356        5.9573        .20095E-02   -.65970    
   3  Normalizat    .97321        .19024        .10184E-03   -.93933    
   4  Prefactor     .89538        .15725        .61016E-04   -.96303    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6196.525     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      436 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    225.84        .37460E-03** at limit **
   2  Index         1.4913        5.4139        .50000        .28126E-07
   3  Normalizat    .97322        .59791E-01    .21089E-05    .57142E-03
   4  Prefactor     .89538        .49297E-01    .17995E-05    .55596E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.49125
  Normalizat = 0.973215
  Prefactor  = 0.895382
 **********
 **   18 **HESSE 
 **********

 FCN=   6196.525     FROM HESSE     STATUS=OK            29 CALLS      465 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0027        .74920E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4913        5.5321        .50000       -.77785    
   3  Normalizat    .97322        .18496        .42178E-06   -.93933    
   4  Prefactor     .89538        .15283        .35990E-06   -.96303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83003e-10
Minuit parameter uncertainties:
  1  2.20497e-06
  2  113.249
  3  0.185083
  4  0.152905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898440': 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) = 6196.52455958
delta logL = 8.2604947238e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.205e-06  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.491e+00  1.132e+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.954e-01  1.529e-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.732e-01  1.851e-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/898440/cmap_HighResolution_391219201_391478401_4FGL_J0152.6+0147_daily_bin586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-03', job_status='DONE', photon_flux_upper_limit='3.92e-08', time_completed='2021-08-14 19:51:10.515652', job_id='898440', GAL2='0.90', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1628995870.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='8.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='586' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:51:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 898440: <4FGL_J0152.6+0147_daily_bin586> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin586 28.1614 1.7894 391219201 391478401 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 :                                   648.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             239.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            928 sec.

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

