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


Performing analysis on: 4FGL_J2147.1+0931_daily_bin318
RA = 326.783, Dec = 9.5181
tmin = 321753601, tmax = 322012801
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='924052', job_status='RUN', time_executed='2021-09-27 14:44:52.148823', time_epoch_executed='1632779092.15' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924052

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924052/ft1_4FGL_J2147.1+0931_daily_bin318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924052/ft2_4FGL_J2147.1+0931_daily_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924052/ft1_4FGL_J2147.1+0931_daily_bin318.fits outfile=/scratch/kocevski/924052/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin318.fits ra=326.783 dec=9.5181 rad=12.0 tmin=321753601.0 tmax=322012801.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 2.95
user 2.64
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924052/ft1_filtered_4FGL_J2147.1+0931_daily_bin318.fits" evtable="EVENTS" scfile=/scratch/kocevski/924052/ft2_4FGL_J2147.1+0931_daily_bin318.fits sctable="SC_DATA" outfile=/scratch/kocevski/924052/ltcube_321753601_322012801_4FGL_J2147.1+0931_daily_bin318.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/924052/ft2_4FGL_J2147.1+0931_daily_bin318.fits
.....................!
real 11.21
user 10.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924052/ft1_filtered_4FGL_J2147.1+0931_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/924052/ft2_4FGL_J2147.1+0931_daily_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/924052/ltcube_321753601_322012801_4FGL_J2147.1+0931_daily_bin318.fits outfile=/scratch/kocevski/924052/expmap_321753601_322012801_4FGL_J2147.1+0931_daily_bin318.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/924052/ltcube_321753601_322012801_4FGL_J2147.1+0931_daily_bin318.fits
.....................!
real 156.16
user 151.19
sys 4.01

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/924052/ft1_filtered_4FGL_J2147.1+0931_daily_bin318.fits scfile=/scratch/kocevski/924052/ft2_4FGL_J2147.1+0931_daily_bin318.fits outfile=/scratch/kocevski/924052/cmap_321753601_322012801_4FGL_J2147.1+0931_daily_bin318.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.46
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/924052/ft1_filtered_4FGL_J2147.1+0931_daily_bin318.fits scfile=/scratch/kocevski/924052/ft2_4FGL_J2147.1+0931_daily_bin318.fits outfile=/scratch/kocevski/924052/cmap_HighResolution_321753601_322012801_4FGL_J2147.1+0931_daily_bin318.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/924052/ft1_filtered_4FGL_J2147.1+0931_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/924052/ft2_4FGL_J2147.1+0931_daily_bin318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/924052/Model_4FGL_J2147.1+0931_daily_bin318.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/924052/ft1_filtered_4FGL_J2147.1+0931_daily_bin318.fits.....................!
real 56.12
user 54.50
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    60.437       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11232E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.8904       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8376       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12498E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .82138       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.7972       1.0000         .10000E-03   10000.    
    14 'Prefactor '    84.174       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.4649       1.0000         .10000E-03   10000.    
    17 'norm      '    6.2137       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7379       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.646       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.106       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.271       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.8136       1.0000         .10000E-03   10000.    
    26 'norm      '    1.3072       1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.233       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .45079       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.2691       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3664       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .74452       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=   7143.695     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     4464 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    3.4782       -.90694E-05** at limit **
   2  Prefactor     60.424        1.9220       -.13359E-05    .12142E-03
   3  Prefactor     .10044E-03    8.1096        .12475E-04** at limit **
   4  Prefactor     .10065E-03    85.046        .98093E-04** at limit **
   5  Prefactor     .10139E-03    169.80       -.16871E-03** at limit **
   6  norm          8.8904        4.7268       -.10227E-05   -.53339E-03
   7  Prefactor     .10000E-03    9.4648        .31170E-06** at limit **
   8  Prefactor     1.8366        5.2917        .45996E-05   -.14407E-02
   9  Prefactor     .10023E-03    13.854       -.31370E-04** at limit **
  10  Prefactor     .82092        3.3502        .13673E-05   -.16550E-04
  11  Prefactor     .10000E-03    13.243        .35367E-05** at limit **
  12  Prefactor     .10049E-03    30.957       -.34072E-04** at limit **
  13  norm          9.7971        3.1693       -.28268E-06   -.21049E-04
  14  Prefactor     84.174        1.0044       -.81047E-07    .13563E-03
  15  Prefactor     .10104E-03    13.156       -.87995E-05** at limit **
  16  norm          5.4657        3.1020       -.37489E-06    .62754E-04
  17  norm          6.2132        1.0223       -.55849E-06    .52576E-04
  18  Prefactor     .10007E-03    3.4497        .74936E-05** at limit **
  19  Prefactor     .10010E-03    12.688        .29440E-04** at limit **
  20  Prefactor     3.7390        1.0207        .57610E-07    .86492E-04
  21  norm          .10000E-03    .61174       -.52293E-06** at limit **
  22  Prefactor     19.648        1.0251       -.29894E-06   -.13874E-03
  23  Prefactor     14.106        1.0037        .34401E-07    .13077E-04
  24  Prefactor     17.272        1.0139       -.24338E-06   -.14454E-04
  25  Prefactor     6.8144        1.0104       -.29788E-06   -.22244E-04
  26  norm          1.3076        3.5887        .68004E-07   -.20285E-04
  27  Prefactor     14.234        1.0177       -.25698E-06    .92121E-05
  28  Prefactor     .45080        .20264       -.53393E-07   -.99132E-04
  29  Prefactor     4.2692        1.0117       -.26272E-06   -.54723E-04
  30  Normalizat    1.3663        .28469       -.37427E-07    .61066E-04
  31  Prefactor     .74455        .13050        .24522E-05    .10754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100074
  Prefactor  = 60.424
  Prefactor  = 0.000100444
  Prefactor  = 0.00010065
  Prefactor  = 0.000101394
  norm       = 8.89041
  Prefactor  = 0.0001
  Prefactor  = 1.83658
  Prefactor  = 0.000100232
  Prefactor  = 0.820922
  Prefactor  = 0.0001
  Prefactor  = 0.000100487
  norm       = 9.79714
  Prefactor  = 84.1737
  Prefactor  = 0.000101043
  norm       = 5.46569
  norm       = 6.21321
  Prefactor  = 0.000100074
  Prefactor  = 0.000100096
  Prefactor  = 3.73896
  norm       = 0.0001
  Prefactor  = 19.6475
  Prefactor  = 14.1062
  Prefactor  = 17.2723
  Prefactor  = 6.81438
  norm       = 1.30755
  Prefactor  = 14.2343
  Prefactor  = 0.450803
  Prefactor  = 4.26915
  Normalizat = 1.36629
  Prefactor  = 0.744554
 **********
 **   18 **HESSE 
 **********

 FCN=   7143.695     FROM HESSE     STATUS=OK           698 CALLS     5162 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    5.6656        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     60.424        29.382        .12903E-02   -1.4152    
   3  Prefactor     .10044E-03    19.731        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10065E-03    87.165        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10139E-03    179.62        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.8904        4.7375        .33607E-02   -1.5112    
   7  Prefactor     .10000E-03    9.4480        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8366        5.9604        .76940E-02   -1.5437    
   9  Prefactor     .10023E-03    4.3946        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .82092        3.3711        .12519E-01   -1.5527    
  11  Prefactor     .10000E-03    13.239        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10049E-03    35.029        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.7971        3.2094        .32006E-02   -1.5082    
  14  Prefactor     84.174        81.524        .10946E-02   -1.3870    
  15  Prefactor     .10104E-03    26.517        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.4657        3.4191        .42971E-02   -1.5240    
  17  norm          6.2132        24.039        .40261E-02   -1.5209    
  18  Prefactor     .10007E-03    5.6026        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10010E-03    22.942        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.7390        9.7685        .52211E-02   -1.5321    
  21  norm          .10000E-03    .31422        .26779E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.648        16.407        .22591E-02   -1.4821    
  23  Prefactor     14.106        16.084        .26661E-02   -1.4957    
  24  Prefactor     17.272        17.630        .24094E-02   -1.4877    
  25  Prefactor     6.8144        17.192        .38428E-02   -1.5186    
  26  norm          1.3076        3.6499        .96479E-02   -1.5479    
  27  Prefactor     14.234        15.435        .26542E-02   -1.4953    
  28  Prefactor     .45080        .20701        .55853E-02   -1.5574    
  29  Prefactor     4.2692        8.1149        .48749E-02   -1.5295    
  30  Normalizat    1.3663        .24974        .71689E-01   -.81609    
  31  Prefactor     .74455        .11002        .42991E-01   -1.0181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.93842e-07
Minuit parameter uncertainties:
  1  0.00129305
  2  29.389
  3  0.00592258
  4  0.015081
  5  0.0317409
  6  4.7377
  7  7.27392e-06
  8  5.96237
  9  0.00201885
  10  3.32723
  11  9.69258e-05
  12  0.00826772
  13  3.20942
  14  81.6328
  15  0.010523
  16  3.41927
  17  24.076
  18  0.0012911
  19  0.00296834
  20  9.77267
  21  1.18263e-07
  22  16.4108
  23  16.0887
  24  17.635
  25  17.205
  26  3.65053
  27  15.4397
  28  0.207011
  29  8.11699
  30  0.249958
  31  0.110049
Done.

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

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  5.466e+00  3.419e+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:  7.446e-01  1.100e-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.366e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.30
Ra Dec: 326.783 9.518
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 6.56e-08
Energy Flux (Fixed Index): 2.95e-05 +/- 1.85e-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) = 7142.96227268
delta logL = 0.732288111341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7142.9439787
delta logL = 0.750582094233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6793       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1845       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77145       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=   7142.944     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      269 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6793        3.0936        .79407E-04    .17425E-02
   2  alpha         3.1845        .69096        .15096E-01    .88281E-04
   3  Normalizat    1.2810        .28659        .32562E-03   -.28525E-04
   4  Prefactor     .77145        .13288        .19391E-03   -.56284E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.67925
  alpha      = 3.18452
  Normalizat = 1.28097
  Prefactor  = 0.771451
 **********
 **   18 **HESSE 
 **********

 FCN=   7142.944     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6793        2.9371        .31763E-05   -1.5275    
   2  alpha         3.1845        .65625        .60383E-03    .27735    
   3  Normalizat    1.2810        .28692        .13025E-04   -.84136    
   4  Prefactor     .77145        .13296        .77563E-05   -1.0079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72768e-10
Minuit parameter uncertainties:
  1  2.93717
  2  0.664679
  3  0.28728
  4  0.133012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924052': 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) = 7142.94397869
delta logL = 0.750582108556

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  4.679e+00  2.937e+00  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  3.185e+00  6.647e-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:  7.715e-01  1.330e-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.281e+00  2.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.06
Ra Dec: 326.783 9.518
Photon Index (Free Index): 3.18 +/- 0.66
Photon Flux (Free Index): 1.67e-07 +/- 8.48e-08
Energy Flux (Free Index): 3.12e-05 +/- 1.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/924052/cmap_HighResolution_321753601_322012801_4FGL_J2147.1+0931_daily_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='3.12e-05', photon_flux_error='6.56e-08', dlogl='7.51e-01', energy_flux='2.95e-05', photon_flux2='1.67e-07', job_status='DONE', time_completed='2021-09-27 14:56:51.659065', photon_index_error2='0.66', photon_index2='3.18', ts='5.30', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='1.37', time_epoch_completed='1632779811.66', return_code='0', job_id='924052', GAL2='0.77', EG2='1.28', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='8.48e-08', ts2='7.06', photon_index='2.43' WHERE bin_id='318' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:56:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 924052: <4FGL_J2147.1+0931_daily_bin318> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2147.1+0931_daily_bin318 326.783 9.5181 321753601 322012801 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 :                                   715.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            984 sec.

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

