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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin738
RA = 28.1614, Dec = 1.7894
tmin = 430617601, tmax = 430876801
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='899739', job_status='RUN', time_executed='2021-08-14 19:45:15.302669', time_epoch_executed='1628995515.3' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899739

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899739/ft1_4FGL_J0152.6+0147_daily_bin738.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899739/ft2_4FGL_J0152.6+0147_daily_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899739/ft1_4FGL_J0152.6+0147_daily_bin738.fits outfile=/scratch/kocevski/899739/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin738.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=430617601.0 tmax=430876801.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 9.57
user 5.07
sys 4.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899739/ft2_4FGL_J0152.6+0147_daily_bin738.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/899739/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin738.fits evtable="EVENTS" outfile="/scratch/kocevski/899739/ft1_filtered_4FGL_J0152.6+0147_daily_bin738.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 4.55
user 0.35
sys 4.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899739/ft1_filtered_4FGL_J0152.6+0147_daily_bin738.fits" evtable="EVENTS" scfile=/scratch/kocevski/899739/ft2_4FGL_J0152.6+0147_daily_bin738.fits sctable="SC_DATA" outfile=/scratch/kocevski/899739/ltcube_430617601_430876801_4FGL_J0152.6+0147_daily_bin738.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/899739/ft2_4FGL_J0152.6+0147_daily_bin738.fits
.....................!
real 17.91
user 12.97
sys 4.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899739/ft1_filtered_4FGL_J0152.6+0147_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/899739/ft2_4FGL_J0152.6+0147_daily_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/899739/ltcube_430617601_430876801_4FGL_J0152.6+0147_daily_bin738.fits outfile=/scratch/kocevski/899739/expmap_430617601_430876801_4FGL_J0152.6+0147_daily_bin738.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/899739/ltcube_430617601_430876801_4FGL_J0152.6+0147_daily_bin738.fits
.....................!
real 197.40
user 187.52
sys 9.42

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

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

This is gtbin version HEAD
real 4.46
user 0.37
sys 4.06

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

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

This is gtbin version HEAD
real 4.45
user 0.38
sys 4.05

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    308.70       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4573       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3739       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .31169       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8911       1.0000         .10000E-03   10000.    
    10 'norm      '    .14788E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.333       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10912E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.146       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .49506       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2496       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.

 FCN=   2519.760     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     2349 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     308.65        192.06        .11563E-03   -.54951E-04
   2  norm          1.4601        3.0352        .57147E-03   -.19911E-03
   3  Prefactor     .10000E-03    37.032        .18142E-02** at limit **
   4  Prefactor     6.3671        12.244        .15898E-03   -.11366E-03
   5  Prefactor     .10000E-03    20.437        .18142E-02** at limit **
   6  Prefactor     .10000E-03    44.512        .18142E-02** at limit **
   7  norm          .29579        41.100        .31758E-02   -.37554E-03
   8  Prefactor     .10000E-03    60.152        .18142E-02** at limit **
   9  Prefactor     5.8911        5.6563        .11312E-03   -.10190E-03
  10  norm          .10000E-03    342.19        .47012E-02** at limit **
  11  Prefactor     .10000E-03    6.5195        .12479E-02** at limit **
  12  norm          18.332        8.3301        .93540E-04    .66980E-04
  13  Prefactor     .10000E-03    1.4359        .58397E-03** at limit **
  14  norm          .10000E-03    2.5740        .95921E-03** at limit **
  15  Prefactor     .10000E-03    22.440        .18142E-02** at limit **
  16  Prefactor     14.134        143.20        .10649E-03    .18682E-05
  17  Prefactor     .10000E-03    7.6227        .13526E-02** at limit **
  18  Prefactor     .10000E-03    20.096        .18142E-02** at limit **
  19  Normalizat    .49513        .28824        .32982E-03    .17888E-03
  20  Prefactor     1.2495        .25035        .18621E-03    .17196E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 308.648
  norm       = 1.46006
  Prefactor  = 0.0001
  Prefactor  = 6.36712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.295787
  Prefactor  = 0.000100001
  Prefactor  = 5.8911
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 18.3322
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1345
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.495127
  Prefactor  = 1.24949
 **********
 **   18 **HESSE 
 **********

 FCN=   2519.760     FROM HESSE     STATUS=OK           275 CALLS     2624 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     308.65        191.94        .23126E-04   -1.2176    
   2  norm          1.4601        3.0317        .22859E-04   -1.5466    
   3  Prefactor     .10000E-03    37.032        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.3671        12.239        .63593E-05   -1.5203    
   5  Prefactor     .10000E-03    20.446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    44.512        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .29579        41.570        .12703E-03   -1.5599    
   8  Prefactor     .10000E-03    60.152        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8911        5.6563        .45250E-05   -1.5222    
  10  norm          .10000E-03    358.47        .18805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.5202        .24957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.332        8.3298        .18708E-04   -1.4851    
  13  Prefactor     .10000E-03    1.4360        .11679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.5913        .19184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.444        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.134        143.12        .42597E-05   -1.4956    
  17  Prefactor     .10000E-03    7.6230        .27053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.101        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .49513        .28837        .13193E-04   -1.1264    
  20  Prefactor     1.2495        .25023        .37243E-04   -.84822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50229e-09
Minuit parameter uncertainties:
  1  192.34
  2  3.03206
  3  0.000237351
  4  12.2439
  5  0.000154422
  6  8.66671e-06
  7  7.0169
  8  0.000398166
  9  5.65679
  10  0.00232559
  11  5.17759e-05
  12  8.33035
  13  1.09605e-05
  14  4.47343e-05
  15  4.5282e-05
  16  90.2352
  17  2.4928e-05
  18  9.49214e-05
  19  0.289244
  20  0.250474
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  5.891e+00  5.657e+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.249e+00  2.505e-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.951e-01  2.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.86
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 3.30e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 2.28e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2518.05346416
delta logL = 1.7062656135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2517.99703434
delta logL = 1.76269543792

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6814       1.0000         .10000E-03   10000.    
     2 'Index     '    .69909       1.0000          .0000       10.000    
     3 'Normalizat'    .52894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2352       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=   2517.997     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6849        4.1360        .52626E-02   -.78767E-04
   2  Index         .69852        .49599        .18961       -.12895E-04
   3  Normalizat    .52879        .25351        .72106E-01    .14061E-04
   4  Prefactor     1.2351        .22079        .33848E-01   -.43760E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.68485
  Index      = 0.698523
  Normalizat = 0.528789
  Prefactor  = 1.23508
 **********
 **   18 **HESSE 
 **********

 FCN=   2517.997     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .43E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6849        5.8264        .93935E-04   -1.5324    
   2  Index         .69852        .67989        .85351E-03   -1.0358    
   3  Normalizat    .52879        .28116        .31924E-03   -1.1110    
   4  Prefactor     1.2351        .24555        .18705E-03   -.85258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34843e-13
Minuit parameter uncertainties:
  1  5.8273
  2  0.688221
  3  0.281918
  4  0.245774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899739': 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) = 2517.99703081
delta logL = 1.7626989702

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.685e+00  5.827e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  6.985e-01  6.882e-01  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.235e+00  2.458e-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:  5.288e-01  2.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.34
Ra Dec: 28.161 1.789
Photon Index (Free Index): 0.70 +/- 0.69
Photon Flux (Free Index): 7.92e-09 +/- 8.20e-09
Energy Flux (Free Index): 2.10e-04 +/- 2.70e-04

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/899739/cmap_HighResolution_430617601_430876801_4FGL_J0152.6+0147_daily_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.30e-08', energy_flux2='2.10e-04', photon_flux_error='3.16e-08', dlogl='1.76e+00', energy_flux='2.37e-05', photon_flux2='7.92e-09', job_status='DONE', time_completed='2021-08-14 19:53:27.504847', photon_index_error2='0.69', photon_index2='0.70', ts='8.86', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='2.70e-04', EG='0.50', time_epoch_completed='1628996007.5', return_code='0', job_id='899739', GAL2='1.24', EG2='0.53', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='8.20e-09', ts2='12.34', photon_index='1.98' WHERE bin_id='738' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:53:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 899739: <4FGL_J0152.6+0147_daily_bin738> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin738> 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) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:40:34 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:34 2021
Terminated at Sat Aug 14 19:53:29 2021
Results reported at Sat Aug 14 19:53:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin738 28.1614 1.7894 430617601 430876801 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 :                                   552.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             248.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            782 sec.

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

