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


Performing analysis on: 4FGL_J2147.1+0931_daily_bin836
RA = 326.783, Dec = 9.5181
tmin = 456019201, tmax = 456278401
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='926967', job_status='RUN', time_executed='2021-09-27 14:53:53.833604', time_epoch_executed='1632779633.83' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926967

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926967/ft1_4FGL_J2147.1+0931_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926967/ft2_4FGL_J2147.1+0931_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926967/ft1_4FGL_J2147.1+0931_daily_bin836.fits outfile=/scratch/kocevski/926967/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin836.fits ra=326.783 dec=9.5181 rad=12.0 tmin=456019201.0 tmax=456278401.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.98
user 6.68
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/926967/ft2_4FGL_J2147.1+0931_daily_bin836.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/926967/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin836.fits evtable="EVENTS" outfile="/scratch/kocevski/926967/ft1_filtered_4FGL_J2147.1+0931_daily_bin836.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/926967/ft1_filtered_4FGL_J2147.1+0931_daily_bin836.fits" evtable="EVENTS" scfile=/scratch/kocevski/926967/ft2_4FGL_J2147.1+0931_daily_bin836.fits sctable="SC_DATA" outfile=/scratch/kocevski/926967/ltcube_456019201_456278401_4FGL_J2147.1+0931_daily_bin836.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/926967/ft2_4FGL_J2147.1+0931_daily_bin836.fits
.....................!
real 13.57
user 13.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926967/ft1_filtered_4FGL_J2147.1+0931_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/926967/ft2_4FGL_J2147.1+0931_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/926967/ltcube_456019201_456278401_4FGL_J2147.1+0931_daily_bin836.fits outfile=/scratch/kocevski/926967/expmap_456019201_456278401_4FGL_J2147.1+0931_daily_bin836.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/926967/ltcube_456019201_456278401_4FGL_J2147.1+0931_daily_bin836.fits
.....................!
real 191.16
user 185.85
sys 4.73

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/926967/ft1_filtered_4FGL_J2147.1+0931_daily_bin836.fits scfile=/scratch/kocevski/926967/ft2_4FGL_J2147.1+0931_daily_bin836.fits outfile=/scratch/kocevski/926967/cmap_456019201_456278401_4FGL_J2147.1+0931_daily_bin836.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926967/ft1_filtered_4FGL_J2147.1+0931_daily_bin836.fits scfile=/scratch/kocevski/926967/ft2_4FGL_J2147.1+0931_daily_bin836.fits outfile=/scratch/kocevski/926967/cmap_HighResolution_456019201_456278401_4FGL_J2147.1+0931_daily_bin836.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.549       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46782E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.405       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.045       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21818E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1783       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.994       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.1047       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.045       1.0000         .10000E-03   10000.    
    16 'norm      '    3.5288       1.0000         .10000E-03   10000.    
    17 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .34257E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.135       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.0401       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4242       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15028E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11064E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.5096       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .18603       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.2846       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.6141       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .64543       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=   6082.576     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4176 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.181       -.15820E-06** at limit **
   2  Prefactor     16.544        18.640       -.42938E-06    .43468E-04
   3  Prefactor     .10000E-03    248.61       -.75754E-04** at limit **
   4  Prefactor     14.410        29.315       -.49863E-06   -.12735E-04
   5  Prefactor     .10002E-03    59.660        .56014E-05** at limit **
   6  norm          14.045        8.4482        .48713E-07    .10770E-03
   7  Prefactor     .10000E-03    9.1883       -.14413E-06** at limit **
   8  Prefactor     .10067E-03    5.6267        .67591E-05** at limit **
   9  Prefactor     6.1793        9.8716        .25191E-06    .91160E-04
  10  Prefactor     .10000E-03    1.2183       -.18947E-06** at limit **
  11  Prefactor     12.017        33.831       -.28614E-05   -.72097E-04
  12  Prefactor     .10002E-03    43.890       -.56449E-05** at limit **
  13  norm          9.1051        3.7183       -.14881E-05    .99510E-03
  14  Prefactor     .10000E-03    32.307        .77432E-06** at limit **
  15  Prefactor     25.035        45.077        .39964E-06    .13242E-03
  16  norm          3.5297        2.2593        .22438E-07   -.25251E-04
  17  norm          .10000E-03    70.765        .35144E-05** at limit **
  18  Prefactor     .10000E-03    5.6458        .13053E-05** at limit **
  19  Prefactor     21.124        28.361        .14786E-05    .43448E-05
  20  Prefactor     .10000E-03    4.3747       -.23717E-07** at limit **
  21  norm          3.0401        1.6372        .22047E-07    .35287E-03
  22  Prefactor     1.4610        102.04       -.92378E-05    .94281E-04
  23  Prefactor     .10000E-03    9.8820       -.28291E-06** at limit **
  24  Prefactor     .10003E-03    98.030       -.18176E-04** at limit **
  25  Prefactor     .10002E-03    61.182        .75168E-05** at limit **
  26  norm          6.5118        9.4747       -.11015E-05   -.15814E-03
  27  Prefactor     .10000E-03    9.1699       -.57950E-09** at limit **
  28  Prefactor     .18597        .17799       -.66074E-07   -.58332E-03
  29  Prefactor     7.2839        7.0707        .64278E-07    .92349E-05
  30  Normalizat    1.6132        .27037        .83698E-06    .20821E-03
  31  Prefactor     .64598        .11842        .32182E-06    .46978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.5436
  Prefactor  = 0.000100001
  Prefactor  = 14.4099
  Prefactor  = 0.000100018
  norm       = 14.0447
  Prefactor  = 0.0001
  Prefactor  = 0.000100674
  Prefactor  = 6.1793
  Prefactor  = 0.0001
  Prefactor  = 12.017
  Prefactor  = 0.000100017
  norm       = 9.10508
  Prefactor  = 0.0001
  Prefactor  = 25.0353
  norm       = 3.52973
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 21.1244
  Prefactor  = 0.0001
  norm       = 3.04009
  Prefactor  = 1.46097
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.000100024
  norm       = 6.51183
  Prefactor  = 0.0001
  Prefactor  = 0.185971
  Prefactor  = 7.28392
  Normalizat = 1.61315
  Prefactor  = 0.645976
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.576     FROM HESSE     STATUS=OK           632 CALLS     4808 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.544        18.185        .98454E-04   -1.4894    
   3  Prefactor     .10000E-03    242.56        .69473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.410        29.306        .10553E-03   -1.4949    
   5  Prefactor     .10002E-03    60.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.045        8.4443        .10688E-03   -1.4958    
   7  Prefactor     .10000E-03    9.1963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10067E-03    6.9293        .48535E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1793        9.8316        .16151E-03   -1.5211    
  10  Prefactor     .10000E-03    1.2216        .84032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.017        34.009        .11567E-03   -1.5015    
  12  Prefactor     .10002E-03    44.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.1051        3.7470        .44667E-03   -1.5104    
  14  Prefactor     .10000E-03    32.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.035        44.291        .80045E-04   -1.4707    
  16  norm          3.5297        2.2598        .90345E-04   -1.5332    
  17  norm          .10000E-03    73.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.890        .34931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.124        28.350        .87124E-04   -1.4788    
  20  Prefactor     .10000E-03    4.3817        .15931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.0401        1.6306        .68157E-04   -1.5359    
  22  Prefactor     1.4610        103.39        .36231E-03   -1.5466    
  23  Prefactor     .10000E-03    9.9061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10003E-03    102.14        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10002E-03    62.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.5118        9.4734        .15730E-03   -1.5198    
  27  Prefactor     .10000E-03    9.1950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .18597        .16968        .31061E-03   -1.5622    
  29  Prefactor     7.2839        7.0698        .14861E-03   -1.5168    
  30  Normalizat    1.6132        .32136        .30247E-03   -.74647    
  31  Prefactor     .64598        .13994        .20853E-03   -1.0568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7645e-09
Minuit parameter uncertainties:
  1  1.86105e-05
  2  18.1908
  3  0.000850609
  4  29.3348
  5  0.00210244
  6  8.445
  7  1.35805e-05
  8  0.00432202
  9  9.83419
  10  1.21095e-06
  11  34.0637
  12  0.00175165
  13  3.74708
  14  0.000207005
  15  44.3492
  16  2.25983
  17  0.000222112
  18  0.000559189
  19  28.3681
  20  9.5053e-06
  21  1.63067
  22  24.6244
  23  1.71805e-05
  24  0.00325593
  25  0.00244219
  26  9.47559
  27  8.34509e-06
  28  0.169679
  29  7.07058
  30  0.321773
  31  0.140014
Done.

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

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  3.530e+00  2.260e+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

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  6.460e-01  1.400e-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.613e+00  3.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.01
Ra Dec: 326.783 9.518
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 6.78e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.22e-05

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) = 6082.21228998
delta logL = 0.363458343899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6082.18219314
delta logL = 0.393555188754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9559       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8678       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63830       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.

 FCN=   6082.182     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9578        1.9659        .59050E-02    .13560E-03
   2  alpha         1.8687        .46117        .37421       -.44982E-04
   3  Normalizat    1.6423        .25253        .67887E-01    .35793E-04
   4  Prefactor     .63830        .11646        .41574E-01    .77460E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.95776
  alpha      = 1.86871
  Normalizat = 1.64234
  Prefactor  = 0.638303
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.182     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9578        2.2968        .86476E-04   -1.5364    
   2  alpha         1.8687        .60993        .14555E-01   -.25528    
   3  Normalizat    1.6423        .29944        .30029E-03   -.73854    
   4  Prefactor     .63830        .13787        .20967E-03   -1.0600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34592e-11
Minuit parameter uncertainties:
  1  2.29686
  2  0.616581
  3  0.299764
  4  0.137939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926967': 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) = 6082.18219199
delta logL = 0.39355633826

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  2.958e+00  2.297e+00  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  1.869e+00  6.166e-01  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:  6.383e-01  1.379e-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.642e+00  2.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.78
Ra Dec: 326.783 9.518
Photon Index (Free Index): 1.87 +/- 0.62
Photon Flux (Free Index): 4.18e-08 +/- 3.80e-08
Energy Flux (Free Index): 2.30e-05 +/- 1.76e-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/926967/cmap_HighResolution_456019201_456278401_4FGL_J2147.1+0931_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.78e-08', energy_flux2='2.30e-05', photon_flux_error='4.34e-08', dlogl='3.94e-01', energy_flux='1.91e-05', photon_flux2='4.18e-08', job_status='DONE', time_completed='2021-09-27 15:06:52.130641', photon_index_error2='0.62', photon_index2='1.87', ts='7.01', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='1.76e-05', EG='1.61', time_epoch_completed='1632780412.13', return_code='0', job_id='926967', GAL2='0.64', EG2='1.64', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='3.80e-08', ts2='7.78', photon_index='2.43' WHERE bin_id='836' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 15:06:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 926967: <4FGL_J2147.1+0931_daily_bin836> in cluster <slac> Done

Job <4FGL_J2147.1+0931_daily_bin836> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 14:50:15 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 14:50:27 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:50:27 2021
Terminated at Mon Sep 27 15:06:52 2021
Results reported at Mon Sep 27 15:06:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2147.1+0931_daily_bin836 326.783 9.5181 456019201 456278401 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 :                                   775.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             233.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            997 sec.

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

