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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin563
RA = 28.1614, Dec = 1.7894
tmin = 385257601, tmax = 385516801
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='901163', job_status='RUN', time_executed='2021-08-14 19:48:43.295988', time_epoch_executed='1628995723.3' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901163

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901163/ft1_4FGL_J0152.6+0147_daily_bin563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901163/ft2_4FGL_J0152.6+0147_daily_bin563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901163/ft1_4FGL_J0152.6+0147_daily_bin563.fits outfile=/scratch/kocevski/901163/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin563.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=385257601.0 tmax=385516801.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 5.70
user 3.30
sys 2.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901163/ft1_filtered_4FGL_J0152.6+0147_daily_bin563.fits" evtable="EVENTS" scfile=/scratch/kocevski/901163/ft2_4FGL_J0152.6+0147_daily_bin563.fits sctable="SC_DATA" outfile=/scratch/kocevski/901163/ltcube_385257601_385516801_4FGL_J0152.6+0147_daily_bin563.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/901163/ft2_4FGL_J0152.6+0147_daily_bin563.fits
.....................!
real 14.89
user 12.08
sys 2.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901163/ft1_filtered_4FGL_J0152.6+0147_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/901163/ft2_4FGL_J0152.6+0147_daily_bin563.fits sctable="SC_DATA" expcube=/scratch/kocevski/901163/ltcube_385257601_385516801_4FGL_J0152.6+0147_daily_bin563.fits outfile=/scratch/kocevski/901163/expmap_385257601_385516801_4FGL_J0152.6+0147_daily_bin563.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/901163/ltcube_385257601_385516801_4FGL_J0152.6+0147_daily_bin563.fits
.....................!
real 192.79
user 185.29
sys 7.08

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/901163/ft1_filtered_4FGL_J0152.6+0147_daily_bin563.fits scfile=/scratch/kocevski/901163/ft2_4FGL_J0152.6+0147_daily_bin563.fits outfile=/scratch/kocevski/901163/cmap_385257601_385516801_4FGL_J0152.6+0147_daily_bin563.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 2.73
user 0.36
sys 2.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901163/ft1_filtered_4FGL_J0152.6+0147_daily_bin563.fits scfile=/scratch/kocevski/901163/ft2_4FGL_J0152.6+0147_daily_bin563.fits outfile=/scratch/kocevski/901163/cmap_HighResolution_385257601_385516801_4FGL_J0152.6+0147_daily_bin563.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 2.68
user 0.39
sys 2.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3756       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5689       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.085       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.375       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11799E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.7124       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4908       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .74105E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.401       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5388       1.0000         .10000E-03   10000.    
    14 'norm      '    .89655       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.911       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.242       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0197       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96769       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=   4948.112     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2029 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3660        179.15       -.32052E-04   -.35293E-05
   2  norm          2.5686        1.6686        .52030E-06   -.38851E-03
   3  Prefactor     17.231        83.588        .31168E-03    .63207E-04
   4  Prefactor     15.366        11.603       -.27539E-04   -.52308E-03
   5  Prefactor     .10001E-03    14.188        .17751E-04** at limit **
   6  Prefactor     .10000E-03    65.620       -.48343E-05** at limit **
   7  norm          4.7120        7.6955       -.22140E-06   -.25046E-03
   8  Prefactor     .10000E-03    31.897        .24009E-04** at limit **
   9  Prefactor     4.4908        4.4571        .12899E-06   -.62916E-04
  10  norm          .10000E-03    13.048       -.12704E-04** at limit **
  11  Prefactor     .10000E-03    4.8364        .10079E-05** at limit **
  12  norm          18.403        6.9224        .92942E-06   -.16352E-03
  13  Prefactor     1.5395        2.3676        .11274E-05   -.62350E-04
  14  norm          .89643        1.0189        .28957E-06   -.14564E-03
  15  Prefactor     29.903        29.705       -.29113E-05    .96529E-04
  16  Prefactor     29.209        49.687       -.44301E-04    .39223E-05
  17  Prefactor     .10000E-03    5.0322        .38822E-07** at limit **
  18  Prefactor     .10000E-03    22.890       -.22366E-04** at limit **
  19  Normalizat    1.0197        .20766       -.34843E-05   -.18082E-03
  20  Prefactor     .96782        .17008       -.12114E-05   -.19204E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.36596
  norm       = 2.56864
  Prefactor  = 17.2312
  Prefactor  = 15.3663
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  norm       = 4.71205
  Prefactor  = 0.0001
  Prefactor  = 4.49083
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.4026
  Prefactor  = 1.53955
  norm       = 0.896431
  Prefactor  = 29.9033
  Prefactor  = 29.2093
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.01969
  Prefactor  = 0.96782
 **********
 **   18 **HESSE 
 **********

 FCN=   4948.112     FROM HESSE     STATUS=OK           295 CALLS     2324 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3660        179.10        .15896E-03   -1.5203    
   2  norm          2.5686        1.6636        .69647E-04   -1.5387    
   3  Prefactor     17.231        83.208        .96898E-04   -1.4878    
   4  Prefactor     15.366        11.616        .10215E-03   -1.4924    
   5  Prefactor     .10001E-03    14.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    65.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.7120        7.6871        .18537E-03   -1.5274    
   8  Prefactor     .10000E-03    31.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4908        4.4563        .14324E-03   -1.5284    
  10  norm          .10000E-03    13.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.343        .29791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.403        6.8909        .93369E-04   -1.4850    
  13  Prefactor     1.5395        2.3230        .12449E-03   -1.5460    
  14  norm          .89643        .97940        .71500E-03   -1.5519    
  15  Prefactor     29.903        29.562        .73258E-04   -1.4614    
  16  Prefactor     29.209        49.675        .74089E-04   -1.4627    
  17  Prefactor     .10000E-03    5.0352        .15411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0197        .23672        .26775E-03   -.92374    
  20  Prefactor     .96782        .19380        .22555E-03   -.93810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14938e-09
Minuit parameter uncertainties:
  1  67.757
  2  1.66365
  3  75.9013
  4  11.6177
  5  0.000682547
  6  0.000393526
  7  7.68871
  8  1.0738e-05
  9  4.45665
  10  0.0001094
  11  6.3465e-05
  12  6.8912
  13  2.32312
  14  0.979415
  15  29.5766
  16  49.7454
  17  7.29631e-06
  18  0.000294596
  19  0.23696
  20  0.193935
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.491e+00  4.457e+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:  9.678e-01  1.939e-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:  1.020e+00  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.51e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.79e-05

TS (Fixed Index): 2.49
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 9.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901163/likelihoodResults_385257601_385516801_4FGL_J0152.6+0147_daily_bin563.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): 0
logL (Free Index) = 4948.11040757
delta logL = 0.00109344423163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4948.10970632
delta logL = 0.0017947003771

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2961       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0318       1.0000          .0000       10.000    
     3 'Normalizat'    1.0176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96875       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=   4948.110     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      216 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2935        139.21        .48592E-02    .95101E-04
   2  Index         2.0333        5.7490        .14240        .73042E-04
   3  Normalizat    1.0175        .12503        .43731E-01   -.13710E-05
   4  Prefactor     .96883        .67106E-01    .45875E-01   -.48208E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.29351
  Index      = 2.03328
  Normalizat = 1.01749
  Prefactor  = 0.968826
 **********
 **   18 **HESSE 
 **********

 FCN=   4948.110     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2935        5.7955        .13887E-03   -1.5294    
   2  Index         2.0333        .87844        .81697E-02   -.63521    
   3  Normalizat    1.0175        .23550        .26801E-03   -.92447    
   4  Prefactor     .96883        .19222        .22545E-03   -.93776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91796e-12
Minuit parameter uncertainties:
  1  5.79626
  2  0.885566
  3  0.235736
  4  0.192352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901163': 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) = 4948.10970425
delta logL = 0.00179676245716

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.294e+00  5.796e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.033e+00  8.856e-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:  9.688e-01  1.924e-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:  1.017e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.03 +/- 0.89
Photon Flux (Free Index): 2.68e-08 +/- 3.83e-08
Energy Flux (Free Index): 1.71e-05 +/- 2.46e-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/901163/cmap_HighResolution_385257601_385516801_4FGL_J0152.6+0147_daily_bin563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-03', comment='SUCCESS', photon_flux='2.51e-08', energy_flux2='1.71e-05', photon_flux_error='2.49e-08', dlogl='1.80e-03', energy_flux='1.81e-05', photon_flux2='2.68e-08', job_status='DONE', time_completed='2021-08-14 19:58:21.117881', photon_index_error2='0.89', photon_index2='2.03', ts='2.49', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='9.31e-08', energy_flux_error2='2.46e-05', EG='1.02', time_epoch_completed='1628996301.12', return_code='0', job_id='901163', GAL2='0.97', EG2='1.02', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='3.83e-08', ts2='2.49', photon_index='1.98' WHERE bin_id='563' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:58:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 901163: <4FGL_J0152.6+0147_daily_bin563> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin563> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:45:18 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:45:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 19:45:20 2021
Terminated at Sat Aug 14 19:58:22 2021
Results reported at Sat Aug 14 19:58:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin563 28.1614 1.7894 385257601 385516801 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 :                                   612.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            784 sec.

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

