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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin787
RA = 28.1614, Dec = 1.7894
tmin = 443318401, tmax = 443577601
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='899816', job_status='RUN', time_executed='2021-08-14 19:44:58.971229', time_epoch_executed='1628995498.97' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='787'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899816

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899816/ft1_4FGL_J0152.6+0147_daily_bin787.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899816/ft2_4FGL_J0152.6+0147_daily_bin787.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899816/ft1_4FGL_J0152.6+0147_daily_bin787.fits outfile=/scratch/kocevski/899816/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin787.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=443318401.0 tmax=443577601.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.46
user 3.66
sys 0.75

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899816/ft1_filtered_4FGL_J0152.6+0147_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/899816/ft2_4FGL_J0152.6+0147_daily_bin787.fits sctable="SC_DATA" expcube=/scratch/kocevski/899816/ltcube_443318401_443577601_4FGL_J0152.6+0147_daily_bin787.fits outfile=/scratch/kocevski/899816/expmap_443318401_443577601_4FGL_J0152.6+0147_daily_bin787.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/899816/ltcube_443318401_443577601_4FGL_J0152.6+0147_daily_bin787.fits
.....................!
real 156.09
user 150.94
sys 4.41

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/899816/ft1_filtered_4FGL_J0152.6+0147_daily_bin787.fits scfile=/scratch/kocevski/899816/ft2_4FGL_J0152.6+0147_daily_bin787.fits outfile=/scratch/kocevski/899816/cmap_443318401_443577601_4FGL_J0152.6+0147_daily_bin787.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.02
user 0.31
sys 0.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899816/ft1_filtered_4FGL_J0152.6+0147_daily_bin787.fits scfile=/scratch/kocevski/899816/ft2_4FGL_J0152.6+0147_daily_bin787.fits outfile=/scratch/kocevski/899816/cmap_HighResolution_443318401_443577601_4FGL_J0152.6+0147_daily_bin787.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.04
user 0.33
sys 0.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.5068       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.398       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6196       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.6112       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.4681       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8939       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23407       1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.832       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.4536       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .71167       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1006       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=   4643.918     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2068 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    79.181       -.62843E-05** at limit **
   2  norm          2.5067        1.5727       -.75766E-07   -.14668E-03
   3  Prefactor     .10000E-03    68.750        .18293E-05** at limit **
   4  Prefactor     12.400        8.7770        .84268E-06   -.11456E-03
   5  Prefactor     1.6187        9.1954        .93138E-05   -.47736E-03
   6  Prefactor     .10000E-03    11.422        .50827E-07** at limit **
   7  norm          7.6108        6.7945       -.33834E-05   -.98663E-04
   8  Prefactor     .10000E-03    29.443       -.10024E-06** at limit **
   9  Prefactor     .10000E-03    1.9199        .67963E-08** at limit **
  10  norm          .10000E-03    77.716        .67232E-05** at limit **
  11  Prefactor     .10000E-03    2.3844        .24532E-08** at limit **
  12  norm          7.4678        4.7139       -.11851E-07   -.48295E-04
  13  Prefactor     1.8957        2.7571       -.85360E-06   -.67712E-03
  14  norm          .10000E-03    .32192        .31309E-07** at limit **
  15  Prefactor     .21005E-03    23.393        .26236E-05** at limit **
  16  Prefactor     28.861        72.300        .44307E-04   -.10704E-04
  17  Prefactor     .10000E-03    5.9628        .13327E-07** at limit **
  18  Prefactor     9.4776        23.565       -.31782E-04   -.78413E-04
  19  Normalizat    .71160        .19574        .90038E-06   -.18054E-03
  20  Prefactor     1.1008        .16318       -.42881E-06   -.20508E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.50667
  Prefactor  = 0.0001
  Prefactor  = 12.3995
  Prefactor  = 1.6187
  Prefactor  = 0.0001
  norm       = 7.61081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.46779
  Prefactor  = 1.89567
  norm       = 0.0001
  Prefactor  = 0.000210052
  Prefactor  = 28.8613
  Prefactor  = 0.0001
  Prefactor  = 9.47756
  Normalizat = 0.711596
  Prefactor  = 1.10077
 **********
 **   18 **HESSE 
 **********

 FCN=   4643.918     FROM HESSE     STATUS=OK           297 CALLS     2365 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    79.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5067        1.5666        .65060E-04   -1.5391    
   3  Prefactor     .10000E-03    69.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.400        8.7718        .11376E-03   -1.5004    
   5  Prefactor     1.6187        8.8925        .33259E-03   -1.5454    
   6  Prefactor     .10000E-03    11.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.6108        6.7977        .14536E-03   -1.5156    
   8  Prefactor     .10000E-03    29.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9278        .92204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    80.774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3927        .10276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.4678        4.7120        .11343E-03   -1.5161    
  13  Prefactor     1.8957        2.7344        .12766E-03   -1.5433    
  14  norm          .10000E-03    .32912        .75393E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .21005E-03    23.810        .99855E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.861        72.248        .74613E-04   -1.4633    
  17  Prefactor     .10000E-03    5.9701        .16252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.4776        23.779        .13034E-03   -1.5092    
  19  Normalizat    .71160        .22388        .29300E-03   -1.0344    
  20  Prefactor     1.1008        .18766        .19846E-03   -.89442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17056e-09
Minuit parameter uncertainties:
  1  9.52005e-06
  2  1.56667
  3  0.000251701
  4  8.77273
  5  7.58947
  6  1.18954e-06
  7  6.79844
  8  4.33413e-07
  9  2.49134e-07
  10  0.000226901
  11  2.58672e-07
  12  4.7122
  13  2.73453
  14  1.94929e-06
  15  0.102419
  16  72.468
  17  1.28344e-07
  18  23.8027
  19  0.224169
  20  0.187774
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.491e-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:  1.101e+00  1.878e-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.116e-01  2.242e-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: 5.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899816/likelihoodResults_443318401_443577601_4FGL_J0152.6+0147_daily_bin787.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) = 4643.92089155
delta logL = -0.00242907043594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4643.91846211
delta logL = 3.70752786694e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9633       1.0000          .0000       10.000    
     3 'Normalizat'    .71158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1008       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=   4643.918     FROM MIGRAD    STATUS=FAILED        84 CALLS      231 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10082E-03    26.499        .93782E-03** at limit **
   2  Index         1.9210        5.2656        .50000        .72737E-04
   3  Normalizat    .71160        .18378E-01    .29300E-03    .56533E-04
   4  Prefactor     1.1008        .15288E-01    .19846E-03    .11042E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4643.918     FROM SIMPLEX   STATUS=UNCHANGED    131 CALLS      362 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10082E-03    26.499        .25413E-03** at limit **
   2  Index         1.9210        5.2656        .27401E-03    .72737E-04
   3  Normalizat    .71160        .18378E-01    .23753E-05    .56533E-04
   4  Prefactor     1.1008        .15288E-01    .85899E-06    .11042E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4643.918     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      409 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.794        .18756E-02** at limit **
   2  Index         1.5615        8.8194        .50000        .36823E-06
   3  Normalizat    .71159        .18193E-01    .11720E-04   -.16764E-02
   4  Prefactor     1.1008        .15134E-01    .39693E-04   -.25056E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.56153
  Normalizat = 0.711593
  Prefactor  = 1.10077
 **********
 **   18 **HESSE 
 **********

 FCN=   4643.918     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      438 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    137.58        .37513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5615        8.7717        .50000       -.75831    
   3  Normalizat    .71159        .41451E-01    .23440E-05   -1.0344    
   4  Prefactor     1.1008        .34481E-01    .79385E-05   -.89442    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34913e-09
Minuit parameter uncertainties:
  1  0.000242797
  2  468.307
  3  0.0414532
  4  0.0344814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899816': 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) = 4643.91845806
delta logL = 4.42125292466e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.428e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.562e+00  4.683e+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:  1.101e+00  3.448e-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:  7.116e-01  4.145e-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/899816/cmap_HighResolution_443318401_443577601_4FGL_J0152.6+0147_daily_bin787.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-03', job_status='DONE', photon_flux_upper_limit='5.21e-08', time_completed='2021-08-14 19:52:33.926506', job_id='899816', GAL2='1.10', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1628995953.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.42e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='787' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:52:33 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin787 28.1614 1.7894 443318401 443577601 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 :                                   461.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             197.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            721 sec.

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

