/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7470
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2147.1+0931_daily_bin694
RA = 326.783, Dec = 9.5181
tmin = 419212801, tmax = 419472001
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='925757', job_status='RUN', time_executed='2021-09-27 14:48:11.425462', time_epoch_executed='1632779291.43' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925757/ft1_4FGL_J2147.1+0931_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925757/ft2_4FGL_J2147.1+0931_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925757/ft1_4FGL_J2147.1+0931_daily_bin694.fits outfile=/scratch/kocevski/925757/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin694.fits ra=326.783 dec=9.5181 rad=12.0 tmin=419212801.0 tmax=419472001.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 5.47
user 5.19
sys 0.23

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925757/ft1_filtered_4FGL_J2147.1+0931_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/925757/ft2_4FGL_J2147.1+0931_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/925757/ltcube_419212801_419472001_4FGL_J2147.1+0931_daily_bin694.fits outfile=/scratch/kocevski/925757/expmap_419212801_419472001_4FGL_J2147.1+0931_daily_bin694.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/925757/ltcube_419212801_419472001_4FGL_J2147.1+0931_daily_bin694.fits
.....................!
real 192.49
user 186.24
sys 4.83

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/925757/ft1_filtered_4FGL_J2147.1+0931_daily_bin694.fits scfile=/scratch/kocevski/925757/ft2_4FGL_J2147.1+0931_daily_bin694.fits outfile=/scratch/kocevski/925757/cmap_419212801_419472001_4FGL_J2147.1+0931_daily_bin694.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925757/ft1_filtered_4FGL_J2147.1+0931_daily_bin694.fits scfile=/scratch/kocevski/925757/ft2_4FGL_J2147.1+0931_daily_bin694.fits outfile=/scratch/kocevski/925757/cmap_HighResolution_419212801_419472001_4FGL_J2147.1+0931_daily_bin694.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=326.783 yref=9.5181 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.034       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.960       1.0000         .10000E-03   10000.    
     6 'norm      '    6.5754       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .81060E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2298       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6209       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.4184       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.571       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.034       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8194       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    21.545       1.0000         .10000E-03   10000.    
    27 'Prefactor '    60.031       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .42743       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0549       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .84335       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=   4387.497     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     4087 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.031        25.783        .20632E-06    .74555E-04
   2  Prefactor     .10000E-03    28.522       -.33569E-07** at limit **
   3  Prefactor     .10000E-03    14.861       -.38557E-07** at limit **
   4  Prefactor     .10000E-03    44.985       -.39312E-06** at limit **
   5  Prefactor     14.036        92.312        .35022E-05    .86114E-04
   6  norm          6.5749        10.353        .46667E-05    .21044E-03
   7  Prefactor     .10000E-03    50.653        .47731E-06** at limit **
   8  Prefactor     .10000E-03    11.032       -.24658E-06** at limit **
   9  Prefactor     .10051E-03    14.495       -.28428E-05** at limit **
  10  Prefactor     2.2296        2.5679        .60583E-07   -.11154E-05
  11  Prefactor     9.6230        44.677        .14223E-05    .74872E-05
  12  Prefactor     .10000E-03    88.313       -.74020E-07** at limit **
  13  norm          8.4168        4.7898        .70217E-07    .47612E-03
  14  Prefactor     .10000E-03    73.076        .37117E-06** at limit **
  15  Prefactor     .10000E-03    87.306       -.22645E-06** at limit **
  16  norm          .10000E-03    2.4670       -.14917E-06** at limit **
  17  norm          .10000E-03    33.885       -.48604E-06** at limit **
  18  Prefactor     .10000E-03    7.5991       -.13189E-06** at limit **
  19  Prefactor     20.582        30.538        .12673E-06    .45008E-04
  20  Prefactor     27.033        18.698        .11330E-06    .62441E-05
  21  norm          1.8194        1.4257        .16024E-07    .86861E-04
  22  Prefactor     .10000E-03    21.700       -.30709E-06** at limit **
  23  Prefactor     .10000E-03    26.101       -.14629E-07** at limit **
  24  Prefactor     .10000E-03    48.062       -.46060E-06** at limit **
  25  Prefactor     .10000E-03    27.825       -.51033E-07** at limit **
  26  norm          21.547        13.419        .76585E-07    .92682E-05
  27  Prefactor     60.031        37.104        .23731E-06    .19242E-05
  28  Prefactor     .42747        .43753        .16915E-07    .12044E-03
  29  Prefactor     .10000E-03    8.9782       -.20336E-08** at limit **
  30  Normalizat    1.0548        .32698       -.23946E-05    .23039E-03
  31  Prefactor     .84331        .13931        .65521E-06    .35020E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0313
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0356
  norm       = 6.57487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100508
  Prefactor  = 2.22964
  Prefactor  = 9.62302
  Prefactor  = 0.0001
  norm       = 8.41682
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5818
  Prefactor  = 27.0327
  norm       = 1.81944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.5466
  Prefactor  = 60.0307
  Prefactor  = 0.427467
  Prefactor  = 0.0001
  Normalizat = 1.05479
  Prefactor  = 0.843315
 **********
 **   18 **HESSE 
 **********

 FCN=   4387.497     FROM HESSE     STATUS=OK           614 CALLS     4701 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.031        25.757        .12061E-03   -1.5044    
   2  Prefactor     .10000E-03    28.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.036        92.179        .10720E-03   -1.4959    
   6  norm          6.5749        10.488        .78249E-03   -1.5195    
   7  Prefactor     .10000E-03    50.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10051E-03    95.553        .43872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2296        2.5591        .10918E-03   -1.5409    
  11  Prefactor     9.6230        45.068        .12920E-03   -1.5087    
  12  Prefactor     .10000E-03    88.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.4168        4.7445        .10310E-03   -1.5128    
  14  Prefactor     .10000E-03    73.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    87.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5104        .10147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    34.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.6281        .17829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.582        30.539        .88310E-04   -1.4800    
  20  Prefactor     27.033        18.689        .77049E-04   -1.4668    
  21  norm          1.8194        1.4281        .67807E-04   -1.5438    
  22  Prefactor     .10000E-03    21.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    48.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          21.547        13.413        .86292E-04   -1.4779    
  27  Prefactor     60.031        36.551        .51784E-04   -1.4157    
  28  Prefactor     .42747        .41312        .39346E-03   -1.5577    
  29  Prefactor     .10000E-03    8.9862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0548        .39335        .36061E-03   -.91217    
  31  Prefactor     .84331        .17087        .17999E-03   -.98151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51666e-09
Minuit parameter uncertainties:
  1  25.783
  2  5.58775e-05
  3  1.00916e-05
  4  0.000108561
  5  72.1003
  6  10.4912
  7  8.71062e-05
  8  3.83854e-05
  9  0.013954
  10  2.55921
  11  41.7016
  12  5.31975e-05
  13  4.74476
  14  0.000402348
  15  3.35345e-05
  16  6.89784e-06
  17  7.13502e-05
  18  1.23218e-06
  19  30.5622
  20  18.6929
  21  1.42813
  22  5.2021e-05
  23  6.92347e-05
  24  1.27113e-05
  25  5.77713e-05
  26  13.4151
  27  36.5645
  28  0.413122
  29  7.51684e-07
  30  0.394447
  31  0.170977
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  8.433e-01  1.710e-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.055e+00  3.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/925757/likelihoodResults_419212801_419472001_4FGL_J2147.1+0931_daily_bin694.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) = 4387.49912177
delta logL = -0.00189853108895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4387.49722333
delta logL = -9.4094502856e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4448       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84337       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=   4387.497     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      243 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    110.95        .10205E-01** at limit **
   2  alpha         2.8642        2.9747        .16466        .31070E-08
   3  Normalizat    1.0548        .51740E-01    .36062E-03    .53908E-05
   4  Prefactor     .84332        .23431E-01    .17999E-03   -.17054E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.8642
  Normalizat = 1.05479
  Prefactor  = 0.843315
 **********
 **   18 **HESSE 
 **********

 FCN=   4387.497     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8072        .21164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8642        2.9986        .65863E-02    .14620    
   3  Normalizat    1.0548        .36447        .14425E-04   -.91217    
   4  Prefactor     .84332        .16593        .71996E-05   -.98151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68753e-12
Minuit parameter uncertainties:
  1  6.55832e-07
  2  211.581
  3  0.365335
  4  0.166024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925757': 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) = 4387.49722114
delta logL = 2.1003315851e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  8.433e-01  1.660e-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.055e+00  3.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 326.783 9.518

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/925757/cmap_HighResolution_419212801_419472001_4FGL_J2147.1+0931_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-05', job_status='DONE', photon_flux_upper_limit='1.57e-07', time_completed='2021-09-27 14:59:55.034554', job_id='925757', GAL2='0.84', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632779995.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='694' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:59:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 925757: <4FGL_J2147.1+0931_daily_bin694> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2147.1+0931_daily_bin694 326.783 9.5181 419212801 419472001 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 :                                   694.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            853 sec.

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

