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


Performing analysis on: 4FGL_J2147.1+0931_daily_bin751
RA = 326.783, Dec = 9.5181
tmin = 433987201, tmax = 434246401
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='925838', job_status='RUN', time_executed='2021-09-27 14:48:43.531736', time_epoch_executed='1632779323.53' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925838

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925838/ft1_4FGL_J2147.1+0931_daily_bin751.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925838/ft2_4FGL_J2147.1+0931_daily_bin751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925838/ft1_4FGL_J2147.1+0931_daily_bin751.fits outfile=/scratch/kocevski/925838/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin751.fits ra=326.783 dec=9.5181 rad=12.0 tmin=433987201.0 tmax=434246401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.19
user 5.89
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/925838/ft2_4FGL_J2147.1+0931_daily_bin751.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/925838/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin751.fits evtable="EVENTS" outfile="/scratch/kocevski/925838/ft1_filtered_4FGL_J2147.1+0931_daily_bin751.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.51
user 0.36
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925838/ft1_filtered_4FGL_J2147.1+0931_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/925838/ft2_4FGL_J2147.1+0931_daily_bin751.fits sctable="SC_DATA" expcube=/scratch/kocevski/925838/ltcube_433987201_434246401_4FGL_J2147.1+0931_daily_bin751.fits outfile=/scratch/kocevski/925838/expmap_433987201_434246401_4FGL_J2147.1+0931_daily_bin751.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/925838/ltcube_433987201_434246401_4FGL_J2147.1+0931_daily_bin751.fits
.....................!
real 191.43
user 186.76
sys 4.25

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/925838/ft1_filtered_4FGL_J2147.1+0931_daily_bin751.fits scfile=/scratch/kocevski/925838/ft2_4FGL_J2147.1+0931_daily_bin751.fits outfile=/scratch/kocevski/925838/cmap_433987201_434246401_4FGL_J2147.1+0931_daily_bin751.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925838/ft1_filtered_4FGL_J2147.1+0931_daily_bin751.fits scfile=/scratch/kocevski/925838/ft2_4FGL_J2147.1+0931_daily_bin751.fits outfile=/scratch/kocevski/925838/cmap_HighResolution_433987201_434246401_4FGL_J2147.1+0931_daily_bin751.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6346       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.599       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24705E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    158.04       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.106       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4466       1.0000         .10000E-03   10000.    
    12 'Prefactor '    312.56       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    20.906       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    65.145       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.1665       1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.383       1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.447       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    33.206       1.0000         .10000E-03   10000.    
    26 'norm      '    .13743E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.8403       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .91100       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .98156       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4109.218     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     4780 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6152        51.864        .59049E-06   -.19116E-04
   2  Prefactor     10.632        28.458        .59699E-05    .14382E-04
   3  Prefactor     .10001E-03    38.435       -.46727E-05** at limit **
   4  Prefactor     .10000E-03    15.718       -.38395E-08** at limit **
   5  Prefactor     158.00        135.21       -.34734E-06   -.22289E-04
   6  norm          .10000E-03    4.4205        .40890E-07** at limit **
   7  Prefactor     27.108        42.428        .20200E-06    .31629E-05
   8  Prefactor     .10000E-03    2.8417       -.25037E-08** at limit **
   9  Prefactor     .10000E-03    11.809        .37251E-07** at limit **
  10  Prefactor     .10000E-03    2.2155       -.24571E-07** at limit **
  11  Prefactor     7.4465        79.595       -.77162E-07    .61860E-06
  12  Prefactor     312.72        262.64        .10642E-05    .44024E-04
  13  norm          .10000E-03    3.8023        .24531E-07** at limit **
  14  Prefactor     .10000E-03    72.029        .24814E-08** at limit **
  15  Prefactor     .10000E-03    110.93        .21164E-07** at limit **
  16  norm          .10000E-03    3.4108        .30735E-07** at limit **
  17  norm          20.908        35.278       -.85804E-07    .78140E-06
  18  Prefactor     .10000E-03    14.265        .60128E-07** at limit **
  19  Prefactor     65.128        83.133       -.37455E-06   -.44189E-05
  20  Prefactor     .10000E-03    16.563        .72966E-07** at limit **
  21  norm          4.1661        2.5800        .46756E-08   -.84936E-04
  22  Prefactor     27.378        26.639       -.19486E-07    .40696E-05
  23  Prefactor     53.446        33.345       -.20662E-07   -.14257E-05
  24  Prefactor     .10000E-03    21.237        .44399E-07** at limit **
  25  Prefactor     33.202        40.086       -.31992E-07    .31873E-05
  26  norm          .10001E-03    9.0100        .21789E-06** at limit **
  27  Prefactor     .10000E-03    16.262        .42227E-07** at limit **
  28  Prefactor     1.8403        .48748       -.38957E-08    .73504E-04
  29  Prefactor     .10000E-03    6.2696        .71986E-08** at limit **
  30  Normalizat    .91143        .37841        .84274E-06   -.24439E-04
  31  Prefactor     .98140        .15852       -.34771E-06    .10376E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.61516
  Prefactor  = 10.6323
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 158.001
  norm       = 0.0001
  Prefactor  = 27.1075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.44649
  Prefactor  = 312.721
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.9084
  Prefactor  = 0.0001
  Prefactor  = 65.1284
  Prefactor  = 0.0001
  norm       = 4.16605
  Prefactor  = 27.3777
  Prefactor  = 53.4463
  Prefactor  = 0.0001
  Prefactor  = 33.2022
  norm       = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 1.84026
  Prefactor  = 0.0001
  Normalizat = 0.91143
  Prefactor  = 0.981402
 **********
 **   18 **HESSE 
 **********

 FCN=   4109.218     FROM HESSE     STATUS=OK           628 CALLS     5408 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6152        51.642        .25122E-03   -1.5385    
   2  Prefactor     10.632        35.700        .12307E-03   -1.5056    
   3  Prefactor     .10001E-03    50.130        .11551       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     158.00        135.25        .16037E-03   -1.3187    
   6  norm          .10000E-03    4.4522        .13161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.108        42.471        .76946E-04   -1.4666    
   8  Prefactor     .10000E-03    2.8448        .10553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2250        .93104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.4465        79.752        .14697E-03   -1.5162    
  12  Prefactor     312.72        261.07        .11494E-03   -1.2152    
  13  norm          .10000E-03    3.8789        .24283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    72.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    111.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.5312        .23073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          20.908        35.305        .87600E-04   -1.4793    
  18  Prefactor     .10000E-03    14.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     65.128        83.062        .49722E-04   -1.4092    
  20  Prefactor     .10000E-03    16.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.1661        2.5631        .74225E-04   -1.5300    
  22  Prefactor     27.378        26.662        .76557E-04   -1.4661    
  23  Prefactor     53.446        33.355        .54863E-04   -1.4245    
  24  Prefactor     .10000E-03    21.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     33.202        40.127        .69538E-04   -1.4555    
  26  norm          .10001E-03    60.181        .37008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    16.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.8403        .48848        .22143E-04   -1.5437    
  29  Prefactor     .10000E-03    6.2774        .15677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .91143        .43979        .41160E-03   -.96060    
  31  Prefactor     .98140        .18701        .18558E-03   -.93352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51042e-10
Minuit parameter uncertainties:
  1  23.265
  2  35.7714
  3  0.0012384
  4  1.87749e-06
  5  135.519
  6  5.88944e-06
  7  42.5188
  8  1.64756e-06
  9  1.04627e-05
  10  2.51995e-06
  11  48.8221
  12  262.06
  13  3.05235e-06
  14  1.47886e-05
  15  8.74296e-05
  16  5.48283e-06
  17  35.3399
  18  1.63815e-05
  19  83.2104
  20  1.15168e-05
  21  2.56321
  22  26.674
  23  33.3663
  24  1.42998e-05
  25  40.16
  26  0.00179353
  27  1.89266e-05
  28  0.488481
  29  6.43474e-07
  30  0.441544
  31  0.187136
Done.

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

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  1.000e-04  5.483e-06  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:  9.814e-01  1.871e-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:  9.114e-01  4.415e-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.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/925838/likelihoodResults_433987201_434246401_4FGL_J2147.1+0931_daily_bin751.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) = 4109.21886454
delta logL = -0.00135138401947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4109.21751878
delta logL = -5.63387948205e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12490E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3949       1.0000          .0000       5.0000    
     3 'Normalizat'    .91050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98184       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=   4109.218     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.9284        .90712E-02** at limit **
   2  alpha         2.3566        3.5921        .41198        .53106E-04
   3  Normalizat    .91144        .32831        .92921E-01   -.29432E-03
   4  Prefactor     .98140        .15435        .46040E-01   -.90678E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.35661
  Normalizat = 0.911436
  Prefactor  = 0.981397
 **********
 **   18 **HESSE 
 **********

 FCN=   4109.218     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9701        .24375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3566        3.5172        .50000       -.57388E-01
   3  Normalizat    .91144        .38156        .41160E-03   -.96059    
   4  Prefactor     .98140        .17999        .18558E-03   -.93352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61611e-09
Minuit parameter uncertainties:
  1  3.90539e-05
  2  2.49612
  3  0.3827
  4  0.180099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925838': 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) = 4109.21751157
delta logL = 1.58250350069e-06

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  1.000e-04  3.905e-05  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  2.357e+00  2.496e+00  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:  9.814e-01  1.801e-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:  9.114e-01  3.827e-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/925838/cmap_HighResolution_433987201_434246401_4FGL_J2147.1+0931_daily_bin751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-05', job_status='DONE', photon_flux_upper_limit='1.64e-07', time_completed='2021-09-27 15:00:58.164245', job_id='925838', GAL2='0.98', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632780058.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.58e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='751' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 15:00:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 925838: <4FGL_J2147.1+0931_daily_bin751> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2147.1+0931_daily_bin751 326.783 9.5181 433987201 434246401 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 :                                   729.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            909 sec.

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

