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


Performing analysis on: 4FGL_J2147.1+0931_daily_bin658
RA = 326.783, Dec = 9.5181
tmin = 409881601, tmax = 410140801
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='925706', job_status='RUN', time_executed='2021-09-27 14:49:28.995732', time_epoch_executed='1632779369.0' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925706

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925706/ft1_4FGL_J2147.1+0931_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925706/ft2_4FGL_J2147.1+0931_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925706/ft1_4FGL_J2147.1+0931_daily_bin658.fits outfile=/scratch/kocevski/925706/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin658.fits ra=326.783 dec=9.5181 rad=12.0 tmin=409881601.0 tmax=410140801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.15
user 4.89
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/925706/ft2_4FGL_J2147.1+0931_daily_bin658.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/925706/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/925706/ft1_filtered_4FGL_J2147.1+0931_daily_bin658.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.45
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925706/ft1_filtered_4FGL_J2147.1+0931_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/925706/ft2_4FGL_J2147.1+0931_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/925706/ltcube_409881601_410140801_4FGL_J2147.1+0931_daily_bin658.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/925706/ft2_4FGL_J2147.1+0931_daily_bin658.fits
.....................!
real 10.68
user 10.34
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925706/ft1_filtered_4FGL_J2147.1+0931_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/925706/ft2_4FGL_J2147.1+0931_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/925706/ltcube_409881601_410140801_4FGL_J2147.1+0931_daily_bin658.fits outfile=/scratch/kocevski/925706/expmap_409881601_410140801_4FGL_J2147.1+0931_daily_bin658.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/925706/ltcube_409881601_410140801_4FGL_J2147.1+0931_daily_bin658.fits
.....................!
real 155.32
user 151.03
sys 3.95

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/925706/ft1_filtered_4FGL_J2147.1+0931_daily_bin658.fits scfile=/scratch/kocevski/925706/ft2_4FGL_J2147.1+0931_daily_bin658.fits outfile=/scratch/kocevski/925706/cmap_409881601_410140801_4FGL_J2147.1+0931_daily_bin658.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.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925706/ft1_filtered_4FGL_J2147.1+0931_daily_bin658.fits scfile=/scratch/kocevski/925706/ft2_4FGL_J2147.1+0931_daily_bin658.fits outfile=/scratch/kocevski/925706/cmap_HighResolution_409881601_410140801_4FGL_J2147.1+0931_daily_bin658.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.48
user 0.32
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/925706/ft1_filtered_4FGL_J2147.1+0931_daily_bin658.fits', '/scratch/kocevski/925706/ft2_4FGL_J2147.1+0931_daily_bin658.fits', expMap='/scratch/kocevski/925706/expmap_409881601_410140801_4FGL_J2147.1+0931_daily_bin658.fits', expCube='/scratch/kocevski/925706/ltcube_409881601_410140801_4FGL_J2147.1+0931_daily_bin658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/925706/Model_4FGL_J2147.1+0931_daily_bin658.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/925706/ft1_filtered_4FGL_J2147.1+0931_daily_bin658.fits
Spacecraft file(s): /scratch/kocevski/925706/ft2_4FGL_J2147.1+0931_daily_bin658.fits
Exposure map: /scratch/kocevski/925706/expmap_409881601_410140801_4FGL_J2147.1+0931_daily_bin658.fits
Exposure cube: /scratch/kocevski/925706/ltcube_409881601_410140801_4FGL_J2147.1+0931_daily_bin658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/925706/Model_4FGL_J2147.1+0931_daily_bin658.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) = 4602.0521628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.946       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    108.81       1.0000         .10000E-03   10000.    
     6 'norm      '    4.2818       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.724       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2173       1.0000         .10000E-03   10000.    
    13 'norm      '    14.472       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.896       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .21464E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.215       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9110       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.479       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    25.946       1.0000         .10000E-03   10000.    
    27 'Prefactor '    38.103       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.3285       1.0000         .10000E-03   10000.    
    29 'Prefactor '    18.443       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .90089       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .84861       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.

 FCN=   4602.025     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4121 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.946        27.060       -.11234E-06   -.52099E-05
   2  Prefactor     .10000E-03    35.275        .16080E-05** at limit **
   3  Prefactor     .10000E-03    14.567        .43588E-06** at limit **
   4  Prefactor     .10000E-03    10.717        .99042E-07** at limit **
   5  Prefactor     108.85        108.21       -.10345E-05   -.39347E-05
   6  norm          4.2822        6.8519        .20485E-06    .24380E-04
   7  Prefactor     .10000E-03    8.9727        .21093E-06** at limit **
   8  Prefactor     .10000E-03    3.3726        .22316E-06** at limit **
   9  Prefactor     10.723        10.769       -.49120E-07    .66451E-05
  10  Prefactor     .10000E-03    1.6622        .30763E-06** at limit **
  11  Prefactor     .10000E-03    49.110        .45571E-06** at limit **
  12  Prefactor     6.5218        6325.3       -.15711E-03    .16408E-05
  13  norm          14.475        6.1467        .11755E-06   -.85657E-05
  14  Prefactor     .10000E-03    38.730        .60191E-07** at limit **
  15  Prefactor     16.792        167.95       -.55421E-06    .12090E-04
  16  norm          .10000E-03    2.3667       -.11490E-06** at limit **
  17  norm          .10000E-03    196.64       -.14328E-04** at limit **
  18  Prefactor     25.226        16.695       -.24189E-06    .15052E-04
  19  Prefactor     .10000E-03    20.514       -.31094E-05** at limit **
  20  Prefactor     .10000E-03    7.1993        .73987E-07** at limit **
  21  norm          2.9109        1.9592       -.12217E-07    .26830E-04
  22  Prefactor     .10000E-03    11.704       -.28111E-07** at limit **
  23  Prefactor     .10000E-03    25.085        .11290E-06** at limit **
  24  Prefactor     12.476        31.565       -.12521E-05   -.12517E-04
  25  Prefactor     .10000E-03    111.35        .13909E-05** at limit **
  26  norm          25.945        15.215       -.22718E-07    .17261E-05
  27  Prefactor     38.128        43.813        .33703E-06    .89503E-05
  28  Prefactor     2.3280        .74261       -.30702E-07   -.23027E-04
  29  Prefactor     18.446        20.686        .97766E-07    .19775E-05
  30  Normalizat    .90107        .35131        .67069E-06    .15667E-04
  31  Prefactor     .84854        .14342       -.11982E-06   -.87780E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.9461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 108.854
  norm       = 4.28217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.5218
  norm       = 14.4748
  Prefactor  = 0.0001
  Prefactor  = 16.7915
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 25.2258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.91093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4763
  Prefactor  = 0.0001
  norm       = 25.9453
  Prefactor  = 38.1279
  Prefactor  = 2.32805
  Prefactor  = 18.4461
  Normalizat = 0.901066
  Prefactor  = 0.848538
 **********
 **   18 **HESSE 
 **********

 FCN=   4602.025     FROM HESSE     STATUS=OK           624 CALLS     4745 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.946        27.076        .55121E-04   -1.4251    
   2  Prefactor     .10000E-03    35.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     108.85        108.94        .19278E-03   -1.3617    
   6  norm          4.2822        6.8432        .19470E-03   -1.5294    
   7  Prefactor     .10000E-03    8.9781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3981        .12164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.723        10.769        .12235E-03   -1.5053    
  10  Prefactor     .10000E-03    1.6716        .85414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    49.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5218        6351.5        .14931E-02   -1.5197    
  13  norm          14.475        6.1512        .99691E-04   -1.4947    
  14  Prefactor     .10000E-03    38.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.792        172.51        .97437E-04   -1.4888    
  16  norm          .10000E-03    2.4282        .20345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    204.95        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.226        16.677        .79774E-04   -1.4703    
  19  Prefactor     .10000E-03    20.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.2049        .17776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9109        1.9592        .74659E-04   -1.5367    
  22  Prefactor     .10000E-03    11.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.476        31.621        .11340E-03   -1.5001    
  25  Prefactor     .10000E-03    112.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          25.945        15.214        .78645E-04   -1.4689    
  27  Prefactor     38.128        44.367        .64930E-04   -1.4472    
  28  Prefactor     2.3280        .75256        .28979E-04   -1.5403    
  29  Prefactor     18.446        20.719        .93262E-04   -1.4849    
  30  Normalizat    .90107        .41872        .40612E-03   -.96423    
  31  Prefactor     .84854        .17230        .18716E-03   -.97963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17739e-11
Minuit parameter uncertainties:
  1  27.0823
  2  9.84925e-05
  3  1.28129e-05
  4  2.66336e-06
  5  109.14
  6  6.84446
  7  6.864e-06
  8  4.29655e-06
  9  10.7713
  10  4.39945e-06
  11  1.55644e-05
  12  292.575
  13  6.1515
  14  1.91664e-05
  15  108.045
  16  2.49763e-06
  17  0.000958425
  18  16.68
  19  3.66538e-05
  20  5.11051e-06
  21  1.95925
  22  3.02432e-06
  23  2.2905e-05
  24  31.6639
  25  0.000200191
  26  15.2162
  27  44.4053
  28  0.752559
  29  20.7267
  30  0.420241
  31  0.172407
Done.

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

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  1.000e-04  2.498e-06  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:  8.485e-01  1.724e-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:  9.011e-01  4.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/925706/likelihoodResults_409881601_410140801_4FGL_J2147.1+0931_daily_bin658.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) = 4602.02653924
delta logL = -0.00196316307938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4601.24945116
delta logL = 0.775124918836

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62070       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .72143       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90195       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4601.249     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      332 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62109        .58416        .46881E-03    .56422E-03
   2  alpha         5.0000        3.4667        .69450E-01** at limit **
   3  Normalizat    .72170        .39593        .44982E-03    .34372E-05
   4  Prefactor     .90191        .17400        .18208E-03   -.16197E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.621086
  alpha      = 5
  Normalizat = 0.721703
  Prefactor  = 0.901905
 **********
 **   18 **HESSE 
 **********

 FCN=   4601.249     FROM HESSE     STATUS=OK            25 CALLS      357 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62109        .57966        .18753E-04   -1.5550    
   2  alpha         5.0000        3.4674        .13890E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .72170        .39605        .17993E-04   -1.0304    
   4  Prefactor     .90191        .17408        .36416E-04   -.96075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18021e-09
Minuit parameter uncertainties:
  1  0.579661
  2  0.000354389
  3  0.397636
  4  0.174188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925706': 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) = 4601.24945001
delta logL = 0.775126074564

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  6.211e-01  5.797e-01  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  5.000e+00  3.544e-04  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:  9.019e-01  1.742e-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:  7.217e-01  3.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 326.783 9.518
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.50e-07 +/- 1.39e-07
Energy Flux (Free Index): 2.02e-05 +/- 1.88e-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/925706/cmap_HighResolution_409881601_410140801_4FGL_J2147.1+0931_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-05', comment='SUCCESS', energy_flux2='2.02e-05', dlogl='7.75e-01', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-09-27 14:59:33.335780', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.88e-05', EG='0.90', time_epoch_completed='1632779973.34', return_code='0', job_id='925706', GAL2='0.90', EG2='0.72', return_code2='0', photon_flux_error2='1.39e-07', ts2='1.76', photon_index='2.43' WHERE bin_id='658' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:59:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 925706: <4FGL_J2147.1+0931_daily_bin658> in cluster <slac> Done

Job <4FGL_J2147.1+0931_daily_bin658> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 14:45:38 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 14:47:34 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:47:34 2021
Terminated at Mon Sep 27 14:59:34 2021
Results reported at Mon Sep 27 14:59:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2147.1+0931_daily_bin658 326.783 9.5181 409881601 410140801 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 :                                   600.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            836 sec.

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

