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


Performing analysis on: 4FGL_J2147.1+0931_daily_bin559
RA = 326.783, Dec = 9.5181
tmin = 384220801, tmax = 384480001
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='925564', job_status='RUN', time_executed='2021-09-27 14:48:53.929636', time_epoch_executed='1632779333.93' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925564

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925564/ft1_4FGL_J2147.1+0931_daily_bin559.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925564/ft2_4FGL_J2147.1+0931_daily_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925564/ft1_4FGL_J2147.1+0931_daily_bin559.fits outfile=/scratch/kocevski/925564/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin559.fits ra=326.783 dec=9.5181 rad=12.0 tmin=384220801.0 tmax=384480001.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 13.75
user 13.30
sys 0.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/925564/ft2_4FGL_J2147.1+0931_daily_bin559.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/925564/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin559.fits evtable="EVENTS" outfile="/scratch/kocevski/925564/ft1_filtered_4FGL_J2147.1+0931_daily_bin559.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925564/ft1_filtered_4FGL_J2147.1+0931_daily_bin559.fits" evtable="EVENTS" scfile=/scratch/kocevski/925564/ft2_4FGL_J2147.1+0931_daily_bin559.fits sctable="SC_DATA" outfile=/scratch/kocevski/925564/ltcube_384220801_384480001_4FGL_J2147.1+0931_daily_bin559.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/925564/ft2_4FGL_J2147.1+0931_daily_bin559.fits
.....................!
real 11.93
user 11.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925564/ft1_filtered_4FGL_J2147.1+0931_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/925564/ft2_4FGL_J2147.1+0931_daily_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/925564/ltcube_384220801_384480001_4FGL_J2147.1+0931_daily_bin559.fits outfile=/scratch/kocevski/925564/expmap_384220801_384480001_4FGL_J2147.1+0931_daily_bin559.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/925564/ltcube_384220801_384480001_4FGL_J2147.1+0931_daily_bin559.fits
.....................!
real 189.48
user 185.26
sys 3.76

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/925564/ft1_filtered_4FGL_J2147.1+0931_daily_bin559.fits scfile=/scratch/kocevski/925564/ft2_4FGL_J2147.1+0931_daily_bin559.fits outfile=/scratch/kocevski/925564/cmap_384220801_384480001_4FGL_J2147.1+0931_daily_bin559.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925564/ft1_filtered_4FGL_J2147.1+0931_daily_bin559.fits scfile=/scratch/kocevski/925564/ft2_4FGL_J2147.1+0931_daily_bin559.fits outfile=/scratch/kocevski/925564/cmap_HighResolution_384220801_384480001_4FGL_J2147.1+0931_daily_bin559.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.625       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22485E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.436       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.247       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18711E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11363E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    77.776       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1538       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.5165       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.5795       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.4611       1.0000         .10000E-03   10000.    
    29 'Prefactor '    16.541       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .12021       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2416       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=   2431.683     FROM MIGRAD    STATUS=CONVERGED   1432 CALLS     5344 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.625        42.142        .57506E-04    .11862E-04
   2  Prefactor     .10000E-03    104.56        .18142E-02** at limit **
   3  Prefactor     .10000E-03    28.266        .18142E-02** at limit **
   4  Prefactor     .10000E-03    20.484        .18142E-02** at limit **
   5  Prefactor     .10000E-03    932.19        .18142E-02** at limit **
   6  norm          12.438        11.105        .11359E-03    .23520E-04
   7  Prefactor     25.249        58.545        .79725E-04    .29233E-05
   8  Prefactor     .10000E-03    3.3864        .88606E-03** at limit **
   9  Prefactor     .10000E-03    8.5375        .14051E-02** at limit **
  10  Prefactor     .10000E-03    6.6401        .12409E-02** at limit **
  11  Prefactor     .10000E-03    95.285        .18142E-02** at limit **
  12  Prefactor     .10000E-03    357.73        .18142E-02** at limit **
  13  norm          .10000E-03    2.6910        .78516E-03** at limit **
  14  Prefactor     .10000E-03    105.44        .18142E-02** at limit **
  15  Prefactor     .10000E-03    49.869        .18142E-02** at limit **
  16  norm          .10000E-03    23.462        .30996E-01** at limit **
  17  norm          77.733        74.412        .45535E-04    .62168E-04
  18  Prefactor     6.1542        20.293        .80917E-03   -.31612E-05
  19  Prefactor     .10000E-03    35.955        .18142E-02** at limit **
  20  Prefactor     .10000E-03    25.121        .18142E-02** at limit **
  21  norm          2.5164        1.7875        .52187E-04    .14095E-03
  22  Prefactor     .10000E-03    31.277        .18142E-02** at limit **
  23  Prefactor     .10000E-03    23.808        .18142E-02** at limit **
  24  Prefactor     .10000E-03    20.348        .18142E-02** at limit **
  25  Prefactor     .10000E-03    22.701        .18142E-02** at limit **
  26  norm          6.5802        10.882        .78225E-03   -.26567E-04
  27  Prefactor     .10000E-03    35.080        .18142E-02** at limit **
  28  Prefactor     2.4611        .61806        .18359E-04    .26844E-03
  29  Prefactor     16.541        18.643        .98477E-04   -.17894E-05
  30  Normalizat    .12045        .88322        .10050E-01    .18447E-04
  31  Prefactor     1.2414        .29040        .16760E-03    .75828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.6252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4378
  Prefactor  = 25.249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 77.7327
  Prefactor  = 6.15418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.51644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.58023
  Prefactor  = 0.0001
  Prefactor  = 2.46106
  Prefactor  = 16.5411
  Normalizat = 0.120446
  Prefactor  = 1.24139
 **********
 **   18 **HESSE 
 **********

 FCN=   2431.683     FROM HESSE     STATUS=OK           606 CALLS     5950 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.625        42.136        .23002E-05   -1.4312    
   2  Prefactor     .10000E-03    104.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.267        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    932.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.438        11.105        .45436E-05   -1.5002    
   7  Prefactor     25.249        58.435        .31890E-05   -1.4703    
   8  Prefactor     .10000E-03    3.3864        .17721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.5380        .28102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.6401        .24817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    95.287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    357.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.6911        .15703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    105.44        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    49.869        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.416        .44835E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          77.733        73.860        .91069E-05   -1.3942    
  18  Prefactor     6.1542        20.283        .32367E-04   -1.5212    
  19  Prefactor     .10000E-03    35.956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.122        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.5164        1.7837        .20875E-05   -1.5391    
  22  Prefactor     .10000E-03    31.278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.348        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.5802        10.850        .31290E-04   -1.5195    
  27  Prefactor     .10000E-03    35.086        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.4611        .61652        .73437E-06   -1.5394    
  29  Prefactor     16.541        18.642        .39391E-05   -1.4894    
  30  Normalizat    .12045        .72716        .40199E-03   -1.3601    
  31  Prefactor     1.2414        .26526        .33521E-04   -.85067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96358e-11
Minuit parameter uncertainties:
  1  42.162
  2  6.12964e-05
  3  4.70321e-06
  4  3.53172e-06
  5  3.04857e-05
  6  11.1064
  7  58.5682
  8  1.38108e-06
  9  9.2015e-06
  10  7.26973e-07
  11  8.36406e-06
  12  0.00011986
  13  6.11185e-06
  14  3.48513e-06
  15  1.75262e-05
  16  6.09174e-05
  17  73.9477
  18  20.3053
  19  2.50348e-05
  20  6.97754e-06
  21  1.78372
  22  1.73755e-05
  23  1.76572e-06
  24  2.41174e-06
  25  2.13254e-06
  26  10.8534
  27  3.55688e-05
  28  0.616524
  29  18.6483
  30  0.577301
  31  0.26555
Done.

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

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  1.000e-04  6.092e-05  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  2.432e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  9.991e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  4.060e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.241e+00  2.655e-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.204e-01  5.773e-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: 3.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/925564/likelihoodResults_384220801_384480001_4FGL_J2147.1+0931_daily_bin559.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): 102
logL (Free Index) = 2431.68274291
delta logL = -1.94259105228e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2431.68272177
delta logL = 1.70883004103e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53835E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7273       1.0000          .0000       5.0000    
     3 'Normalizat'    .11983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2416       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2431.683     FROM MIGRAD    STATUS=FAILED       147 CALLS      366 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26305E-01    402.38        .29377E-01    .19276E-03
   2  alpha         2.6570        2.9626        .50000       -.55868E-04
   3  Normalizat    .11997        .58162E-01    .10061E-01    .36124E-04
   4  Prefactor     1.2414        .27249E-01    .16760E-03    .18340E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2431.683     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      458 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26305E-01    402.38        .12427E-02    .19276E-03
   2  alpha         2.6570        2.9626        .29141E-02   -.55868E-04
   3  Normalizat    .11997        .58162E-01    .21803E-03    .36124E-04
   4  Prefactor     1.2414        .27249E-01    .32704E-04    .18340E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2431.683     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      501 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26322E-01    139.86        .44292E-01    .10792E-03
   2  alpha         2.6568        3.8164        .50000       -.20270E-05
   3  Normalizat    .11997        .46212E-01    .40244E-03    .30933E-04
   4  Prefactor     1.2414        .21952E-01    .33520E-04    .19251E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0263222
  alpha      = 2.65683
  Normalizat = 0.119965
  Prefactor  = 1.24144
 **********
 **   18 **HESSE 
 **********

 FCN=   2431.683     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      540 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26322E-01    240.37        .35909E-01   -1.5676    
   2  alpha         2.6568        3.3846        .50000        .62774E-01
   3  Normalizat    .11997        .51826E-01    .16098E-04   -1.3606    
   4  Prefactor     1.2414        .24504E-01    .67040E-05   -.85065    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.07784e-08
Minuit parameter uncertainties:
  1  5.04152
  2  72.8976
  3  0.0518474
  4  0.0245043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925564': 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): 102
logL (Free Index) = 2431.6827148
delta logL = 8.68546385391e-06

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  2.632e-02  5.042e+00  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  2.657e+00  7.290e+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:  1.241e+00  2.450e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.200e-01  5.185e-02  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/925564/cmap_HighResolution_384220801_384480001_4FGL_J2147.1+0931_daily_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-05', job_status='DONE', photon_flux_upper_limit='3.07e-07', time_completed='2021-09-27 14:59:35.216420', job_id='925564', GAL2='1.24', fit_tolerance='1e-08', EG2='0.12', EG='0.12', time_epoch_completed='1632779975.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='8.69e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='559' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:59:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 925564: <4FGL_J2147.1+0931_daily_bin559> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2147.1+0931_daily_bin559 326.783 9.5181 384220801 384480001 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 :                                   633.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            847 sec.

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

