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


Performing analysis on: 4FGL_J2147.1+0931_daily_bin676
RA = 326.783, Dec = 9.5181
tmin = 414547201, tmax = 414806401
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='925731', job_status='RUN', time_executed='2021-09-27 14:51:41.080058', time_epoch_executed='1632779501.08' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='676'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925731

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925731/ft1_4FGL_J2147.1+0931_daily_bin676.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925731/ft2_4FGL_J2147.1+0931_daily_bin676.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925731/ft1_4FGL_J2147.1+0931_daily_bin676.fits outfile=/scratch/kocevski/925731/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin676.fits ra=326.783 dec=9.5181 rad=12.0 tmin=414547201.0 tmax=414806401.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.91
user 4.62
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925731/ft1_filtered_4FGL_J2147.1+0931_daily_bin676.fits" evtable="EVENTS" scfile=/scratch/kocevski/925731/ft2_4FGL_J2147.1+0931_daily_bin676.fits sctable="SC_DATA" outfile=/scratch/kocevski/925731/ltcube_414547201_414806401_4FGL_J2147.1+0931_daily_bin676.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/925731/ft2_4FGL_J2147.1+0931_daily_bin676.fits
.....................!
real 11.63
user 11.22
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925731/ft1_filtered_4FGL_J2147.1+0931_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/925731/ft2_4FGL_J2147.1+0931_daily_bin676.fits sctable="SC_DATA" expcube=/scratch/kocevski/925731/ltcube_414547201_414806401_4FGL_J2147.1+0931_daily_bin676.fits outfile=/scratch/kocevski/925731/expmap_414547201_414806401_4FGL_J2147.1+0931_daily_bin676.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/925731/ltcube_414547201_414806401_4FGL_J2147.1+0931_daily_bin676.fits
.....................!
real 158.04
user 152.81
sys 3.89

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/925731/ft1_filtered_4FGL_J2147.1+0931_daily_bin676.fits scfile=/scratch/kocevski/925731/ft2_4FGL_J2147.1+0931_daily_bin676.fits outfile=/scratch/kocevski/925731/cmap_414547201_414806401_4FGL_J2147.1+0931_daily_bin676.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.50
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925731/ft1_filtered_4FGL_J2147.1+0931_daily_bin676.fits scfile=/scratch/kocevski/925731/ft2_4FGL_J2147.1+0931_daily_bin676.fits outfile=/scratch/kocevski/925731/cmap_HighResolution_414547201_414806401_4FGL_J2147.1+0931_daily_bin676.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.49
user 0.35
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.433       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.283       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.930       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.402       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.570       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .86670       1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.184       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.568       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7431       1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.536       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.851       1.0000         .10000E-03   10000.    
    21 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.120       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2286       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    45.064       1.0000         .10000E-03   10000.    
    26 'norm      '    4.3146       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.5528       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1906       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=   4074.994     FROM MIGRAD    STATUS=CONVERGED     87 CALLS     3528 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10217E-03    38.982       -.77069E-04** at limit **
   2  Prefactor     13.425        1.3454       -.23932E-05    .42158E-03
   3  Prefactor     .10002E-03    12.950       -.28088E-04** at limit **
   4  Prefactor     19.261        5.0924       -.12435E-04    .74176E-02
   5  Prefactor     .10075E-03    21.150        .73369E-04** at limit **
   6  norm          .10000E-03    1.6114       -.43812E-06** at limit **
   7  Prefactor     11.924        1.1895       -.17090E-05    .20496E-03
   8  Prefactor     10.397        1.1726       -.10615E-05   -.16443E-02
   9  Prefactor     17.565        1.0794       -.83790E-06   -.53552E-03
  10  Prefactor     .86753        3.3871        .13185E-05   -.48119E-04
  11  Prefactor     58.166        4.0189       -.55563E-05    .95858E-02
  12  Prefactor     .10308E-03    31.263       -.55629E-04** at limit **
  13  norm          11.567        1.0098       -.26294E-06    .68000E-03
  14  Prefactor     .10262E-03    15.218        .28503E-04** at limit **
  15  Prefactor     5.7307        2.7143       -.11360E-04    .18205E-02
  16  norm          .10000E-03    1.2114        .37102E-06** at limit **
  17  norm          15.514        4.0305       -.10432E-04    .35362E-02
  18  Prefactor     .10000E-03    6.8094       -.24246E-05** at limit **
  19  Prefactor     .10004E-03    13.875        .30496E-04** at limit **
  20  Prefactor     17.843        1.0536        .21735E-06   -.27531E-03
  21  norm          .10000E-03    1.0490       -.56224E-06** at limit **
  22  Prefactor     27.083        7.5997       -.15596E-04    .11592E-01
  23  Prefactor     3.2165        1.2739       -.28891E-05   -.42410E-04
  24  Prefactor     .10147E-03    25.817       -.67640E-04** at limit **
  25  Prefactor     45.048        3.5793       -.55324E-05    .69160E-02
  26  norm          4.3133        1.0174       -.74890E-06   -.28963E-04
  27  Prefactor     .10007E-03    18.211        .54606E-04** at limit **
  28  Prefactor     1.5527        .52843        .30938E-06    .19129E-02
  29  Prefactor     .10000E-03    8.8402        .29379E-05** at limit **
  30  Normalizat    .10000E-01    .37536       -.16593E-04** at limit **
  31  Prefactor     1.1905        .82752E-01    .49271E-05   -.33119E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010217
  Prefactor  = 13.4251
  Prefactor  = 0.000100019
  Prefactor  = 19.2611
  Prefactor  = 0.000100751
  norm       = 0.0001
  Prefactor  = 11.9236
  Prefactor  = 10.3972
  Prefactor  = 17.5651
  Prefactor  = 0.867535
  Prefactor  = 58.1659
  Prefactor  = 0.00010308
  norm       = 11.5665
  Prefactor  = 0.000102617
  Prefactor  = 5.73073
  norm       = 0.0001
  norm       = 15.5139
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 17.8434
  norm       = 0.0001
  Prefactor  = 27.0832
  Prefactor  = 3.21653
  Prefactor  = 0.000101471
  Prefactor  = 45.0478
  norm       = 4.31327
  Prefactor  = 0.000100073
  Prefactor  = 1.55269
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.19048
 **********
 **   18 **HESSE 
 **********

 FCN=   4074.994     FROM HESSE     STATUS=OK           690 CALLS     4218 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10217E-03    78.503        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.425        21.641        .27322E-02   -1.4975    
   3  Prefactor     .10002E-03    12.975        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.261        56.352        .22802E-02   -1.4830    
   5  Prefactor     .10075E-03    48.484        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6122        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.924        19.986        .28996E-02   -1.5017    
   8  Prefactor     10.397        10.999        .31058E-02   -1.5063    
   9  Prefactor     17.565        16.491        .23888E-02   -1.4870    
  10  Prefactor     .86753        4.0720        .12686E-01   -1.5522    
  11  Prefactor     58.166        56.472        .13149E-02   -1.4181    
  12  Prefactor     .10308E-03    75.611        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.567        6.1953        .29446E-02   -1.5028    
  14  Prefactor     .10262E-03    36.290        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.7307        469.88        .41900E-02   -1.5229    
  16  norm          .10000E-03    1.2083        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.514        40.756        .25404E-02   -1.4920    
  18  Prefactor     .10000E-03    6.8064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    13.926        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.843        18.533        .23699E-02   -1.4863    
  21  norm          .10000E-03    .75764        .28106E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.083        54.531        .19232E-02   -1.4667    
  23  Prefactor     3.2165        33.940        .56361E-02   -1.5349    
  24  Prefactor     .10147E-03    30.012        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     45.048        79.997        .14931E-02   -1.4365    
  26  norm          4.3133        8.6081        .48485E-02   -1.5293    
  27  Prefactor     .10007E-03    54.023        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.5527        .53237        .59493E-02   -1.5459    
  29  Prefactor     .10000E-03    8.8319        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .19611        .32252       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.1905        .12055        .34858E-01   -.86625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47023e-06
Minuit parameter uncertainties:
  1  0.0261362
  2  21.6535
  3  0.000997029
  4  56.5078
  5  0.0120783
  6  1.66686e-05
  7  19.9974
  8  11.0013
  9  16.4953
  10  3.75924
  11  56.5244
  12  0.0305571
  13  6.19568
  14  0.0195031
  15  104.644
  16  1.42752e-05
  17  40.8295
  18  7.98677e-05
  19  0.00140503
  20  18.5389
  21  1.37266e-05
  22  54.6314
  23  20.9116
  24  0.0132953
  25  80.1886
  26  8.61061
  27  0.00398409
  28  0.532368
  29  6.23688e-05
  30  8.8435e-06
  31  0.120577
Done.

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

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  1.000e-04  1.428e-05  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:  1.190e+00  1.206e-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  8.843e-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: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/925731/likelihoodResults_414547201_414806401_4FGL_J2147.1+0931_daily_bin676.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4074.9975571
delta logL = -0.00381655598949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4074.99374094
delta logL = -4.00888893637e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4300       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1904       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=   4074.994     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      236 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4931        .68503E-03** at limit **
   2  alpha         2.3170        3.5758        .16469        .22470E-07
   3  Normalizat    .10000E-01    .37571        .11960E-01** at limit **
   4  Prefactor     1.1905        .80177E-01    .15407E-03    .30137E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.31698
  Normalizat = 0.01
  Prefactor  = 1.19048
 **********
 **   18 **HESSE 
 **********

 FCN=   4074.994     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2194        .13701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3170        3.6187        .65875E-02   -.73273E-01
   3  Normalizat    .10000E-01    .37606        .23920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1905        .80034E-01    .30815E-04   -.86625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29489e-10
Minuit parameter uncertainties:
  1  2.90923e-06
  2  161.022
  3  9.99192e-06
  4  0.0800419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925731': 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) = 4074.99374029
delta logL = 2.48860487773e-07

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  1.000e-04  2.909e-06  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  2.317e+00  1.610e+02  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:  1.190e+00  8.004e-02  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  9.992e-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/925731/cmap_HighResolution_414547201_414806401_4FGL_J2147.1+0931_daily_bin676.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-05', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-27 15:00:47.283102', job_id='925731', GAL2='1.19', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632780047.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='676' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 15:00:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 925731: <4FGL_J2147.1+0931_daily_bin676> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2147.1+0931_daily_bin676 326.783 9.5181 414547201 414806401 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 :                                   539.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            907 sec.

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

