/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 1 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 = 7391
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2147.1+0931_daily_bin294
RA = 326.783, Dec = 9.5181
tmin = 315532801, tmax = 315792001
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='924016', job_status='RUN', time_executed='2021-09-27 14:41:25.232686', time_epoch_executed='1632778885.23' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924016

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924016/ft1_4FGL_J2147.1+0931_daily_bin294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924016/ft2_4FGL_J2147.1+0931_daily_bin294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924016/ft1_4FGL_J2147.1+0931_daily_bin294.fits outfile=/scratch/kocevski/924016/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin294.fits ra=326.783 dec=9.5181 rad=12.0 tmin=315532801.0 tmax=315792001.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.00
user 3.56
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924016/ft1_filtered_4FGL_J2147.1+0931_daily_bin294.fits" evtable="EVENTS" scfile=/scratch/kocevski/924016/ft2_4FGL_J2147.1+0931_daily_bin294.fits sctable="SC_DATA" outfile=/scratch/kocevski/924016/ltcube_315532801_315792001_4FGL_J2147.1+0931_daily_bin294.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/924016/ft2_4FGL_J2147.1+0931_daily_bin294.fits
.....................!
real 13.25
user 12.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924016/ft1_filtered_4FGL_J2147.1+0931_daily_bin294.fits evtable="EVENTS" scfile=/scratch/kocevski/924016/ft2_4FGL_J2147.1+0931_daily_bin294.fits sctable="SC_DATA" expcube=/scratch/kocevski/924016/ltcube_315532801_315792001_4FGL_J2147.1+0931_daily_bin294.fits outfile=/scratch/kocevski/924016/expmap_315532801_315792001_4FGL_J2147.1+0931_daily_bin294.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/924016/ltcube_315532801_315792001_4FGL_J2147.1+0931_daily_bin294.fits
.....................!
real 193.92
user 185.82
sys 4.94

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/924016/ft1_filtered_4FGL_J2147.1+0931_daily_bin294.fits scfile=/scratch/kocevski/924016/ft2_4FGL_J2147.1+0931_daily_bin294.fits outfile=/scratch/kocevski/924016/cmap_315532801_315792001_4FGL_J2147.1+0931_daily_bin294.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/924016/ft1_filtered_4FGL_J2147.1+0931_daily_bin294.fits scfile=/scratch/kocevski/924016/ft2_4FGL_J2147.1+0931_daily_bin294.fits outfile=/scratch/kocevski/924016/cmap_HighResolution_315532801_315792001_4FGL_J2147.1+0931_daily_bin294.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.269       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22730E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.738       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26366E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    4.8075       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14182E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8783       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23319E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    309.69       1.0000         .10000E-03   10000.    
    13 'norm      '    12.232       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .90412E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.655       1.0000         .10000E-03   10000.    
    16 'norm      '    9.4990       1.0000         .10000E-03   10000.    
    17 'norm      '    30.353       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0797       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .45587E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .31679E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    3.1238       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.834       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .52196E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.667       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .30581       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .12143E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.7427       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .67444       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=   6722.977     FROM MIGRAD    STATUS=CONVERGED   1571 CALLS     4405 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.498        .18142E-02** at limit **
   2  Prefactor     10.121        17.074        .12503E-03   -.23640E-04
   3  Prefactor     .10000E-03    11.344        .20111E-02** at limit **
   4  Prefactor     14.997        27.143        .10433E-03   -.15691E-04
   5  Prefactor     .10000E-03    24.016        .19964E-02** at limit **
   6  norm          4.6384        8.2286        .18348E-03   -.83336E-04
   7  Prefactor     .10000E-03    20.372        .20514E-02** at limit **
   8  Prefactor     .10000E-03    2.6724        .13060E-02** at limit **
   9  Prefactor     1.9317        9.3573        .30378E-03   -.76082E-04
  10  Prefactor     .10000E-03    1.0496        .81883E-03** at limit **
  11  Prefactor     .10000E-03    27.812        .18142E-02** at limit **
  12  Prefactor     363.35        254.68        .11545E-03   -.10143E-04
  13  norm          11.916        4.8644        .10410E-03   -.28876E-03
  14  Prefactor     .10000E-03    58.479        .18260E-02** at limit **
  15  Prefactor     31.214        52.051        .72366E-04    .56744E-04
  16  norm          9.5047        3.9473        .48446E-03   -.75448E-03
  17  norm          30.429        30.648        .72725E-04   -.70503E-04
  18  Prefactor     5.0711        5.9584        .89199E-03    .14530E-04
  19  Prefactor     .10000E-03    34.792        .19327E-02** at limit **
  20  Prefactor     .98287E-01    12.510        .77680E-01    .18716E-03
  21  norm          3.1271        1.6484        .72856E-04   -.18632E-03
  22  Prefactor     15.987        32.871        .10065E-03   -.12515E-03
  23  Prefactor     .10000E-03    4.9187        .17755E-02** at limit **
  24  Prefactor     .10000E-03    7.3009        .18142E-02** at limit **
  25  Prefactor     24.316        44.155        .80655E-04    .51730E-04
  26  norm          .10000E-03    3.1771        .14259E-02** at limit **
  27  Prefactor     .10000E-03    5.4854        .18142E-02** at limit **
  28  Prefactor     .30615        .21516        .31097E-04   -.31660E-03
  29  Prefactor     .10000E-03    4.9187        .17726E-02** at limit **
  30  Normalizat    1.7440        .34297        .32058E-03   -.44020E-03
  31  Prefactor     .67272        .14672        .22029E-03   -.18785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.1209
  Prefactor  = 0.0001
  Prefactor  = 14.9972
  Prefactor  = 0.0001
  norm       = 4.6384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.93173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 363.345
  norm       = 11.9162
  Prefactor  = 0.000100001
  Prefactor  = 31.2145
  norm       = 9.50474
  norm       = 30.4286
  Prefactor  = 5.0711
  Prefactor  = 0.0001
  Prefactor  = 0.0982871
  norm       = 3.12714
  Prefactor  = 15.9867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3159
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.306148
  Prefactor  = 0.0001
  Normalizat = 1.74397
  Prefactor  = 0.672715
 **********
 **   18 **HESSE 
 **********

 FCN=   6722.977     FROM HESSE     STATUS=OK           600 CALLS     5005 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.499        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.121        17.074        .50013E-05   -1.5072    
   3  Prefactor     .10000E-03    11.344        .40221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.997        27.145        .41732E-05   -1.4933    
   5  Prefactor     .10000E-03    24.016        .39928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.6384        8.2279        .73394E-05   -1.5277    
   7  Prefactor     .10000E-03    20.375        .41029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6726        .26121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9317        9.3522        .12151E-04   -1.5430    
  10  Prefactor     .10000E-03    1.0497        .16377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     363.35        254.68        .23090E-04   -1.1872    
  13  norm          11.916        4.8641        .41638E-05   -1.5017    
  14  Prefactor     .10000E-03    58.480        .36521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.214        52.040        .14473E-04   -1.4590    
  16  norm          9.5047        3.9472        .19378E-04   -1.5091    
  17  norm          30.429        30.650        .29090E-05   -1.4604    
  18  Prefactor     5.0711        5.9566        .35679E-04   -1.5258    
  19  Prefactor     .10000E-03    34.795        .38654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .98287E-01    11.599        .82156E-01   -1.5645    
  21  norm          3.1271        1.6484        .29142E-05   -1.5354    
  22  Prefactor     15.987        32.865        .40262E-05   -1.4908    
  23  Prefactor     .10000E-03    4.9187        .35511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.3014        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     24.316        44.154        .32262E-05   -1.4721    
  26  norm          .10000E-03    3.1772        .28518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.4855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .30615        .21515        .12439E-05   -1.5597    
  29  Prefactor     .10000E-03    4.9194        .35451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.7440        .34335        .64116E-04   -.71135    
  31  Prefactor     .67272        .14684        .88118E-05   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30811e-09
Minuit parameter uncertainties:
  1  3.32192e-05
  2  17.0818
  3  2.63458e-05
  4  27.1671
  5  1.89796e-05
  6  8.22995
  7  8.63612e-05
  8  1.21967e-05
  9  8.50274
  10  2.13124e-06
  11  4.36219e-05
  12  255.47
  13  4.86425
  14  0.000370202
  15  52.116
  16  3.94726
  17  30.6655
  18  5.95725
  19  7.78278e-05
  20  2.13482
  21  1.64842
  22  32.9021
  23  8.82577e-06
  24  3.14191e-05
  25  44.2137
  26  2.7496e-06
  27  1.39175e-06
  28  0.215155
  29  3.68728e-06
  30  0.343819
  31  0.146922
Done.

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

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  9.505e+00  3.947e+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.727e-01  1.469e-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.744e+00  3.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.17
Ra Dec: 326.783 9.518
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.83e-07 +/- 7.58e-08
Energy Flux (Fixed Index): 5.14e-05 +/- 2.13e-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) = 6722.97049496
delta logL = 0.0065642096306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6722.97025843
delta logL = 0.00680074264983

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5054       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3850       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67060       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=   6722.970     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      201 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5367        4.9213        .32496E-02    .13366E-03
   2  alpha         2.3849        .48009        .28762       -.59848E-05
   3  Normalizat    1.7503        .26993        .72365E-01    .39105E-05
   4  Prefactor     .67062        .12204        .42008E-01    .17963E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.53669
  alpha      = 2.38492
  Normalizat = 1.75026
  Prefactor  = 0.670618
 **********
 **   18 **HESSE 
 **********

 FCN=   6722.970     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .24E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5367        3.8647        .97425E-04   -1.5090    
   2  alpha         2.3849        .40285        .11916E-01   -.46048E-01
   3  Normalizat    1.7503        .32480        .32014E-03   -.70969    
   4  Prefactor     .67062        .14572        .22060E-03   -1.0469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43491e-14
Minuit parameter uncertainties:
  1  3.86481
  2  0.404622
  3  0.325202
  4  0.145801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924016': 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) = 6722.97022553
delta logL = 0.0068336491513

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  9.537e+00  3.865e+00  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  2.385e+00  4.046e-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.706e-01  1.458e-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.750e+00  3.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.16
Ra Dec: 326.783 9.518
Photon Index (Free Index): 2.38 +/- 0.40
Photon Flux (Free Index): 1.77e-07 +/- 8.41e-08
Energy Flux (Free Index): 5.19e-05 +/- 2.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/924016/cmap_HighResolution_315532801_315792001_4FGL_J2147.1+0931_daily_bin294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.83e-07', energy_flux2='5.19e-05', photon_flux_error='7.58e-08', dlogl='6.83e-03', energy_flux='5.14e-05', photon_flux2='1.77e-07', job_status='DONE', time_completed='2021-09-27 14:55:29.724905', photon_index_error2='0.40', photon_index2='2.38', ts='11.17', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='1.74', time_epoch_completed='1632779729.72', return_code='0', job_id='924016', GAL2='0.67', EG2='1.75', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='8.41e-08', ts2='11.16', photon_index='2.43' WHERE bin_id='294' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:55:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 924016: <4FGL_J2147.1+0931_daily_bin294> in cluster <slac> Done

Job <4FGL_J2147.1+0931_daily_bin294> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 14:40:26 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 14:41:16 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:41:16 2021
Terminated at Mon Sep 27 14:55:30 2021
Results reported at Mon Sep 27 14:55:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2147.1+0931_daily_bin294 326.783 9.5181 315532801 315792001 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 :                                   832.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            904 sec.

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

