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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin560
RA = 28.1614, Dec = 1.7894
tmin = 384480001, tmax = 384739201
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='899735', job_status='RUN', time_executed='2021-08-14 19:42:37.326428', time_epoch_executed='1628995357.33' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899735

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899735/ft1_4FGL_J0152.6+0147_daily_bin560.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899735/ft2_4FGL_J0152.6+0147_daily_bin560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899735/ft1_4FGL_J0152.6+0147_daily_bin560.fits outfile=/scratch/kocevski/899735/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin560.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=384480001.0 tmax=384739201.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 3.94
user 3.12
sys 0.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899735/ft2_4FGL_J0152.6+0147_daily_bin560.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/899735/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin560.fits evtable="EVENTS" outfile="/scratch/kocevski/899735/ft1_filtered_4FGL_J0152.6+0147_daily_bin560.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.00
user 0.29
sys 0.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899735/ft1_filtered_4FGL_J0152.6+0147_daily_bin560.fits" evtable="EVENTS" scfile=/scratch/kocevski/899735/ft2_4FGL_J0152.6+0147_daily_bin560.fits sctable="SC_DATA" outfile=/scratch/kocevski/899735/ltcube_384480001_384739201_4FGL_J0152.6+0147_daily_bin560.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/899735/ft2_4FGL_J0152.6+0147_daily_bin560.fits
.....................!
real 12.24
user 11.32
sys 0.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899735/ft1_filtered_4FGL_J0152.6+0147_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/899735/ft2_4FGL_J0152.6+0147_daily_bin560.fits sctable="SC_DATA" expcube=/scratch/kocevski/899735/ltcube_384480001_384739201_4FGL_J0152.6+0147_daily_bin560.fits outfile=/scratch/kocevski/899735/expmap_384480001_384739201_4FGL_J0152.6+0147_daily_bin560.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/899735/ltcube_384480001_384739201_4FGL_J0152.6+0147_daily_bin560.fits
.....................!
real 157.51
user 152.42
sys 4.73

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/899735/ft1_filtered_4FGL_J0152.6+0147_daily_bin560.fits scfile=/scratch/kocevski/899735/ft2_4FGL_J0152.6+0147_daily_bin560.fits outfile=/scratch/kocevski/899735/cmap_384480001_384739201_4FGL_J0152.6+0147_daily_bin560.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=28.1614 yref=1.7894 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.98
user 0.32
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899735/ft1_filtered_4FGL_J0152.6+0147_daily_bin560.fits scfile=/scratch/kocevski/899735/ft2_4FGL_J0152.6+0147_daily_bin560.fits outfile=/scratch/kocevski/899735/cmap_HighResolution_384480001_384739201_4FGL_J0152.6+0147_daily_bin560.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=28.1614 yref=1.7894 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.99
user 0.34
sys 0.64

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11460E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.7586       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4834       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19574E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.732       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.437       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17487E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    23.204       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .51397E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4387       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.235       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .49104       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3946       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=   5151.681     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2071 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    435.90       -.21000E-04** at limit **
   2  norm          7.7586        2.3017       -.20842E-06    .14031E-03
   3  Prefactor     .10000E-03    33.312       -.10685E-05** at limit **
   4  Prefactor     8.4824        7.9710       -.21614E-06   -.28907E-04
   5  Prefactor     .10022E-03    6.4450        .21700E-05** at limit **
   6  Prefactor     .10000E-03    14.366        .58092E-06** at limit **
   7  norm          12.730        8.5670       -.20374E-06   -.52516E-04
   8  Prefactor     31.492        108.60        .57879E-05    .30317E-04
   9  Prefactor     .10000E-03    5.0892        .54063E-07** at limit **
  10  norm          .10000E-03    9.4513        .15085E-07** at limit **
  11  Prefactor     .10001E-03    4.9503       -.16037E-05** at limit **
  12  norm          23.212        7.2769        .11985E-05    .17381E-02
  13  Prefactor     .10006E-03    1.9304       -.18894E-05** at limit **
  14  norm          1.4387        .96162       -.41220E-08    .52244E-03
  15  Prefactor     10.282        27.101        .23470E-05    .20657E-03
  16  Prefactor     .10000E-03    35.453       -.92086E-06** at limit **
  17  Prefactor     .10000E-03    16.451       -.14412E-06** at limit **
  18  Prefactor     .10000E-03    11.829       -.12941E-05** at limit **
  19  Normalizat    .49110        .21437       -.65309E-06    .43255E-03
  20  Prefactor     1.3946        .18133        .19083E-05    .77994E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010003
  norm       = 7.75858
  Prefactor  = 0.0001
  Prefactor  = 8.48241
  Prefactor  = 0.000100216
  Prefactor  = 0.0001
  norm       = 12.7305
  Prefactor  = 31.4922
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100008
  norm       = 23.212
  Prefactor  = 0.000100062
  norm       = 1.43867
  Prefactor  = 10.282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.491096
  Prefactor  = 1.3946
 **********
 **   18 **HESSE 
 **********

 FCN=   5151.681     FROM HESSE     STATUS=OK           289 CALLS     2360 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    438.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.7586        2.2923        .56738E-04   -1.5151    
   3  Prefactor     .10000E-03    33.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4824        7.9669        .13763E-03   -1.5125    
   5  Prefactor     .10022E-03    28.128        .33660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.730        8.5653        .11226E-03   -1.4994    
   8  Prefactor     31.492        108.24        .71463E-04   -1.4585    
   9  Prefactor     .10000E-03    5.2063        .15801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.4702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    15.574        .30237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          23.212        7.3829        .83155E-04   -1.4744    
  13  Prefactor     .10006E-03    10.787        .16896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4387        .94839        .54817E-04   -1.5468    
  15  Prefactor     10.282        27.301        .12524E-03   -1.5067    
  16  Prefactor     .10000E-03    35.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .49110        .23714        .37035E-03   -1.1283    
  20  Prefactor     1.3946        .20292        .19813E-03   -.80536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48475e-08
Minuit parameter uncertainties:
  1  0.00724892
  2  2.29236
  3  0.000136835
  4  7.96793
  5  0.00493431
  6  3.92386e-05
  7  8.56609
  8  108.926
  9  1.60404e-05
  10  7.83302e-06
  11  0.000724693
  12  7.38316
  13  0.00163909
  14  0.948398
  15  27.3345
  16  5.55171e-05
  17  3.77193e-05
  18  4.44761e-05
  19  0.237629
  20  0.203038
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.604e-05  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.395e+00  2.030e-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:  4.911e-01  2.376e-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: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899735/likelihoodResults_384480001_384739201_4FGL_J0152.6+0147_daily_bin560.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) = 5151.68155356
delta logL = -0.000914851135349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5151.68064024
delta logL = -1.52583197632e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11313E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0207       1.0000          .0000       10.000    
     3 'Normalizat'    .49081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3949       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=   5151.650     FROM MIGRAD    STATUS=FAILED       156 CALLS      313 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10633        29.480        .33359E-02   -.30435E-02
   2  Index         3.1729        3.8512        .20000        .33176E-04
   3  Normalizat    .47605        .52278E-01    .37035E-03   -.28981E-03
   4  Prefactor     1.4009        .40898E-01    .19813E-03   -.63686E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5151.650     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      396 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10633        29.480        .16568E-03   -.30435E-02
   2  Index         3.1729        3.8512        .33748E-02    .33176E-04
   3  Normalizat    .47605        .52278E-01    .21929E-03   -.28981E-03
   4  Prefactor     1.4009        .40898E-01    .35905E-04   -.63686E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5151.650     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      430 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10632        5.6206        .91228E-04    .70384E-03
   2  Index         3.1729        6.5567        .81697E-02   -.23209E-04
   3  Normalizat    .47605        .23846        .14814E-04   -.21442E-03
   4  Prefactor     1.4009        .20256        .39626E-04   -.45548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.106322
  Index      = 3.17288
  Normalizat = 0.476049
  Prefactor  = 1.40087
 **********
 **   18 **HESSE 
 **********

 FCN=   5151.650     FROM HESSE     STATUS=OK            25 CALLS      455 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10632        1.6368        .36491E-05   -1.5773    
   2  Index         3.1729        2.4753        .32679E-03   -.37409    
   3  Normalizat    .47605        .23878        .29628E-05   -1.1354    
   4  Prefactor     1.4009        .20248        .79253E-05   -.80355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15945e-10
Minuit parameter uncertainties:
  1  0.833961
  2  2.60995
  3  0.239297
  4  0.202596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899735': 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) = 5151.64994181
delta logL = 0.0306969035746

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.063e-01  8.340e-01  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  3.173e+00  2.610e+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.401e+00  2.026e-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:  4.760e-01  2.393e-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/899735/cmap_HighResolution_384480001_384739201_4FGL_J0152.6+0147_daily_bin560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-08-14 19:50:36.782150', job_id='899735', GAL2='1.40', fit_tolerance='1e-08', EG2='0.48', EG='0.49', time_epoch_completed='1628995836.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='3.07e-02', ts2='0.07', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='560' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:50:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 899735: <4FGL_J0152.6+0147_daily_bin560> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin560 28.1614 1.7894 384480001 384739201 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 :                                   488.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            611 sec.

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

