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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin671
RA = 28.1614, Dec = 1.7894
tmin = 413251201, tmax = 413510401
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='898564', job_status='RUN', time_executed='2021-08-14 19:40:44.105798', time_epoch_executed='1628995244.11' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898564

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898564/ft1_4FGL_J0152.6+0147_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898564/ft2_4FGL_J0152.6+0147_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898564/ft1_4FGL_J0152.6+0147_daily_bin671.fits outfile=/scratch/kocevski/898564/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin671.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=413251201.0 tmax=413510401.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 6.69
user 5.45
sys 1.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898564/ft1_filtered_4FGL_J0152.6+0147_daily_bin671.fits" evtable="EVENTS" scfile=/scratch/kocevski/898564/ft2_4FGL_J0152.6+0147_daily_bin671.fits sctable="SC_DATA" outfile=/scratch/kocevski/898564/ltcube_413251201_413510401_4FGL_J0152.6+0147_daily_bin671.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/898564/ft2_4FGL_J0152.6+0147_daily_bin671.fits
.....................!
real 14.04
user 12.60
sys 1.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898564/ft1_filtered_4FGL_J0152.6+0147_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/898564/ft2_4FGL_J0152.6+0147_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/898564/ltcube_413251201_413510401_4FGL_J0152.6+0147_daily_bin671.fits outfile=/scratch/kocevski/898564/expmap_413251201_413510401_4FGL_J0152.6+0147_daily_bin671.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/898564/ltcube_413251201_413510401_4FGL_J0152.6+0147_daily_bin671.fits
.....................!
real 194.36
user 187.68
sys 6.15

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/898564/ft1_filtered_4FGL_J0152.6+0147_daily_bin671.fits scfile=/scratch/kocevski/898564/ft2_4FGL_J0152.6+0147_daily_bin671.fits outfile=/scratch/kocevski/898564/cmap_413251201_413510401_4FGL_J0152.6+0147_daily_bin671.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 1.43
user 0.38
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898564/ft1_filtered_4FGL_J0152.6+0147_daily_bin671.fits scfile=/scratch/kocevski/898564/ft2_4FGL_J0152.6+0147_daily_bin671.fits outfile=/scratch/kocevski/898564/cmap_HighResolution_413251201_413510401_4FGL_J0152.6+0147_daily_bin671.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 1.48
user 0.39
sys 1.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.121       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4277       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22940E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .44130E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4897       1.0000         .10000E-03   10000.    
    10 'norm      '    14.941       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8925       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4806       1.0000         .10000E-03   10000.    
    14 'norm      '    .21885       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.800       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1725       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0761       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=   3595.544     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2062 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.139        126.49        .59957E-06    .38966E-04
   2  norm          4.4248        3.2875        .24224E-06    .11660E-03
   3  Prefactor     .10000E-03    82.126       -.64643E-07** at limit **
   4  Prefactor     .10001E-03    15.731        .50579E-05** at limit **
   5  Prefactor     .10000E-03    8.1286        .42129E-07** at limit **
   6  Prefactor     .10000E-03    47.698        .94938E-07** at limit **
   7  norm          .10004E-03    46.416       -.15783E-04** at limit **
   8  Prefactor     .10001E-03    56.111        .10167E-06** at limit **
   9  Prefactor     5.4898        6.1782        .34847E-06    .17077E-03
  10  norm          14.944        20.296        .32043E-06    .11579E-04
  11  Prefactor     .10000E-03    8.9843        .19729E-06** at limit **
  12  norm          2.8921        4.7766        .46785E-06    .38899E-03
  13  Prefactor     1.4823        3.2772        .14165E-05    .11122E-02
  14  norm          .21408        1.4011        .11253E-05    .23600E-03
  15  Prefactor     .10000E-03    10.516       -.10382E-06** at limit **
  16  Prefactor     17.794        56.000       -.46769E-06   -.38778E-04
  17  Prefactor     .10000E-03    9.2946        .33911E-07** at limit **
  18  Prefactor     .10000E-03    12.214       -.26156E-07** at limit **
  19  Normalizat    1.1725        .26185       -.24397E-05   -.42675E-03
  20  Prefactor     1.0759        .20839       -.38604E-06   -.43579E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.1392
  norm       = 4.42476
  Prefactor  = 0.000100004
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100041
  Prefactor  = 0.000100007
  Prefactor  = 5.48985
  norm       = 14.9436
  Prefactor  = 0.0001
  norm       = 2.89214
  Prefactor  = 1.48235
  norm       = 0.214083
  Prefactor  = 0.0001
  Prefactor  = 17.7943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.17248
  Prefactor  = 1.07595
 **********
 **   18 **HESSE 
 **********

 FCN=   3595.544     FROM HESSE     STATUS=OK           289 CALLS     2351 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.139        126.84        .61050E-04   -1.4393    
   2  norm          4.4248        3.2232        .80131E-04   -1.5287    
   3  Prefactor     .10000E-03    82.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    63.941        .40173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.1439        .16698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    47.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10004E-03    50.425        .39382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    56.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.4898        6.1886        .15324E-03   -1.5239    
  10  norm          14.944        20.334        .10362E-03   -1.4935    
  11  Prefactor     .10000E-03    9.1171        .17550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8921        4.7786        .16213E-03   -1.5368    
  13  Prefactor     1.4823        3.3883        .15715E-03   -1.5464    
  14  norm          .21408        2.4888        .12560E-02   -1.5615    
  15  Prefactor     .10000E-03    10.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.794        56.040        .94930E-04   -1.4864    
  17  Prefactor     .10000E-03    9.3241        .17856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1725        .30002        .27127E-03   -.87457    
  20  Prefactor     1.0759        .24205        .22775E-03   -.90239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54515e-09
Minuit parameter uncertainties:
  1  127.649
  2  3.22337
  3  0.00120882
  4  0.00122551
  5  1.07886e-05
  6  0.000439824
  7  0.00286097
  8  0.00129327
  9  6.1893
  10  20.3431
  11  7.21977e-05
  12  4.77921
  13  3.38877
  14  1.45962
  15  5.99807e-05
  16  56.2069
  17  1.91704e-06
  18  1.93127e-05
  19  0.300465
  20  0.242295
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  5.490e+00  6.189e+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.076e+00  2.423e-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.172e+00  3.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 3.07e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 2.49e-05

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

Saving results to:
/scratch/kocevski/898564/likelihoodResults_413251201_413510401_4FGL_J0152.6+0147_daily_bin671.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) = 3595.24735592
delta logL = 0.297123663589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3595.23808651
delta logL = 0.306393076994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4187       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5951       1.0000          .0000       10.000    
     3 'Normalizat'    1.1447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0873       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=   3595.238     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      273 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4184        5.3991        .84612E-04   -.92764E-03
   2  Index         2.5951        .98887        .43641E-02   -.94031E-04
   3  Normalizat    1.1447        .29438        .27402E-03   -.14798E-03
   4  Prefactor     1.0873        .23609        .22661E-03   -.17955E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.41841
  Index      = 2.5951
  Normalizat = 1.1447
  Prefactor  = 1.08728
 **********
 **   18 **HESSE 
 **********

 FCN=   3595.238     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4184        4.4906        .33845E-05   -1.5397    
   2  Index         2.5951        .82393        .17456E-03   -.50177    
   3  Normalizat    1.1447        .29396        .54804E-04   -.88329    
   4  Prefactor     1.0873        .23598        .45322E-04   -.89874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16619e-10
Minuit parameter uncertainties:
  1  4.49123
  2  0.828861
  3  0.294382
  4  0.236203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898564': 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) = 3595.2380865
delta logL = 0.30639308673

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.418e+00  4.491e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.595e+00  8.289e-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.087e+00  2.362e-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.145e+00  2.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.97
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.60 +/- 0.83
Photon Flux (Free Index): 5.84e-08 +/- 6.29e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.51e-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/898564/cmap_HighResolution_413251201_413510401_4FGL_J0152.6+0147_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.23e-03', comment='SUCCESS', photon_flux='3.07e-08', energy_flux2='1.54e-05', photon_flux_error='3.46e-08', dlogl='3.06e-01', energy_flux='2.21e-05', photon_flux2='5.84e-08', job_status='DONE', time_completed='2021-08-14 19:49:22.565644', photon_index_error2='0.83', photon_index2='2.60', ts='1.34', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.51e-05', EG='1.17', time_epoch_completed='1628995762.57', return_code='0', job_id='898564', GAL2='1.09', EG2='1.14', return_code2='0', energy_flux_error='2.49e-05', photon_flux_error2='6.29e-08', ts2='1.97', photon_index='1.98' WHERE bin_id='671' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:49:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 898564: <4FGL_J0152.6+0147_daily_bin671> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin671> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:52 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:38:33 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:38:33 2021
Terminated at Sat Aug 14 19:49:23 2021
Results reported at Sat Aug 14 19:49:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin671 28.1614 1.7894 413251201 413510401 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 :                                   528.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            811 sec.

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

