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


Performing analysis on: 4FGL_J2147.1+0931_daily_bin974
RA = 326.783, Dec = 9.5181
tmin = 491788801, tmax = 492048001
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='927232', job_status='RUN', time_executed='2021-09-27 14:56:32.863499', time_epoch_executed='1632779792.86' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927232

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927232/ft1_4FGL_J2147.1+0931_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927232/ft2_4FGL_J2147.1+0931_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927232/ft1_4FGL_J2147.1+0931_daily_bin974.fits outfile=/scratch/kocevski/927232/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin974.fits ra=326.783 dec=9.5181 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.23
user 3.98
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/927232/ft2_4FGL_J2147.1+0931_daily_bin974.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/927232/ft2_4FGL_J2147.1+0931_daily_bin974.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/927232/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/927232/ft1_filtered_4FGL_J2147.1+0931_daily_bin974.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 0.50
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927232/ft1_filtered_4FGL_J2147.1+0931_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/927232/ft2_4FGL_J2147.1+0931_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/927232/ltcube_491788801_492048001_4FGL_J2147.1+0931_daily_bin974.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/927232/ft2_4FGL_J2147.1+0931_daily_bin974.fits
.....................!
real 13.39
user 13.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927232/ft1_filtered_4FGL_J2147.1+0931_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/927232/ft2_4FGL_J2147.1+0931_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/927232/ltcube_491788801_492048001_4FGL_J2147.1+0931_daily_bin974.fits outfile=/scratch/kocevski/927232/expmap_491788801_492048001_4FGL_J2147.1+0931_daily_bin974.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/927232/ltcube_491788801_492048001_4FGL_J2147.1+0931_daily_bin974.fits
.....................!
real 192.79
user 185.85
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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J2147.1+0931 @ 326.783 9.5181

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/927232/ft1_filtered_4FGL_J2147.1+0931_daily_bin974.fits scfile=/scratch/kocevski/927232/ft2_4FGL_J2147.1+0931_daily_bin974.fits outfile=/scratch/kocevski/927232/cmap_491788801_492048001_4FGL_J2147.1+0931_daily_bin974.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=326.783 yref=9.5181 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 0.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927232/ft1_filtered_4FGL_J2147.1+0931_daily_bin974.fits scfile=/scratch/kocevski/927232/ft2_4FGL_J2147.1+0931_daily_bin974.fits outfile=/scratch/kocevski/927232/cmap_HighResolution_491788801_492048001_4FGL_J2147.1+0931_daily_bin974.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=326.783 yref=9.5181 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 0.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/927232/ft1_filtered_4FGL_J2147.1+0931_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/927232/ft2_4FGL_J2147.1+0931_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/927232/Model_4FGL_J2147.1+0931_daily_bin974.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/927232/ft1_filtered_4FGL_J2147.1+0931_daily_bin974.fits.......................!
real 20.64
user 19.27
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/927232/ft1_filtered_4FGL_J2147.1+0931_daily_bin974.fits', '/scratch/kocevski/927232/ft2_4FGL_J2147.1+0931_daily_bin974.fits', expMap='/scratch/kocevski/927232/expmap_491788801_492048001_4FGL_J2147.1+0931_daily_bin974.fits', expCube='/scratch/kocevski/927232/ltcube_491788801_492048001_4FGL_J2147.1+0931_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/927232/Model_4FGL_J2147.1+0931_daily_bin974.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2147.1+0931'

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  2.902e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  2.432e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  9.991e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  4.060e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/927232/ft1_filtered_4FGL_J2147.1+0931_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/927232/ft2_4FGL_J2147.1+0931_daily_bin974.fits
Exposure map: /scratch/kocevski/927232/expmap_491788801_492048001_4FGL_J2147.1+0931_daily_bin974.fits
Exposure cube: /scratch/kocevski/927232/ltcube_491788801_492048001_4FGL_J2147.1+0931_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/927232/Model_4FGL_J2147.1+0931_daily_bin974.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) = 809.694853933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 808.988401006

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    195.71       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1032       1.0000         .10000E-03   10000.    
     3 'Prefactor '    200.52       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .66207E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14481E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.304       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14106E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    100.55       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .60966       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    652.44       1.0000         .10000E-03   10000.    
    15 'Prefactor '    201.64       1.0000         .10000E-03   10000.    
    16 'norm      '    .75060E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .78101E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1268       1.0000         .10000E-03   10000.    
    19 'Prefactor '    124.98       1.0000         .10000E-03   10000.    
    20 'Prefactor '    75.903       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.728       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7204       1.0000         .10000E-03   10000.    
    24 'Prefactor '    40.780       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .16467       1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.3112       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.5103       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .12859E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .72289       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   808.9458     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     3290 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     198.82        89.251        .26116E-05    .90323E-02
   2  Prefactor     .10000E-03    149.56        .19901E-04** at limit **
   3  Prefactor     221.01        87.743        .22380E-05   -.13776E-01
   4  Prefactor     .10003E-03    193.76       -.16940E-04** at limit **
   5  Prefactor     .10000E-03    83.382       -.75293E-05** at limit **
   6  norm          .10000E-03    24.792        .95092E-06** at limit **
   7  Prefactor     54.687        88.006        .87075E-05    .15747E-02
   8  Prefactor     .10000E-03    18.652       -.59961E-06** at limit **
   9  Prefactor     .10000E-03    23.917       -.15895E-05** at limit **
  10  Prefactor     .10000E-03    5.9734       -.44071E-06** at limit **
  11  Prefactor     98.430        27.874        .15198E-05    .18598E-01
  12  Prefactor     .10000E-03    823.04        .42244E-04** at limit **
  13  norm          .10000E-03    8.8819        .23314E-07** at limit **
  14  Prefactor     618.76        678.85        .91476E-05    .87702E-03
  15  Prefactor     251.60        205.63        .23571E-05    .75987E-02
  16  norm          .10000E-03    44.243       -.14080E-05** at limit **
  17  norm          .10000E-03    84.316       -.96959E-05** at limit **
  18  Prefactor     .10004E-03    189.55        .51294E-04** at limit **
  19  Prefactor     129.18        134.00        .53148E-05   -.60684E-02
  20  Prefactor     73.083        42.016        .21588E-05   -.60134E-03
  21  norm          .10000E-03    6.3960       -.43009E-06** at limit **
  22  Prefactor     18.051        81.340        .49779E-05    .12710E-02
  23  Prefactor     3.6436        308.15       -.78467E-04    .75809E-04
  24  Prefactor     43.970        91.202        .15303E-04   -.16933E-02
  25  Prefactor     .10001E-03    166.80        .70354E-05** at limit **
  26  norm          .10000E-03    21.246       -.13095E-06** at limit **
  27  Prefactor     4.2000        137.16        .19383E-04    .62837E-04
  28  Prefactor     1.5231        1.0647        .76559E-07   -.16774E-03
  29  Prefactor     .10000E-03    29.239        .53099E-06** at limit **
  30  Normalizat    .10000E-01    .98608        .36093E-05** at limit **
  31  Prefactor     .71073        .21939       -.89216E-05   -.11080E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 198.816
  Prefactor  = 0.0001
  Prefactor  = 221.014
  Prefactor  = 0.000100031
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 54.6867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 98.4304
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 618.758
  Prefactor  = 251.601
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100038
  Prefactor  = 129.178
  Prefactor  = 73.083
  norm       = 0.0001
  Prefactor  = 18.0508
  Prefactor  = 3.64356
  Prefactor  = 43.9697
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 4.19998
  Prefactor  = 1.52313
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.710733
 **********
 **   18 **HESSE 
 **********

 FCN=   808.9458     FROM HESSE     STATUS=OK           680 CALLS     3970 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     198.82        158.30        .72192E-03   -1.2878    
   2  Prefactor     .10000E-03    149.09        .11292E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     221.01        217.99        .71337E-03   -1.2724    
   4  Prefactor     .10003E-03    193.17        .93489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    83.149        .90953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    24.687        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     54.687        89.052        .13998E-02   -1.4228    
   8  Prefactor     .10000E-03    18.690        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.935        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9853        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     98.430        100.93        .10023E-02   -1.3720    
  12  Prefactor     .10000E-03    821.71        .11711E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.8555        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     618.76        751.37        .40493E-03   -1.0680    
  15  Prefactor     251.60        221.43        .71144E-03   -1.2522    
  16  norm          .10000E-03    21.667        .62100E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    85.320        .94063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10004E-03    186.32        .11024E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     129.18        163.39        .90015E-03   -1.3430    
  20  Prefactor     73.083        42.652        .11522E-02   -1.3996    
  21  norm          .10000E-03    6.3665        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.051        86.416        .21994E-02   -1.4858    
  23  Prefactor     3.6436        428.83        .80069E-02   -1.5326    
  24  Prefactor     43.970        107.07        .15693E-02   -1.4381    
  25  Prefactor     .10001E-03    164.42        .98152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    21.329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.2000        143.71        .48505E-02   -1.5298    
  28  Prefactor     1.5231        1.0622        .50460E-02   -1.5461    
  29  Prefactor     .10000E-03    29.440        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .77660        .22899       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .71073        .23663        .42705E-01   -1.0311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05582e-05
Minuit parameter uncertainties:
  1  158.642
  2  0.00010943
  3  218.793
  4  0.0049299
  5  0.000418296
  6  1.33337e-05
  7  89.2695
  8  1.09821e-05
  9  5.81134e-05
  10  2.44386e-06
  11  101.108
  12  0.00275402
  13  6.85908e-07
  14  764.112
  15  222.176
  16  0.000178169
  17  0.000344436
  18  0.00533338
  19  163.969
  20  42.6694
  21  1.9367e-05
  22  79.1767
  23  79.646
  24  107.547
  25  0.00230593
  26  5.57325e-06
  27  49.2639
  28  1.06218
  29  1.74758e-05
  30  3.77115e-06
  31  0.236967
Done.

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

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  1.000e-04  1.782e-04  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  2.432e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  9.991e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  4.060e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  7.107e-01  2.370e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.000e-02  3.771e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 326.783 9.518
Photon Flux Upper Limit: 7.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.11e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/927232/likelihoodResults_491788801_492048001_4FGL_J2147.1+0931_daily_bin974.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): 102
logL (Free Index) = 808.945875736
delta logL = -9.66215707194e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 808.945783678
delta logL = -4.5637433459e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10859E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4119       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71060       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+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=   808.9458     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      316 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    6235.3        .18763E-02** at limit **
   2  alpha         2.2443        3.6233        .50000        .39009E-07
   3  Normalizat    .10000E-01    .10901        .12266E-01** at limit **
   4  Prefactor     .71073        .53533E-01    .17698E-03   -.14208E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 2.24429
  Normalizat = 0.01
  Prefactor  = 0.710733
 **********
 **   18 **HESSE 
 **********

 FCN=   808.9458     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      345 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    8480.1        .37526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2443        3.2163        .50000       -.10246    
   3  Normalizat    .10000E-01    .53522        .24532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .71073        .11924        .35396E-04   -1.0311    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.4828e-09
Minuit parameter uncertainties:
  1  0.0146352
  2  5170.59
  3  2.92712e-06
  4  0.119283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927232': 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) = 808.945779043
delta logL = 7.11788743502e-08

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  1.000e-04  1.464e-02  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  2.244e+00  5.171e+03  0.000e+00  5.000e+00 ( 1.000e+00)
299         beta:  9.991e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  4.060e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  7.107e-01  1.193e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.000e-02  2.927e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 326.783 9.518

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/927232/cmap_HighResolution_491788801_492048001_4FGL_J2147.1+0931_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-04', job_status='DONE', photon_flux_upper_limit='7.50e-07', time_completed='2021-09-27 15:03:07.171049', job_id='927232', GAL2='0.71', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632780187.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='7.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='974' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 15:03:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 927232: <4FGL_J2147.1+0931_daily_bin974> in cluster <slac> Done

Job <4FGL_J2147.1+0931_daily_bin974> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 14:50:32 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 14:52:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 14:52:30 2021
Terminated at Mon Sep 27 15:03:09 2021
Results reported at Mon Sep 27 15:03:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2147.1+0931_daily_bin974 326.783 9.5181 491788801 492048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2147.1+0931 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   392.06 sec.
    Max Memory :                                 1153 MB
    Average Memory :                             276.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            757 sec.

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

