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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin743
RA = 28.1614, Dec = 1.7894
tmin = 431913601, tmax = 432172801
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='899747', job_status='RUN', time_executed='2021-08-14 19:43:41.552571', time_epoch_executed='1628995421.55' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899747

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899747/ft1_4FGL_J0152.6+0147_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899747/ft2_4FGL_J0152.6+0147_daily_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899747/ft1_4FGL_J0152.6+0147_daily_bin743.fits outfile=/scratch/kocevski/899747/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin743.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=431913601.0 tmax=432172801.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 8.48
user 4.99
sys 3.44

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899747/ft1_filtered_4FGL_J0152.6+0147_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/899747/ft2_4FGL_J0152.6+0147_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/899747/ltcube_431913601_432172801_4FGL_J0152.6+0147_daily_bin743.fits outfile=/scratch/kocevski/899747/expmap_431913601_432172801_4FGL_J0152.6+0147_daily_bin743.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/899747/ltcube_431913601_432172801_4FGL_J0152.6+0147_daily_bin743.fits
.....................!
real 196.15
user 185.95
sys 9.47

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/899747/ft1_filtered_4FGL_J0152.6+0147_daily_bin743.fits scfile=/scratch/kocevski/899747/ft2_4FGL_J0152.6+0147_daily_bin743.fits outfile=/scratch/kocevski/899747/cmap_431913601_432172801_4FGL_J0152.6+0147_daily_bin743.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 3.69
user 0.39
sys 3.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899747/ft1_filtered_4FGL_J0152.6+0147_daily_bin743.fits scfile=/scratch/kocevski/899747/ft2_4FGL_J0152.6+0147_daily_bin743.fits outfile=/scratch/kocevski/899747/cmap_HighResolution_431913601_432172801_4FGL_J0152.6+0147_daily_bin743.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 3.72
user 0.40
sys 3.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.1509       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12609E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.386       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7309       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9521       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0410       1.0000         .10000E-03   10000.    
    12 'norm      '    4.8389       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.7882       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11237E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97216       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0838       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=   3930.595     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1753 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.305       -.61951E-07** at limit **
   2  norm          4.1508        2.3438        .40239E-08    .10385E-04
   3  Prefactor     .10004E-03    428.42       -.11319E-04** at limit **
   4  Prefactor     .10000E-03    3.2643       -.31647E-07** at limit **
   5  Prefactor     .10000E-03    8.2368        .15312E-07** at limit **
   6  Prefactor     .10000E-03    26.658        .11663E-06** at limit **
   7  norm          11.387        10.420        .25837E-06   -.98962E-05
   8  Prefactor     .10000E-03    62.049        .79643E-06** at limit **
   9  Prefactor     9.7327        9.5695        .38597E-06   -.50499E-04
  10  norm          3.9540        37.092        .12974E-04   -.21530E-04
  11  Prefactor     3.0446        5.9037        .97966E-07   -.68621E-04
  12  norm          4.8379        6.5902        .46481E-06   -.21296E-04
  13  Prefactor     .10000E-03    .90260        .20676E-07** at limit **
  14  norm          .10000E-03    .67430        .24936E-06** at limit **
  15  Prefactor     .10000E-03    35.021       -.91910E-07** at limit **
  16  Prefactor     9.7878        78.166        .31773E-05   -.39297E-05
  17  Prefactor     .10000E-03    4.9154        .28784E-07** at limit **
  18  Prefactor     .10000E-03    79.423       -.36584E-06** at limit **
  19  Normalizat    .97230        .23312       -.53496E-06   -.10995E-03
  20  Prefactor     1.0838        .19583       -.22939E-05   -.43763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.15075
  Prefactor  = 0.00010004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3874
  Prefactor  = 0.000100001
  Prefactor  = 9.73267
  norm       = 3.95395
  Prefactor  = 3.04459
  norm       = 4.83788
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.78784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.972296
  Prefactor  = 1.08376
 **********
 **   18 **HESSE 
 **********

 FCN=   3930.595     FROM HESSE     STATUS=OK           289 CALLS     2042 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1508        2.3429        .69763E-04   -1.5300    
   3  Prefactor     .10004E-03    439.75        .20602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2682        .11061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.2717        .17574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.387        10.419        .11873E-03   -1.5033    
   8  Prefactor     .10000E-03    62.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.7327        9.5928        .12846E-03   -1.5084    
  10  norm          3.9540        37.056        .10145E-02   -1.5310    
  11  Prefactor     3.0446        5.8791        .20374E-03   -1.5359    
  12  norm          4.8379        6.5992        .17715E-03   -1.5268    
  13  Prefactor     .10000E-03    .90576        .58151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1660        .99631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.7878        78.342        .64042E-03   -1.5082    
  17  Prefactor     .10000E-03    4.9197        .13576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    80.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .97230        .26708        .27639E-03   -.93964    
  20  Prefactor     1.0838        .22223        .21379E-03   -.89987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02452e-10
Minuit parameter uncertainties:
  1  4.06636e-05
  2  2.34294
  3  0.00841919
  4  4.69461e-06
  5  1.35381e-05
  6  5.08348e-05
  7  10.4203
  8  0.000597368
  9  9.59431
  10  24.2285
  11  5.88018
  12  6.60018
  13  1.15452e-06
  14  1.06462e-05
  15  2.54745e-05
  16  55.4819
  17  3.06501e-06
  18  0.000117293
  19  0.267443
  20  0.22242
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  9.733e+00  9.594e+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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  1.084e+00  2.224e-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.723e-01  2.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 5.44e-08 +/- 5.36e-08
Energy Flux (Fixed Index): 3.92e-05 +/- 3.86e-05

TS (Fixed Index): 1.31
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 1.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899747/likelihoodResults_431913601_432172801_4FGL_J0152.6+0147_daily_bin743.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) = 3927.5577036
delta logL = 3.03725499908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3927.55211242
delta logL = 3.04284617909

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83064       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5087       1.0000          .0000       10.000    
     3 'Normalizat'    .76587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1826       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.

 FCN=   3927.552     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      281 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83114        5.3384        .53443E-02    .46255E-03
   2  Index         3.5085        1.7587        .45413E-01    .16744E-03
   3  Normalizat    .76614        .97714E-01    .69241E-01    .63175E-05
   4  Prefactor     1.1825        .75800E-01    .35057E-01   -.12615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.831137
  Index      = 3.50849
  Normalizat = 0.766136
  Prefactor  = 1.18245
 **********
 **   18 **HESSE 
 **********

 FCN=   3927.552     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      312 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83114        7.3664        .23791E-04   -1.5526    
   2  Index         3.5085        2.1590        .19373E-02   -.30291    
   3  Normalizat    .76614        .28556        .30639E-03   -1.0134    
   4  Prefactor     1.1825        .22592        .20526E-03   -.86873    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44796e-10
Minuit parameter uncertainties:
  1  4.94923
  2  2.2404
  3  0.286124
  4  0.226104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899747': 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) = 3927.55211152
delta logL = 3.04284707591

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  8.311e-01  4.949e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  3.508e+00  2.240e+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.182e+00  2.261e-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.661e-01  2.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.12
Ra Dec: 28.161 1.789
Photon Index (Free Index): 3.51 +/- 2.24
Photon Flux (Free Index): 2.34e-07 +/- 1.26e-07
Energy Flux (Free Index): 3.88e-05 +/- 2.10e-05

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/899747/cmap_HighResolution_431913601_432172801_4FGL_J0152.6+0147_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='5.44e-08', energy_flux2='3.88e-05', photon_flux_error='5.36e-08', dlogl='3.04e+00', energy_flux='3.92e-05', photon_flux2='2.34e-07', job_status='DONE', time_completed='2021-08-14 19:52:58.538289', photon_index_error2='2.24', photon_index2='3.51', ts='1.31', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='2.10e-05', EG='0.97', time_epoch_completed='1628995978.54', return_code='0', job_id='899747', GAL2='1.18', EG2='0.77', return_code2='102', energy_flux_error='3.86e-05', photon_flux_error2='1.26e-07', ts2='8.12', photon_index='1.98' WHERE bin_id='743' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:52:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 899747: <4FGL_J0152.6+0147_daily_bin743> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin743 28.1614 1.7894 431913601 432172801 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 :                                   604.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             230.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            753 sec.

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

