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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin812
RA = 28.1614, Dec = 1.7894
tmin = 449798401, tmax = 450057601
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='899856', job_status='RUN', time_executed='2021-08-14 19:44:58.367173', time_epoch_executed='1628995498.37' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='812'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899856

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899856/ft1_4FGL_J0152.6+0147_daily_bin812.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899856/ft2_4FGL_J0152.6+0147_daily_bin812.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899856/ft1_4FGL_J0152.6+0147_daily_bin812.fits outfile=/scratch/kocevski/899856/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin812.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=449798401.0 tmax=450057601.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.61
user 4.14
sys 3.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899856/ft1_filtered_4FGL_J0152.6+0147_daily_bin812.fits" evtable="EVENTS" scfile=/scratch/kocevski/899856/ft2_4FGL_J0152.6+0147_daily_bin812.fits sctable="SC_DATA" outfile=/scratch/kocevski/899856/ltcube_449798401_450057601_4FGL_J0152.6+0147_daily_bin812.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/899856/ft2_4FGL_J0152.6+0147_daily_bin812.fits
.....................!
real 17.16
user 13.23
sys 3.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899856/ft1_filtered_4FGL_J0152.6+0147_daily_bin812.fits evtable="EVENTS" scfile=/scratch/kocevski/899856/ft2_4FGL_J0152.6+0147_daily_bin812.fits sctable="SC_DATA" expcube=/scratch/kocevski/899856/ltcube_449798401_450057601_4FGL_J0152.6+0147_daily_bin812.fits outfile=/scratch/kocevski/899856/expmap_449798401_450057601_4FGL_J0152.6+0147_daily_bin812.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/899856/ltcube_449798401_450057601_4FGL_J0152.6+0147_daily_bin812.fits
.....................!
real 196.91
user 187.13
sys 9.34

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/899856/ft1_filtered_4FGL_J0152.6+0147_daily_bin812.fits scfile=/scratch/kocevski/899856/ft2_4FGL_J0152.6+0147_daily_bin812.fits outfile=/scratch/kocevski/899856/cmap_449798401_450057601_4FGL_J0152.6+0147_daily_bin812.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.70
user 0.39
sys 3.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899856/ft1_filtered_4FGL_J0152.6+0147_daily_bin812.fits scfile=/scratch/kocevski/899856/ft2_4FGL_J0152.6+0147_daily_bin812.fits outfile=/scratch/kocevski/899856/cmap_HighResolution_449798401_450057601_4FGL_J0152.6+0147_daily_bin812.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.67
user 0.40
sys 3.24

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.731       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8766       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3298       1.0000         .10000E-03   10000.    
     7 'norm      '    16.720       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4455       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5527       1.0000         .10000E-03   10000.    
    12 'norm      '    14.087       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6691       1.0000         .10000E-03   10000.    
    14 'norm      '    .32056       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15270E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7021       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4442       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80591       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=   5176.975     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     1745 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    107.68        .21170E-04** at limit **
   2  norm          13.731        3.1613       -.18020E-06   -.28964E-03
   3  Prefactor     .10000E-03    34.918       -.21827E-06** at limit **
   4  Prefactor     3.8776        7.8723        .13640E-05   -.15115E-04
   5  Prefactor     .10000E-03    4.6775       -.11239E-07** at limit **
   6  Prefactor     8.3354        146.55        .12720E-04    .58981E-05
   7  norm          16.721        10.232        .43718E-07   -.36361E-05
   8  Prefactor     .10000E-03    27.135        .11376E-06** at limit **
   9  Prefactor     1.4446        1.5652        .56546E-06   -.26564E-02
  10  norm          .10000E-03    5.9274       -.25962E-06** at limit **
  11  Prefactor     2.5533        7.1642       -.18296E-05   -.10891E-03
  12  norm          14.087        6.7895       -.10679E-05   -.10493E-03
  13  Prefactor     2.6676        2.6347        .14731E-06    .48027E-04
  14  norm          .32051        .84271       -.89438E-07   -.31324E-03
  15  Prefactor     .10000E-03    10.526       -.15105E-06** at limit **
  16  Prefactor     .10000E-03    117.73       -.26917E-04** at limit **
  17  Prefactor     9.7028        11.066        .19163E-07   -.10151E-05
  18  Prefactor     .10000E-03    20.457        .13167E-05** at limit **
  19  Normalizat    1.4441        .21862       -.85651E-06    .17353E-04
  20  Prefactor     .80588        .17370        .42150E-06   -.20617E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 13.7308
  Prefactor  = 0.0001
  Prefactor  = 3.87759
  Prefactor  = 0.0001
  Prefactor  = 8.33543
  norm       = 16.7208
  Prefactor  = 0.0001
  Prefactor  = 1.44455
  norm       = 0.0001
  Prefactor  = 2.5533
  norm       = 14.0869
  Prefactor  = 2.66755
  norm       = 0.320506
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.70283
  Prefactor  = 0.0001
  Normalizat = 1.44414
  Prefactor  = 0.805885
 **********
 **   18 **HESSE 
 **********

 FCN=   5176.975     FROM HESSE     STATUS=OK           293 CALLS     2038 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    108.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.731        3.1666        .58727E-04   -1.4967    
   3  Prefactor     .10000E-03    34.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8776        7.8548        .20494E-03   -1.5314    
   5  Prefactor     .10000E-03    4.6833        .15198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3354        146.30        .13890E-03   -1.5130    
   7  norm          16.721        10.232        .97948E-04   -1.4890    
   8  Prefactor     .10000E-03    27.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4446        3.7145        .10916E-02   -1.5468    
  10  norm          .10000E-03    5.9308        .17108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5533        7.1599        .25555E-03   -1.5388    
  12  norm          14.087        6.7801        .10672E-03   -1.4957    
  13  Prefactor     2.6676        2.6270        .11061E-03   -1.5381    
  14  norm          .32051        .81614        .10155E-03   -1.5595    
  15  Prefactor     .10000E-03    10.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    118.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.7028        11.071        .12865E-03   -1.5085    
  18  Prefactor     .10000E-03    20.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4441        .25056        .25889E-03   -.79360    
  20  Prefactor     .80588        .19869        .26299E-03   -.99512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76799e-09
Minuit parameter uncertainties:
  1  0.000860068
  2  3.16664
  3  2.82632e-05
  4  7.85685
  5  5.34423e-07
  6  70.0422
  7  10.2332
  8  2.88198e-06
  9  3.71504
  10  6.47281e-07
  11  7.16233
  12  6.78045
  13  2.62707
  14  0.816164
  15  3.01277e-06
  16  0.000959152
  17  11.0738
  18  3.16564e-05
  19  0.250774
  20  0.198868
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.445e+00  3.715e+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:  8.059e-01  1.989e-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.444e+00  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/899856/likelihoodResults_449798401_450057601_4FGL_J0152.6+0147_daily_bin812.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) = 5176.57403289
delta logL = 0.400957472862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5176.50562121
delta logL = 0.469369150656

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8049       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1048       1.0000          .0000       10.000    
     3 'Normalizat'    1.4480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80337       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=   5176.506     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8049        4.9606        .60725E-02    .41433E-02
   2  Index         1.1048        .79645        .34086       -.47057E-05
   3  Normalizat    1.4480        .21431        .58446E-01    .90034E-05
   4  Prefactor     .80338        .16869        .43761E-01    .95174E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.80487
  Index      = 1.10485
  Normalizat = 1.44804
  Prefactor  = 0.803379
 **********
 **   18 **HESSE 
 **********

 FCN=   5176.506     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8049        4.2117        .16207E-03   -1.5373    
   2  Index         1.1048        .72861        .14000E-01   -.89312    
   3  Normalizat    1.4480        .24422        .25845E-03   -.79249    
   4  Prefactor     .80338        .19278        .26322E-03   -.99604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11373e-08
Minuit parameter uncertainties:
  1  4.21215
  2  0.735331
  3  0.24442
  4  0.192938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899856': 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) = 5176.50562121
delta logL = 0.469369153593

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.805e+00  4.212e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.105e+00  7.353e-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:  8.034e-01  1.929e-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.448e+00  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.10 +/- 0.74
Photon Flux (Free Index): 4.63e-09 +/- 7.16e-09
Energy Flux (Free Index): 5.10e-05 +/- 9.72e-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/899856/cmap_HighResolution_449798401_450057601_4FGL_J0152.6+0147_daily_bin812.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-03', comment='SUCCESS', energy_flux2='5.10e-05', dlogl='4.69e-01', photon_flux2='4.63e-09', job_status='DONE', time_completed='2021-08-14 19:55:06.992104', photon_index_error2='0.74', photon_index2='1.10', ts='0.20', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='7.93e-08', energy_flux_error2='9.72e-05', EG='1.44', time_epoch_completed='1628996106.99', return_code='0', job_id='899856', GAL2='0.80', EG2='1.45', return_code2='0', photon_flux_error2='7.16e-09', ts2='1.14', photon_index='1.98' WHERE bin_id='812' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:55:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 899856: <4FGL_J0152.6+0147_daily_bin812> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin812> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:40:36 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:41:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 19:41:24 2021
Terminated at Sat Aug 14 19:55:08 2021
Results reported at Sat Aug 14 19:55:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin812 28.1614 1.7894 449798401 450057601 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 :                                   656.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            872 sec.

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

