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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin887
RA = 28.1614, Dec = 1.7894
tmin = 469238401, tmax = 469497601
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='899971', job_status='RUN', time_executed='2021-08-14 19:45:15.092764', time_epoch_executed='1628995515.09' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='887'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899971

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899971/ft1_4FGL_J0152.6+0147_daily_bin887.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899971/ft2_4FGL_J0152.6+0147_daily_bin887.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899971/ft1_4FGL_J0152.6+0147_daily_bin887.fits outfile=/scratch/kocevski/899971/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin887.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=469238401.0 tmax=469497601.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 7.66
user 3.37
sys 4.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899971/ft2_4FGL_J0152.6+0147_daily_bin887.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/899971/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin887.fits evtable="EVENTS" outfile="/scratch/kocevski/899971/ft1_filtered_4FGL_J0152.6+0147_daily_bin887.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.61
user 0.33
sys 4.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899971/ft1_filtered_4FGL_J0152.6+0147_daily_bin887.fits" evtable="EVENTS" scfile=/scratch/kocevski/899971/ft2_4FGL_J0152.6+0147_daily_bin887.fits sctable="SC_DATA" outfile=/scratch/kocevski/899971/ltcube_469238401_469497601_4FGL_J0152.6+0147_daily_bin887.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/899971/ft2_4FGL_J0152.6+0147_daily_bin887.fits
.....................!
real 17.58
user 12.77
sys 4.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899971/ft1_filtered_4FGL_J0152.6+0147_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/899971/ft2_4FGL_J0152.6+0147_daily_bin887.fits sctable="SC_DATA" expcube=/scratch/kocevski/899971/ltcube_469238401_469497601_4FGL_J0152.6+0147_daily_bin887.fits outfile=/scratch/kocevski/899971/expmap_469238401_469497601_4FGL_J0152.6+0147_daily_bin887.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/899971/ltcube_469238401_469497601_4FGL_J0152.6+0147_daily_bin887.fits
.....................!
real 197.25
user 186.99
sys 9.82

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/899971/ft1_filtered_4FGL_J0152.6+0147_daily_bin887.fits scfile=/scratch/kocevski/899971/ft2_4FGL_J0152.6+0147_daily_bin887.fits outfile=/scratch/kocevski/899971/cmap_469238401_469497601_4FGL_J0152.6+0147_daily_bin887.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.50
user 0.37
sys 4.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899971/ft1_filtered_4FGL_J0152.6+0147_daily_bin887.fits scfile=/scratch/kocevski/899971/ft2_4FGL_J0152.6+0147_daily_bin887.fits outfile=/scratch/kocevski/899971/cmap_HighResolution_469238401_469497601_4FGL_J0152.6+0147_daily_bin887.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.41
user 0.39
sys 4.00

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.451       1.0000         .10000E-03   10000.    
     2 'norm      '    14.234       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10578E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9569       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.2010       1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.882       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4869       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.7599       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .29447       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.896       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0058       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.966       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1936       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .66991       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=   6324.960     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2005 TOTAL
                     EDM=   .34E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.447        69.119        .12649E-05    .16405E-05
   2  norm          14.234        2.7023       -.65537E-08   -.10543E-04
   3  Prefactor     .10000E-03    41.089        .42546E-05** at limit **
   4  Prefactor     .10000E-03    2.6706       -.34692E-07** at limit **
   5  Prefactor     3.9547        10.555        .34281E-05   -.79569E-05
   6  Prefactor     .10000E-03    36.860       -.41037E-05** at limit **
   7  norm          9.2009        6.4998       -.55642E-08   -.44805E-05
   8  Prefactor     64.879        75.687        .23028E-06   -.13401E-05
   9  Prefactor     2.4870        3.3573        .17078E-06    .10193E-04
  10  norm          .10000E-03    9.2409       -.87965E-07** at limit **
  11  Prefactor     .10000E-03    2.3660        .21640E-07** at limit **
  12  norm          8.7603        4.9242       -.16783E-06   -.20484E-04
  13  Prefactor     .10000E-03    1.0019        .46443E-07** at limit **
  14  norm          .29450        .56171        .42629E-06    .20995E-04
  15  Prefactor     .10000E-03    13.055        .16691E-06** at limit **
  16  Prefactor     25.896        40.560        .27309E-06   -.28172E-06
  17  Prefactor     3.0064        7.6894        .28067E-06    .42747E-06
  18  Prefactor     16.966        16.313        .71712E-07   -.34090E-05
  19  Normalizat    1.1936        .16825       -.42847E-06    .73948E-05
  20  Prefactor     .66984        .13424       -.30311E-06   -.32203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4469
  norm       = 14.2338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.95467
  Prefactor  = 0.0001
  norm       = 9.20094
  Prefactor  = 64.8793
  Prefactor  = 2.487
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.76025
  Prefactor  = 0.0001
  norm       = 0.294498
  Prefactor  = 0.0001
  Prefactor  = 25.8955
  Prefactor  = 3.00637
  Prefactor  = 16.966
  Normalizat = 1.19364
  Prefactor  = 0.669838
 **********
 **   18 **HESSE 
 **********

 FCN=   6324.960     FROM HESSE     STATUS=OK           295 CALLS     2300 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.447        69.196        .76462E-04   -1.4660    
   2  norm          14.234        2.7052        .53147E-04   -1.4953    
   3  Prefactor     .10000E-03    41.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6868        .12690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9547        10.559        .10139E-02   -1.5310    
   6  Prefactor     .10000E-03    36.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.2009        6.5028        .13213E-03   -1.5101    
   8  Prefactor     64.879        75.861        .49823E-04   -1.4095    
   9  Prefactor     2.4870        3.3471        .16380E-03   -1.5393    
  10  norm          .10000E-03    9.2881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3758        .11945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.7603        4.9308        .12699E-03   -1.5116    
  13  Prefactor     .10000E-03    1.0249        .77677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .29450        .56191        .20801E-03   -1.5599    
  15  Prefactor     .10000E-03    13.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.896        40.561        .78720E-04   -1.4690    
  17  Prefactor     3.0064        7.6784        .23411E-03   -1.5361    
  18  Prefactor     16.966        16.315        .97235E-04   -1.4884    
  19  Normalizat    1.1936        .19384        .23613E-03   -.86799    
  20  Prefactor     .66984        .15414        .24537E-03   -1.0472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31231e-11
Minuit parameter uncertainties:
  1  69.3992
  2  2.70523
  3  3.48217e-05
  4  1.37987e-06
  5  10.5642
  6  2.78806e-05
  7  6.50331
  8  75.9744
  9  3.3474
  10  3.37678e-07
  11  2.35342e-06
  12  4.93101
  13  1.96394e-06
  14  0.561924
  15  1.10315e-06
  16  40.6037
  17  7.68096
  18  16.3196
  19  0.193958
  20  0.154242
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.487e+00  3.347e+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:  6.698e-01  1.542e-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.194e+00  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.39e-08 +/- 1.87e-08
Energy Flux (Fixed Index): 1.00e-05 +/- 1.35e-05

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

Saving results to:
/scratch/kocevski/899971/likelihoodResults_469238401_469497601_4FGL_J0152.6+0147_daily_bin887.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) = 6324.62644974
delta logL = 0.33396270309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6324.57558223
delta logL = 0.384830209794

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93122       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9167       1.0000          .0000       10.000    
     3 'Normalizat'    1.1471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69022       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=   6324.576     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      251 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93374        14.062        .12920E-01    .20074E-02
   2  Index         2.9163        2.5267        .90668E-01    .32338E-03
   3  Normalizat    1.1472        .44314E-01    .54317E-01   -.63436E-04
   4  Prefactor     .69015        .34431E-01    .42271E-01   -.17197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.933741
  Index      = 2.91629
  Normalizat = 1.14723
  Prefactor  = 0.690147
 **********
 **   18 **HESSE 
 **********

 FCN=   6324.576     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      286 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93374        34.247        .66318E-03   -1.5515    
   2  Index         2.9163        6.4541        .52055E-02   -.42986    
   3  Normalizat    1.1472        .22451        .24017E-03   -.88250    
   4  Prefactor     .69015        .15412        .24203E-03   -1.0391    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17055e-09
Minuit parameter uncertainties:
  1  11.3162
  2  5.44523
  3  0.224698
  4  0.154217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899971': 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) = 6324.57557952
delta logL = 0.384832924487

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  9.337e-01  1.132e+01  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.916e+00  5.445e+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:  6.901e-01  1.542e-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.147e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.92 +/- 5.45
Photon Flux (Free Index): 5.22e-08 +/- 1.33e-07
Energy Flux (Free Index): 1.09e-05 +/- 1.17e-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/899971/cmap_HighResolution_469238401_469497601_4FGL_J0152.6+0147_daily_bin887.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-03', comment='SUCCESS', photon_flux='1.39e-08', energy_flux2='1.09e-05', photon_flux_error='1.87e-08', dlogl='3.85e-01', energy_flux='1.00e-05', photon_flux2='5.22e-08', job_status='DONE', time_completed='2021-08-14 19:56:23.771477', photon_index_error2='5.45', photon_index2='2.92', ts='1.04', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='6.92e-08', energy_flux_error2='1.17e-05', EG='1.19', time_epoch_completed='1628996183.77', return_code='0', job_id='899971', GAL2='0.69', EG2='1.15', return_code2='102', energy_flux_error='1.35e-05', photon_flux_error2='1.33e-07', ts2='1.84', photon_index='1.98' WHERE bin_id='887' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:56:23 PDT 2021


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

Job <4FGL_J0152.6+0147_daily_bin887> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:40:45 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:42:07 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:42:07 2021
Terminated at Sat Aug 14 19:56:24 2021
Results reported at Sat Aug 14 19:56:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin887 28.1614 1.7894 469238401 469497601 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 :                                   729.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            939 sec.

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

