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


Performing analysis on: 4FGL_J2147.1+0931_daily_bin731
RA = 326.783, Dec = 9.5181
tmin = 428803201, tmax = 429062401
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='925809', job_status='RUN', time_executed='2021-09-27 14:50:41.734944', time_epoch_executed='1632779441.73' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925809

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925809/ft1_4FGL_J2147.1+0931_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925809/ft2_4FGL_J2147.1+0931_daily_bin731.fits


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

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

Done.
real 6.54
user 6.25
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/925809/ft2_4FGL_J2147.1+0931_daily_bin731.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/925809/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/925809/ft1_filtered_4FGL_J2147.1+0931_daily_bin731.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.50
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925809/ft1_filtered_4FGL_J2147.1+0931_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/925809/ft2_4FGL_J2147.1+0931_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/925809/ltcube_428803201_429062401_4FGL_J2147.1+0931_daily_bin731.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/925809/ft2_4FGL_J2147.1+0931_daily_bin731.fits
.....................!
real 13.61
user 13.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925809/ft1_filtered_4FGL_J2147.1+0931_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/925809/ft2_4FGL_J2147.1+0931_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/925809/ltcube_428803201_429062401_4FGL_J2147.1+0931_daily_bin731.fits outfile=/scratch/kocevski/925809/expmap_428803201_429062401_4FGL_J2147.1+0931_daily_bin731.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/925809/ltcube_428803201_429062401_4FGL_J2147.1+0931_daily_bin731.fits
.....................!
real 190.84
user 185.44
sys 4.90

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/925809/ft1_filtered_4FGL_J2147.1+0931_daily_bin731.fits scfile=/scratch/kocevski/925809/ft2_4FGL_J2147.1+0931_daily_bin731.fits outfile=/scratch/kocevski/925809/cmap_428803201_429062401_4FGL_J2147.1+0931_daily_bin731.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.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/925809/ft1_filtered_4FGL_J2147.1+0931_daily_bin731.fits', '/scratch/kocevski/925809/ft2_4FGL_J2147.1+0931_daily_bin731.fits', expMap='/scratch/kocevski/925809/expmap_428803201_429062401_4FGL_J2147.1+0931_daily_bin731.fits', expCube='/scratch/kocevski/925809/ltcube_428803201_429062401_4FGL_J2147.1+0931_daily_bin731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/925809/Model_4FGL_J2147.1+0931_daily_bin731.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/925809/ft1_filtered_4FGL_J2147.1+0931_daily_bin731.fits
Spacecraft file(s): /scratch/kocevski/925809/ft2_4FGL_J2147.1+0931_daily_bin731.fits
Exposure map: /scratch/kocevski/925809/expmap_428803201_429062401_4FGL_J2147.1+0931_daily_bin731.fits
Exposure cube: /scratch/kocevski/925809/ltcube_428803201_429062401_4FGL_J2147.1+0931_daily_bin731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/925809/Model_4FGL_J2147.1+0931_daily_bin731.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3129.51383402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.785       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10918E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9400       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .62597E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    104.89       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20977E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.113       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.278       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13479       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7561       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23277E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    110.25       1.0000         .10000E-03   10000.    
    16 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    70.826       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20083E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    138.84       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.773       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3722       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16399E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.174       1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.461       1.0000         .10000E-03   10000.    
    25 'Prefactor '    153.59       1.0000         .10000E-03   10000.    
    26 'norm      '    12.998       1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.864       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .48581E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .18257E-02   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .70997       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .77462       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=   3129.356     FROM MIGRAD    STATUS=CONVERGED    919 CALLS     3713 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.331        30.730        .74371E-06    .94988E-04
   2  Prefactor     .10000E-03    32.117       -.31414E-05** at limit **
   3  Prefactor     6.7469        45.537       -.44464E-06    .65701E-04
   4  Prefactor     .10000E-03    137.45       -.71368E-06** at limit **
   5  Prefactor     116.95        127.46        .15373E-05    .55773E-04
   6  norm          .10000E-03    5.8544       -.70038E-06** at limit **
   7  Prefactor     .10106E-03    39.260       -.21325E-05** at limit **
   8  Prefactor     .10000E-03    7.0422       -.82274E-06** at limit **
   9  Prefactor     32.056        24.964       -.11728E-05    .45768E-04
  10  Prefactor     .10000E-03    4.7566        .10205E-05** at limit **
  11  Prefactor     42.109        72.648        .54738E-06    .29164E-04
  12  Prefactor     .10000E-03    323.63        .63933E-05** at limit **
  13  norm          3.0143        7.6665        .28172E-05    .20652E-03
  14  Prefactor     .10000E-03    53.344       -.45237E-07** at limit **
  15  Prefactor     113.96        101.17        .25854E-06    .25873E-04
  16  norm          .10000E-03    1.4416        .18482E-07** at limit **
  17  norm          70.645        50.307       -.45477E-07    .75755E-04
  18  Prefactor     .10000E-03    9.9971       -.18776E-05** at limit **
  19  Prefactor     132.54        110.28       -.66018E-05   -.90134E-05
  20  Prefactor     19.546        24.371       -.65098E-06    .10659E-04
  21  norm          1.4326        3.0256        .73665E-06    .21875E-03
  22  Prefactor     .10000E-03    18.020        .88815E-06** at limit **
  23  Prefactor     21.576        35.891       -.27468E-06    .60804E-05
  24  Prefactor     28.133        45.642        .45841E-06    .29891E-04
  25  Prefactor     159.47        86.714        .44383E-06    .19588E-04
  26  norm          13.074        15.188       -.33846E-06   -.44880E-04
  27  Prefactor     22.775        43.573       -.15125E-05   -.58799E-04
  28  Prefactor     .54405E-01    .40032        .20101E-06    .77810E-04
  29  Prefactor     .10000E-03    10.598       -.17550E-06** at limit **
  30  Normalizat    .70026        .48188       -.14880E-04    .12790E-03
  31  Prefactor     .77511        .19065        .76342E-05    .87024E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.3307
  Prefactor  = 0.0001
  Prefactor  = 6.74692
  Prefactor  = 0.0001
  Prefactor  = 116.954
  norm       = 0.0001
  Prefactor  = 0.000101055
  Prefactor  = 0.0001
  Prefactor  = 32.0556
  Prefactor  = 0.0001
  Prefactor  = 42.1085
  Prefactor  = 0.000100001
  norm       = 3.01427
  Prefactor  = 0.0001
  Prefactor  = 113.958
  norm       = 0.0001
  norm       = 70.6446
  Prefactor  = 0.0001
  Prefactor  = 132.544
  Prefactor  = 19.5459
  norm       = 1.43257
  Prefactor  = 0.0001
  Prefactor  = 21.5761
  Prefactor  = 28.1328
  Prefactor  = 159.473
  norm       = 13.0743
  Prefactor  = 22.7751
  Prefactor  = 0.0544053
  Prefactor  = 0.0001
  Normalizat = 0.700261
  Prefactor  = 0.77511
 **********
 **   18 **HESSE 
 **********

 FCN=   3129.356     FROM HESSE     STATUS=OK           634 CALLS     4347 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.331        30.741        .63548E-04   -1.4453    
   2  Prefactor     .10000E-03    32.326        .18155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.7469        45.624        .16476E-03   -1.5188    
   4  Prefactor     .10000E-03    139.50        .18876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     116.95        127.16        .19632E-03   -1.3541    
   6  norm          .10000E-03    5.8878        .13228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10106E-03    47.963        .97181E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0622        .14489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.056        24.872        .70708E-04   -1.4575    
  10  Prefactor     .10000E-03    4.8016        .11861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     42.109        72.328        .61653E-04   -1.4409    
  12  Prefactor     .10000E-03    323.72        .19352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0143        7.6729        .20108E-03   -1.5361    
  14  Prefactor     .10000E-03    53.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     113.96        100.98        .19154E-03   -1.3569    
  16  norm          .10000E-03    1.4440        .65581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          70.645        50.221        .23850E-03   -1.4025    
  18  Prefactor     .10000E-03    10.040        .17278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     132.54        110.64        .17093E-03   -1.3400    
  20  Prefactor     19.546        24.354        .90072E-04   -1.4823    
  21  norm          1.4326        2.9837        .12634E-03   -1.5469    
  22  Prefactor     .10000E-03    18.033        .20399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.576        35.854        .85061E-04   -1.4779    
  24  Prefactor     28.133        45.537        .75096E-04   -1.4647    
  25  Prefactor     159.47        86.656        .16263E-03   -1.3176    
  26  norm          13.074        15.173        .11110E-03   -1.4985    
  27  Prefactor     22.775        42.543        .81998E-04   -1.4753    
  28  Prefactor     .54405E-01    .74554        .58321E-03   -1.5661    
  29  Prefactor     .10000E-03    10.607        .17785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .70026        .49505        .43713E-03   -1.0388    
  31  Prefactor     .77511        .19862        .18250E-03   -1.0065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14945e-10
Minuit parameter uncertainties:
  1  30.7533
  2  0.000233252
  3  35.128
  4  0.000213319
  5  127.462
  6  2.67094e-05
  7  0.0142392
  8  1.68338e-05
  9  24.8805
  10  1.48554e-05
  11  72.4791
  12  0.00106466
  13  7.67545
  14  8.33966e-06
  15  101.131
  16  1.09516e-07
  17  50.2512
  18  6.7335e-05
  19  110.816
  20  24.3665
  21  2.984
  22  4.96336e-05
  23  35.8901
  24  45.5929
  25  86.7254
  26  15.177
  27  42.6001
  28  0.402433
  29  1.05556e-05
  30  0.498252
  31  0.198801
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  7.751e-01  1.988e-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:  7.003e-01  4.983e-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.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/925809/likelihoodResults_428803201_429062401_4FGL_J2147.1+0931_daily_bin731.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) = 3129.35866123
delta logL = -0.00311490731747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3129.35554631
delta logL = 1.53777364176e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4282       1.0000          .0000       5.0000    
     3 'Normalizat'    .70025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77513       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=   3129.356     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      227 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8320        .65632E-03** at limit **
   2  alpha         2.2393        2.7640        .16469        .19190E-07
   3  Normalizat    .70025        .42566        .43722E-03    .21868E-04
   4  Prefactor     .77511        .18876        .18249E-03    .58037E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.23934
  Normalizat = 0.700254
  Prefactor  = 0.775112
 **********
 **   18 **HESSE 
 **********

 FCN=   3129.356     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4704        .13126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2393        3.2509        .65877E-02   -.10446    
   3  Normalizat    .70025        .42586        .17489E-04   -1.0388    
   4  Prefactor     .77511        .18885        .36498E-04   -1.0065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79178e-12
Minuit parameter uncertainties:
  1  4.03223e-06
  2  170.294
  3  0.427887
  4  0.189009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925809': 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) = 3129.3555457
delta logL = 6.18956164544e-07

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  1.000e-04  4.032e-06  1.000e-04  1.000e+04 ( 1.000e-11)
298        alpha:  2.239e+00  1.703e+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:  7.751e-01  1.890e-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:  7.003e-01  4.279e-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/925809/cmap_HighResolution_428803201_429062401_4FGL_J2147.1+0931_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-05', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-09-27 15:00:29.269453', job_id='925809', GAL2='0.78', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632780029.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='6.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='731' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 15:00:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 925809: <4FGL_J2147.1+0931_daily_bin731> in cluster <slac> Done

Job <4FGL_J2147.1+0931_daily_bin731> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 14:45:47 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 14:48:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 14:48:20 2021
Terminated at Mon Sep 27 15:00:30 2021
Results reported at Mon Sep 27 15:00:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2147.1+0931_daily_bin731 326.783 9.5181 428803201 429062401 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 :                                   586.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            883 sec.

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

