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


Performing analysis on: 4FGL_J2147.1+0931_daily_bin635
RA = 326.783, Dec = 9.5181
tmin = 403920001, tmax = 404179201
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='925673', job_status='RUN', time_executed='2021-09-27 14:51:09.909331', time_epoch_executed='1632779469.91' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925673

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925673/ft1_4FGL_J2147.1+0931_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925673/ft2_4FGL_J2147.1+0931_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925673/ft1_4FGL_J2147.1+0931_daily_bin635.fits outfile=/scratch/kocevski/925673/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin635.fits ra=326.783 dec=9.5181 rad=12.0 tmin=403920001.0 tmax=404179201.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 8.32
user 7.88
sys 0.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925673/ft1_filtered_4FGL_J2147.1+0931_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/925673/ft2_4FGL_J2147.1+0931_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/925673/ltcube_403920001_404179201_4FGL_J2147.1+0931_daily_bin635.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/925673/ft2_4FGL_J2147.1+0931_daily_bin635.fits
.....................!
real 8.16
user 7.84
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925673/ft1_filtered_4FGL_J2147.1+0931_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/925673/ft2_4FGL_J2147.1+0931_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/925673/ltcube_403920001_404179201_4FGL_J2147.1+0931_daily_bin635.fits outfile=/scratch/kocevski/925673/expmap_403920001_404179201_4FGL_J2147.1+0931_daily_bin635.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/925673/ltcube_403920001_404179201_4FGL_J2147.1+0931_daily_bin635.fits
.....................!
real 156.15
user 151.46
sys 4.34

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/925673/ft1_filtered_4FGL_J2147.1+0931_daily_bin635.fits scfile=/scratch/kocevski/925673/ft2_4FGL_J2147.1+0931_daily_bin635.fits outfile=/scratch/kocevski/925673/cmap_403920001_404179201_4FGL_J2147.1+0931_daily_bin635.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/925673/ft1_filtered_4FGL_J2147.1+0931_daily_bin635.fits scfile=/scratch/kocevski/925673/ft2_4FGL_J2147.1+0931_daily_bin635.fits outfile=/scratch/kocevski/925673/cmap_HighResolution_403920001_404179201_4FGL_J2147.1+0931_daily_bin635.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.33
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.254       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6809       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    207.39       1.0000         .10000E-03   10000.    
     6 'norm      '    6.7393       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.573       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5876       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.9175       1.0000         .10000E-03   10000.    
    17 'norm      '    .37884       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.692       1.0000         .10000E-03   10000.    
    21 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.8558       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.5543       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.0270       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .88910       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .76128       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=   3993.714     FROM MIGRAD    STATUS=CONVERGED    795 CALLS     4132 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.251        20.595       -.77437E-07    .53536E-05
   2  Prefactor     7.6929        27.589        .46089E-06    .87029E-04
   3  Prefactor     .10001E-03    95.250       -.36862E-05** at limit **
   4  Prefactor     .10000E-03    31.251       -.34416E-05** at limit **
   5  Prefactor     207.39        150.60        .35161E-06   -.11016E-04
   6  norm          6.7395        5.6929       -.24964E-06   -.29592E-03
   7  Prefactor     .10000E-03    16.879       -.62439E-06** at limit **
   8  Prefactor     10.573        9.0421        .15066E-05   -.33027E-03
   9  Prefactor     .10000E-03    4.7965       -.18108E-06** at limit **
  10  Prefactor     .10000E-03    2.4831        .19681E-07** at limit **
  11  Prefactor     .10000E-03    22.678        .29698E-05** at limit **
  12  Prefactor     .10000E-03    88.205        .25180E-06** at limit **
  13  norm          2.5873        2.8501        .13480E-06   -.55779E-04
  14  Prefactor     .10000E-03    65.232        .30533E-05** at limit **
  15  Prefactor     .10000E-03    61.079        .21231E-05** at limit **
  16  norm          5.9178        3.3416       -.12302E-07    .17612E-05
  17  norm          .35772        14.773       -.50231E-06    .84971E-04
  18  Prefactor     .10000E-03    4.6891        .23151E-07** at limit **
  19  Prefactor     .10000E-03    16.936       -.65217E-06** at limit **
  20  Prefactor     19.690        21.472        .28021E-06   -.36176E-05
  21  norm          .10000E-03    .52384        .59423E-07** at limit **
  22  Prefactor     .10000E-03    14.129        .14074E-05** at limit **
  23  Prefactor     8.8546        26.425        .30947E-06   -.33709E-05
  24  Prefactor     .10000E-03    12.902       -.40677E-06** at limit **
  25  Prefactor     .10000E-03    16.972       -.62333E-06** at limit **
  26  norm          .10000E-03    3.5671        .25392E-07** at limit **
  27  Prefactor     5.5536        11.063        .32545E-05   -.26567E-03
  28  Prefactor     1.0270        .31977       -.25350E-07    .23831E-04
  29  Prefactor     .10000E-03    3.5277       -.41141E-08** at limit **
  30  Normalizat    .88919        .29101       -.14089E-05    .12481E-04
  31  Prefactor     .76127        .13008       -.18795E-06    .54717E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.2513
  Prefactor  = 7.69292
  Prefactor  = 0.00010001
  Prefactor  = 0.000100004
  Prefactor  = 207.385
  norm       = 6.73948
  Prefactor  = 0.0001
  Prefactor  = 10.5733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 2.58732
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  norm       = 5.91784
  norm       = 0.357725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6902
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.85464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.5536
  Prefactor  = 1.02697
  Prefactor  = 0.0001
  Normalizat = 0.889186
  Prefactor  = 0.761267
 **********
 **   18 **HESSE 
 **********

 FCN=   3993.714     FROM HESSE     STATUS=OK           620 CALLS     4752 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.251        20.590        .79713E-04   -1.4703    
   2  Prefactor     7.6929        27.644        .14469E-03   -1.5153    
   3  Prefactor     .10001E-03    98.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     207.39        151.27        .28069E-04   -1.2818    
   6  norm          6.7395        5.7244        .13455E-03   -1.5189    
   7  Prefactor     .10000E-03    16.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.573        9.2024        .61610E-03   -1.5058    
   9  Prefactor     .10000E-03    4.8332        .13513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.4998        .97223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    88.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5873        2.8411        .10482E-03   -1.5386    
  14  Prefactor     .10000E-03    66.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    61.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.9178        3.3417        .81437E-04   -1.5221    
  17  norm          .35772        145.86        .45980E-02   -1.5588    
  18  Prefactor     .10000E-03    4.7074        .13364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.690        21.470        .90257E-04   -1.4820    
  21  norm          .10000E-03    .81586        .88139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.8546        26.394        .13469E-03   -1.5113    
  24  Prefactor     .10000E-03    12.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.5860        .11655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.5536        11.319        .85236E-03   -1.5237    
  28  Prefactor     1.0270        .32009        .19048E-04   -1.5505    
  29  Prefactor     .10000E-03    3.5280        .11593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .88919        .34440        .33003E-03   -.96841    
  31  Prefactor     .76127        .15564        .17043E-03   -1.0117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58704e-09
Minuit parameter uncertainties:
  1  20.5958
  2  27.6905
  3  0.00201308
  4  0.0007507
  5  151.554
  6  5.72485
  7  0.000102118
  8  9.20366
  9  1.50853e-05
  10  9.32587e-07
  11  0.000556731
  12  9.66501e-05
  13  2.84124
  14  0.000962652
  15  0.000638969
  16  3.34181
  17  14.4804
  18  1.19615e-06
  19  0.000102426
  20  21.4787
  21  2.24202e-06
  22  0.000205446
  23  26.4289
  24  5.57734e-05
  25  9.7883e-05
  26  2.14585e-06
  27  11.3235
  28  0.320094
  29  3.11611e-07
  30  0.345257
  31  0.155726
Done.

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

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  5.918e+00  3.342e+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.613e-01  1.557e-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:  8.892e-01  3.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.72
Ra Dec: 326.783 9.518
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 6.41e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 1.81e-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) = 3993.68845999
delta logL = 0.0256988121814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3993.68651771
delta logL = 0.0276410950582

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8808       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5831       1.0000          .0000       5.0000    
     3 'Normalizat'    .87146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76682       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=   3993.687     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      200 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8808        83.485        .41400E-02    .52085E-03
   2  alpha         2.5831        2.5455        .34256       -.93729E-05
   3  Normalizat    .87145        .37690        .75248E-01    .14915E-04
   4  Prefactor     .76682        .17640        .43284E-01    .29008E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.88084
  alpha      = 2.5831
  Normalizat = 0.871446
  Prefactor  = 0.766816
 **********
 **   18 **HESSE 
 **********

 FCN=   3993.687     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8808        3.2522        .78866E-04   -1.5223    
   2  alpha         2.5831        .64305        .13800E-01    .33248E-01
   3  Normalizat    .87145        .33088        .33303E-03   -.97471    
   4  Prefactor     .76682        .15627        .16986E-03   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33049e-11
Minuit parameter uncertainties:
  1  3.25231
  2  0.650369
  3  0.331653
  4  0.156357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925673': 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) = 3993.6865177
delta logL = 0.0276411074119

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  5.881e+00  3.252e+00  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  2.583e+00  6.504e-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.668e-01  1.564e-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:  8.714e-01  3.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.75
Ra Dec: 326.783 9.518
Photon Index (Free Index): 2.58 +/- 0.65
Photon Flux (Free Index): 1.26e-07 +/- 8.45e-08
Energy Flux (Free Index): 3.17e-05 +/- 1.73e-05

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/925673/cmap_HighResolution_403920001_404179201_4FGL_J2147.1+0931_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='3.17e-05', photon_flux_error='6.41e-08', dlogl='2.76e-02', energy_flux='3.20e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-27 14:59:51.179607', photon_index_error2='0.65', photon_index2='2.58', ts='7.72', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='0.89', time_epoch_completed='1632779991.18', return_code='0', job_id='925673', GAL2='0.77', EG2='0.87', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='8.45e-08', ts2='7.75', photon_index='2.43' WHERE bin_id='635' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:59:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 925673: <4FGL_J2147.1+0931_daily_bin635> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2147.1+0931_daily_bin635 326.783 9.5181 403920001 404179201 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 :                                   519.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            855 sec.

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

