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


Performing analysis on: 4FGL_J2147.1+0931_daily_bin745
RA = 326.783, Dec = 9.5181
tmin = 432432001, tmax = 432691201
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='925829', job_status='RUN', time_executed='2021-09-27 14:50:59.038689', time_epoch_executed='1632779459.04' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925829/ft1_4FGL_J2147.1+0931_daily_bin745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925829/ft2_4FGL_J2147.1+0931_daily_bin745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925829/ft1_4FGL_J2147.1+0931_daily_bin745.fits outfile=/scratch/kocevski/925829/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin745.fits ra=326.783 dec=9.5181 rad=12.0 tmin=432432001.0 tmax=432691201.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.10
user 3.80
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925829/ft1_filtered_4FGL_J2147.1+0931_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/925829/ft2_4FGL_J2147.1+0931_daily_bin745.fits sctable="SC_DATA" expcube=/scratch/kocevski/925829/ltcube_432432001_432691201_4FGL_J2147.1+0931_daily_bin745.fits outfile=/scratch/kocevski/925829/expmap_432432001_432691201_4FGL_J2147.1+0931_daily_bin745.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/925829/ltcube_432432001_432691201_4FGL_J2147.1+0931_daily_bin745.fits
.....................!
real 156.40
user 151.79
sys 4.16

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/925829/ft1_filtered_4FGL_J2147.1+0931_daily_bin745.fits scfile=/scratch/kocevski/925829/ft2_4FGL_J2147.1+0931_daily_bin745.fits outfile=/scratch/kocevski/925829/cmap_432432001_432691201_4FGL_J2147.1+0931_daily_bin745.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.47
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925829/ft1_filtered_4FGL_J2147.1+0931_daily_bin745.fits scfile=/scratch/kocevski/925829/ft2_4FGL_J2147.1+0931_daily_bin745.fits outfile=/scratch/kocevski/925829/cmap_HighResolution_432432001_432691201_4FGL_J2147.1+0931_daily_bin745.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.47
user 0.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92472       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.990       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4385       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    101.94       1.0000         .10000E-03   10000.    
     6 'norm      '    5.8089       1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.636       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4818       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.458       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.721       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.126       1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.451       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.1148       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.445       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.203       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.904       1.0000         .10000E-03   10000.    
    26 'norm      '    7.3987       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.349       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.9942       1.0000         .10000E-03   10000.    
    29 'Prefactor '    25.963       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .32463       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1350       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=   4824.800     FROM MIGRAD    STATUS=CONVERGED   1430 CALLS     5397 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91383        139.06        .51344E-02   -.65902E-04
   2  Prefactor     19.993        31.183        .89583E-04   -.22589E-04
   3  Prefactor     5.4429        19.511        .17231E-03   -.27777E-04
   4  Prefactor     .10000E-03    25.732        .18142E-02** at limit **
   5  Prefactor     101.93        86.372        .39821E-04   -.27465E-04
   6  norm          5.8098        6.4460        .16664E-03   -.10295E-03
   7  Prefactor     42.632        34.565        .61395E-04   -.43701E-04
   8  Prefactor     4.4837        7.8560        .19019E-03   -.14370E-03
   9  Prefactor     .10000E-03    6.0053        .16585E-02** at limit **
  10  Prefactor     .10000E-03    5.4298        .21866E-02** at limit **
  11  Prefactor     18.458        38.989        .93224E-04   -.25610E-04
  12  Prefactor     .10000E-03    98.320        .18142E-02** at limit **
  13  norm          11.722        4.6977        .90299E-04   -.80450E-04
  14  Prefactor     .10000E-03    58.548        .18142E-02** at limit **
  15  Prefactor     33.147        77.933        .69622E-04    .89811E-05
  16  norm          .10000E-03    3.0397        .23326E-03** at limit **
  17  norm          22.452        37.389        .84536E-04   -.24476E-04
  18  Prefactor     .10000E-03    7.7646        .18142E-02** at limit **
  19  Prefactor     .10000E-03    20.094        .18142E-02** at limit **
  20  Prefactor     .10000E-03    20.458        .18142E-02** at limit **
  21  norm          4.1152        1.8849        .61766E-04   -.93135E-04
  22  Prefactor     10.446        15.688        .12397E-03   -.14764E-04
  23  Prefactor     16.208        22.177        .99500E-04   -.21252E-04
  24  Prefactor     .10000E-03    10.122        .18142E-02** at limit **
  25  Prefactor     23.912        37.587        .81930E-04    .24977E-05
  26  norm          7.3985        10.477        .14745E-03   -.62684E-04
  27  Prefactor     22.356        40.311        .84727E-04   -.23481E-04
  28  Prefactor     1.9941        .65885        .26954E-04    .70437E-04
  29  Prefactor     25.966        21.767        .78620E-04   -.20678E-04
  30  Normalizat    .32470        .40866        .64051E-03   -.38374E-04
  31  Prefactor     1.1350        .17558        .16851E-03   -.46416E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.913825
  Prefactor  = 19.9934
  Prefactor  = 5.44294
  Prefactor  = 0.0001
  Prefactor  = 101.934
  norm       = 5.80978
  Prefactor  = 42.6318
  Prefactor  = 4.4837
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.458
  Prefactor  = 0.0001
  norm       = 11.722
  Prefactor  = 0.0001
  Prefactor  = 33.147
  norm       = 0.0001
  norm       = 22.4516
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.11518
  Prefactor  = 10.446
  Prefactor  = 16.2076
  Prefactor  = 0.0001
  Prefactor  = 23.9124
  norm       = 7.39847
  Prefactor  = 22.3558
  Prefactor  = 1.99412
  Prefactor  = 25.9656
  Normalizat = 0.324704
  Prefactor  = 1.13498
 **********
 **   18 **HESSE 
 **********

 FCN=   4824.800     FROM HESSE     STATUS=OK           592 CALLS     5989 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91383        136.81        .20538E-03   -1.5517    
   2  Prefactor     19.993        31.167        .35833E-05   -1.4813    
   3  Prefactor     5.4429        19.505        .68923E-05   -1.5241    
   4  Prefactor     .10000E-03    25.733        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     101.93        86.337        .79641E-05   -1.3685    
   6  norm          5.8098        6.4458        .66654E-05   -1.5226    
   7  Prefactor     42.632        34.530        .24558E-05   -1.4401    
   8  Prefactor     4.4837        7.8538        .76076E-05   -1.5284    
   9  Prefactor     .10000E-03    6.0060        .33170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4510        .43733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.458        38.937        .37289E-05   -1.4848    
  12  Prefactor     .10000E-03    98.321        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.722        4.6961        .36120E-05   -1.5023    
  14  Prefactor     .10000E-03    58.549        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.147        77.795        .27849E-05   -1.4556    
  16  norm          .10000E-03    3.0397        .46651E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.452        37.359        .33815E-05   -1.4760    
  18  Prefactor     .10000E-03    7.7663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.095        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.465        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.1152        1.8842        .24706E-05   -1.5302    
  22  Prefactor     10.446        15.687        .49590E-05   -1.5061    
  23  Prefactor     16.208        22.170        .39800E-05   -1.4903    
  24  Prefactor     .10000E-03    10.122        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.912        37.565        .32772E-05   -1.4730    
  26  norm          7.3985        10.473        .58980E-05   -1.5164    
  27  Prefactor     22.356        40.263        .33891E-05   -1.4762    
  28  Prefactor     1.9941        .65884        .10782E-05   -1.5426    
  29  Prefactor     25.966        21.767        .15724E-04   -1.4688    
  30  Normalizat    .32470        .40671        .25620E-04   -1.2139    
  31  Prefactor     1.1350        .17529        .67404E-05   -.88356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76864e-10
Minuit parameter uncertainties:
  1  22.4134
  2  31.1925
  3  19.528
  4  5.68531e-06
  5  86.4437
  6  6.44661
  7  34.5461
  8  7.85564
  9  4.94405e-06
  10  3.89878e-05
  11  38.9905
  12  2.5546e-05
  13  4.69624
  14  5.00662e-06
  15  78.0347
  16  9.85145e-07
  17  37.3979
  18  0.000128181
  19  1.31953e-05
  20  2.98595e-05
  21  1.88428
  22  15.6928
  23  22.1812
  24  6.92622e-06
  25  37.6026
  26  10.476
  27  40.3115
  28  0.658842
  29  21.7733
  30  0.410489
  31  0.175378
Done.

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

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  1.000e-04  9.851e-07  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.135e+00  1.754e-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:  3.247e-01  4.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/925829/likelihoodResults_432432001_432691201_4FGL_J2147.1+0931_daily_bin745.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) = 4824.80195962
delta logL = -0.00156885366141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4824.80039082
delta logL = -5.11317921337e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4430       1.0000          .0000       5.0000    
     3 'Normalizat'    .32470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1350       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=   4824.800     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    562.95        .23422E-02** at limit **
   2  alpha         2.7807        3.0327        .16466        .51782E-08
   3  Normalizat    .32471        .13886        .64052E-03    .14199E-05
   4  Prefactor     1.1350        .66115E-01    .16851E-03   -.56671E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.78068
  Normalizat = 0.324705
  Prefactor  = 1.13498
 **********
 **   18 **HESSE 
 **********

 FCN=   4824.800     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2762        .46843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7807        3.1758        .65864E-02    .11251    
   3  Normalizat    .32471        .35603        .25621E-04   -1.2139    
   4  Prefactor     1.1350        .17135        .67404E-05   -.88356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73685e-12
Minuit parameter uncertainties:
  1  6.91695e-06
  2  232.642
  3  0.358548
  4  0.171429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925829': 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) = 4824.80038958
delta logL = 1.18505795399e-06

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  1.000e-04  6.917e-06  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  2.781e+00  2.326e+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.135e+00  1.714e-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:  3.247e-01  3.585e-01  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/925829/cmap_HighResolution_432432001_432691201_4FGL_J2147.1+0931_daily_bin745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-05', job_status='DONE', photon_flux_upper_limit='1.55e-07', time_completed='2021-09-27 15:02:11.677091', job_id='925829', GAL2='1.13', fit_tolerance='1e-08', EG2='0.32', EG='0.32', time_epoch_completed='1632780131.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='745' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 15:02:11 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2147.1+0931_daily_bin745 326.783 9.5181 432432001 432691201 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 :                                   670.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            984 sec.

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

