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


Performing analysis on: 4FGL_J2147.1+0931_daily_bin392
RA = 326.783, Dec = 9.5181
tmin = 340934401, tmax = 341193601
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='924160', job_status='RUN', time_executed='2021-09-27 14:42:51.917573', time_epoch_executed='1632778971.92' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924160

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924160/ft1_4FGL_J2147.1+0931_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924160/ft2_4FGL_J2147.1+0931_daily_bin392.fits


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

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

Done.
real 2.94
user 2.57
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924160/ft1_filtered_4FGL_J2147.1+0931_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/924160/ft2_4FGL_J2147.1+0931_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/924160/ltcube_340934401_341193601_4FGL_J2147.1+0931_daily_bin392.fits outfile=/scratch/kocevski/924160/expmap_340934401_341193601_4FGL_J2147.1+0931_daily_bin392.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/924160/ltcube_340934401_341193601_4FGL_J2147.1+0931_daily_bin392.fits
.....................!
real 156.56
user 151.49
sys 4.61

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/924160/ft1_filtered_4FGL_J2147.1+0931_daily_bin392.fits scfile=/scratch/kocevski/924160/ft2_4FGL_J2147.1+0931_daily_bin392.fits outfile=/scratch/kocevski/924160/cmap_340934401_341193601_4FGL_J2147.1+0931_daily_bin392.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/924160/ft1_filtered_4FGL_J2147.1+0931_daily_bin392.fits scfile=/scratch/kocevski/924160/ft2_4FGL_J2147.1+0931_daily_bin392.fits outfile=/scratch/kocevski/924160/cmap_HighResolution_340934401_341193601_4FGL_J2147.1+0931_daily_bin392.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.49
user 0.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.007       1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.496       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.054       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.2990       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4501       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0099       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7167       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2025       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4896       1.0000         .10000E-03   10000.    
    17 'norm      '    8.0899       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2097       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.560       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.6632       1.0000         .10000E-03   10000.    
    21 'norm      '    3.0303       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18192E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.615       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    39.061       1.0000         .10000E-03   10000.    
    26 'norm      '    3.0678       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.4401       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .25955       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2254       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .85056       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=   7915.783     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     4197 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.004        17.624       -.37980E-07    .12914E-05
   2  Prefactor     47.496        34.538       -.24846E-06    .35349E-05
   3  Prefactor     15.051        25.334        .13341E-06    .94783E-06
   4  Prefactor     .10000E-03    10.384       -.11420E-07** at limit **
   5  Prefactor     .10000E-03    36.190        .15665E-05** at limit **
   6  norm          5.2990        4.1967        .31282E-07    .24079E-05
   7  Prefactor     2.4488        13.903        .14746E-05   -.48741E-04
   8  Prefactor     .10000E-03    3.3120       -.34031E-07** at limit **
   9  Prefactor     4.0125        10.463        .14622E-05    .41874E-04
  10  Prefactor     1.7168        1.7777       -.17335E-07    .84665E-04
  11  Prefactor     .10000E-03    70.317       -.23013E-05** at limit **
  12  Prefactor     .10000E-03    104.11        .20714E-05** at limit **
  13  norm          1.2024        3.5712       -.14631E-05    .72883E-05
  14  Prefactor     .10000E-03    34.652       -.19895E-05** at limit **
  15  Prefactor     .10000E-03    18.863        .24226E-07** at limit **
  16  norm          2.4895        2.5357       -.26133E-07    .66309E-04
  17  norm          8.0900        13.447        .48682E-07   -.15211E-05
  18  Prefactor     9.2102        6.9856       -.15033E-07    .39914E-04
  19  Prefactor     22.569        49.609        .31877E-05    .10554E-04
  20  Prefactor     9.6644        14.935       -.11614E-06    .44967E-04
  21  norm          3.0303        1.3278        .10385E-08    .13533E-03
  22  Prefactor     .10000E-03    44.080       -.66924E-05** at limit **
  23  Prefactor     14.619        24.667       -.35173E-06    .57544E-04
  24  Prefactor     .10000E-03    66.812       -.10914E-05** at limit **
  25  Prefactor     39.072        28.093       -.52103E-06   -.51416E-05
  26  norm          3.0673        4.1044        .72240E-06   -.18931E-03
  27  Prefactor     5.4391        15.791        .51837E-06   -.24318E-04
  28  Prefactor     .25955        .18665       -.10810E-07    .10509E-03
  29  Prefactor     .10000E-03    9.3150        .88523E-08** at limit **
  30  Normalizat    1.2254        .24943       -.57278E-07    .43746E-04
  31  Prefactor     .85063        .10639        .56231E-07    .15367E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0044
  Prefactor  = 47.4962
  Prefactor  = 15.0511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.29899
  Prefactor  = 2.44878
  Prefactor  = 0.0001
  Prefactor  = 4.01254
  Prefactor  = 1.71677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.20237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.48952
  norm       = 8.09
  Prefactor  = 9.21022
  Prefactor  = 22.5689
  Prefactor  = 9.66439
  norm       = 3.03035
  Prefactor  = 0.000100001
  Prefactor  = 14.6189
  Prefactor  = 0.000100001
  Prefactor  = 39.0716
  norm       = 3.06727
  Prefactor  = 5.43908
  Prefactor  = 0.259547
  Prefactor  = 0.0001
  Normalizat = 1.22538
  Prefactor  = 0.850627
 **********
 **   18 **HESSE 
 **********

 FCN=   7915.783     FROM HESSE     STATUS=OK           634 CALLS     4831 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.004        17.639        .91869E-04   -1.4836    
   2  Prefactor     47.496        34.562        .58182E-04   -1.4329    
   3  Prefactor     15.051        25.339        .10323E-03   -1.4932    
   4  Prefactor     .10000E-03    10.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.2990        4.1983        .15731E-03   -1.5248    
   7  Prefactor     2.4488        17.716        .13067E-02   -1.5395    
   8  Prefactor     .10000E-03    3.3375        .15794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0125        10.497        .20139E-03   -1.5307    
  10  Prefactor     1.7168        1.7889        .11745E-03   -1.5446    
  11  Prefactor     .10000E-03    70.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    104.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2024        3.6266        .22390E-03   -1.5489    
  14  Prefactor     .10000E-03    34.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4895        2.5257        .13395E-03   -1.5392    
  17  norm          8.0900        13.477        .70481E-03   -1.5139    
  18  Prefactor     9.2102        6.9875        .13206E-03   -1.5101    
  19  Prefactor     22.569        49.939        .84332E-04   -1.4757    
  20  Prefactor     9.6644        14.920        .12891E-03   -1.5086    
  21  norm          3.0303        1.3254        .63684E-04   -1.5360    
  22  Prefactor     .10000E-03    52.973        .53292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.619        24.501        .10477E-03   -1.4943    
  24  Prefactor     .10000E-03    67.455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     39.072        28.108        .64132E-04   -1.4457    
  26  norm          3.0673        5.2044        .11580E-02   -1.5358    
  27  Prefactor     5.4391        16.097        .86140E-03   -1.5241    
  28  Prefactor     .25955        .18817        .29826E-04   -1.5606    
  29  Prefactor     .10000E-03    9.7250        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2254        .29474        .34552E-03   -.85822    
  31  Prefactor     .85063        .12615        .19087E-03   -.97888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18166e-10
Minuit parameter uncertainties:
  1  17.6441
  2  34.5771
  3  25.3575
  4  4.51331e-06
  5  1.54103e-05
  6  4.19853
  7  13.1782
  8  1.83093e-05
  9  10.5017
  10  1.78893
  11  4.89251e-05
  12  0.00016605
  13  3.62728
  14  3.49517e-05
  15  2.16175e-06
  16  2.52581
  17  13.4816
  18  6.98808
  19  50.0314
  20  14.9259
  21  1.32537
  22  0.00036671
  23  24.5182
  24  0.000486885
  25  28.1177
  26  5.20521
  27  16.1097
  28  0.188175
  29  4.46775e-06
  30  0.295142
  31  0.126197
Done.

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

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  2.490e+00  2.526e+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:  8.506e-01  1.262e-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.225e+00  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.47
Ra Dec: 326.783 9.518
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.78e-08 +/- 4.85e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/924160/likelihoodResults_340934401_341193601_4FGL_J2147.1+0931_daily_bin392.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) = 7915.77617039
delta logL = 0.00729721886273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7915.77579434
delta logL = 0.00767327196263

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4401       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3252       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84897       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=   7915.776     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4401        3.4395        .65480E-02    .31739E-02
   2  alpha         2.3253        .95780        .41279       -.40527E-04
   3  Normalizat    1.2308        .22571        .77910E-01   -.23713E-03
   4  Prefactor     .84905        .10624        .44351E-01   -.50286E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.44005
  alpha      = 2.32531
  Normalizat = 1.23079
  Prefactor  = 0.849047
 **********
 **   18 **HESSE 
 **********

 FCN=   7915.776     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4401        2.5186        .13457E-03   -1.5396    
   2  alpha         2.3253        .83168        .24381E-01   -.69934E-01
   3  Normalizat    1.2308        .26820        .34485E-03   -.85657    
   4  Prefactor     .84905        .12507        .19102E-03   -.97945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04125e-09
Minuit parameter uncertainties:
  1  2.51867
  2  0.847918
  3  0.268506
  4  0.125107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924160': 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) = 7915.77579403
delta logL = 0.00767357844688

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  2.440e+00  2.519e+00  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  2.325e+00  8.479e-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:  8.490e-01  1.251e-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.231e+00  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 326.783 9.518
Photon Index (Free Index): 2.33 +/- 0.85
Photon Flux (Free Index): 4.36e-08 +/- 5.48e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.37e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-05', comment='SUCCESS', photon_flux='4.78e-08', energy_flux2='1.35e-05', photon_flux_error='4.85e-08', dlogl='7.67e-03', energy_flux='1.35e-05', photon_flux2='4.36e-08', job_status='DONE', time_completed='2021-09-27 14:56:58.117580', photon_index_error2='0.85', photon_index2='2.33', ts='1.47', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.37e-05', EG='1.23', time_epoch_completed='1632779818.12', return_code='0', job_id='924160', GAL2='0.85', EG2='1.23', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='5.48e-08', ts2='1.47', photon_index='2.43' WHERE bin_id='392' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:56:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 924160: <4FGL_J2147.1+0931_daily_bin392> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2147.1+0931_daily_bin392 326.783 9.5181 340934401 341193601 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 :                                   840.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             303.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            981 sec.

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

