aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 29 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7462
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2147.1+0931_daily_bin1712
RA = 326.783, Dec = 9.5181
tmin = 683078401, tmax = 683337601
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='236109', job_status='RUN', time_executed='2022-09-16 23:27:39.007602', time_epoch_executed='1663396059.01' WHERE source_name='4FGL J2147.1+0931' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236109/ft1_4FGL_J2147.1+0931_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236109/ft2_4FGL_J2147.1+0931_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236109/ft1_4FGL_J2147.1+0931_daily_bin1712.fits outfile=/scratch/kocevski/236109/ft1_filteredMKT_4FGL_J2147.1+0931_daily_bin1712.fits ra=326.783 dec=9.5181 rad=12.0 tmin=683078401.0 tmax=683337601.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 4.94
user 4.58
sys 0.24

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

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

Number of photons that the gtmktime cut: 628

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236109/ft1_filtered_4FGL_J2147.1+0931_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/236109/ft2_4FGL_J2147.1+0931_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/236109/ltcube_683078401_683337601_4FGL_J2147.1+0931_daily_bin1712.fits outfile=/scratch/kocevski/236109/expmap_683078401_683337601_4FGL_J2147.1+0931_daily_bin1712.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/236109/ltcube_683078401_683337601_4FGL_J2147.1+0931_daily_bin1712.fits
.....................!
real 194.48
user 188.97
sys 4.69

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/236109/ft1_filtered_4FGL_J2147.1+0931_daily_bin1712.fits scfile=/scratch/kocevski/236109/ft2_4FGL_J2147.1+0931_daily_bin1712.fits outfile=/scratch/kocevski/236109/cmap_683078401_683337601_4FGL_J2147.1+0931_daily_bin1712.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236109/ft1_filtered_4FGL_J2147.1+0931_daily_bin1712.fits scfile=/scratch/kocevski/236109/ft2_4FGL_J2147.1+0931_daily_bin1712.fits outfile=/scratch/kocevski/236109/cmap_HighResolution_683078401_683337601_4FGL_J2147.1+0931_daily_bin1712.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.56
user 0.43
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/236109/ft1_filtered_4FGL_J2147.1+0931_daily_bin1712.fits', '/scratch/kocevski/236109/ft2_4FGL_J2147.1+0931_daily_bin1712.fits', expMap='/scratch/kocevski/236109/expmap_683078401_683337601_4FGL_J2147.1+0931_daily_bin1712.fits', expCube='/scratch/kocevski/236109/ltcube_683078401_683337601_4FGL_J2147.1+0931_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/236109/Model_4FGL_J2147.1+0931_daily_bin1712.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  0.000e+00  1.000e+06 ( 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 -5.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/236109/ft1_filtered_4FGL_J2147.1+0931_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/236109/ft2_4FGL_J2147.1+0931_daily_bin1712.fits
Exposure map: /scratch/kocevski/236109/expmap_683078401_683337601_4FGL_J2147.1+0931_daily_bin1712.fits
Exposure cube: /scratch/kocevski/236109/ltcube_683078401_683337601_4FGL_J2147.1+0931_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/236109/Model_4FGL_J2147.1+0931_daily_bin1712.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) = 6683.96645349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5814       1.0000          .0000       .10000E+07
     2 'Prefactor '    13.989       1.0000          .0000       .10000E+07
     3 'Prefactor '    .30866E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .35942       1.0000          .0000       .10000E+07
     5 'norm      '    .45453E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .40719E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    8.1059       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.0109       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20473E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    62.289       1.0000          .0000       .10000E+07
    11 'norm      '    .95701E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.2728       1.0000          .0000       .10000E+07
    13 'norm      '    .48418E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .38833E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .15556E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    37.469       1.0000          .0000       .10000E+07
    17 'Prefactor '    .44765E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .13156E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .37652E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    47.673       1.0000          .0000       .10000E+07
    21 'norm      '    .16134E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .37779E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    .22587       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .20910E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2711       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78182       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6683.960     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     1885 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6233        8.7535       -.15941E-05   -.40768E-01
   2  Prefactor     13.999        5.1075       -.56039E-06   -.73317E-02
   3  Prefactor     .11102E-08    6.4260       -.55156E-06** at limit **
   4  Prefactor     .34600E-06    5.5409       -.46605E-06** at limit **
   5  norm           .0000        1.7650       -.49223E-06** at limit **
   6  Prefactor     .18008E-06    49.174       -.81946E-06** at limit **
   7  Prefactor     8.0968        5.7482        .30318E-06    .51509E-03
   8  Prefactor     1.0110        2.4525        .16966E-06   -.79113E-03
   9  Prefactor     .55511E-10    20.994        .47327E-06** at limit **
  10  Prefactor     62.287        2.4601       -.61083E-07    .30741E-01
  11  norm           .0000        .53483        .90884E-07** at limit **
  12  Prefactor     2.9995        129.68        .22250E-05   -.79908E-02
  13  norm          .88818E-09    7.6231       -.15970E-07** at limit **
  14  norm          .33307E-08    5.9480        .75734E-06** at limit **
  15  Prefactor     .12540E-06    5.5038        .60924E-06** at limit **
  16  Prefactor     37.487        4.9634       -.15794E-06    .46950E-01
  17  Prefactor     .22587E-06    6.1883        .18410E-05** at limit **
  18  norm           .0000        .74714       -.11436E-06** at limit **
  19  Prefactor     .16043E-07    12.742       -.95099E-07** at limit **
  20  Prefactor     47.723        9.6720        .31341E-06   -.10803    
  21  norm          .36249E-07    6.0656        .81504E-06** at limit **
  22  Prefactor     .83822E-08    5.5358       -.10738E-05** at limit **
  23  Prefactor     .22614        .16814        .50965E-06    .10239E-03
  24  Prefactor     .10000E-03    3.6767        .97939E-05** at limit **
  25  Normalizat    1.2703        .26573       -.20985E-04    .24591E-04
  26  Prefactor     .78194        .12711        .13326E-04   -.62044E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.62335
  Prefactor  = 13.9991
  Prefactor  = 1.11022e-09
  Prefactor  = 3.46001e-07
  norm       = 0
  Prefactor  = 1.80078e-07
  Prefactor  = 8.09682
  Prefactor  = 1.01101
  Prefactor  = 5.55112e-11
  Prefactor  = 62.2868
  norm       = 0
  Prefactor  = 2.99949
  norm       = 8.88178e-10
  norm       = 3.33067e-09
  Prefactor  = 1.254e-07
  Prefactor  = 37.4869
  Prefactor  = 2.25875e-07
  norm       = 0
  Prefactor  = 1.60427e-08
  Prefactor  = 47.7227
  norm       = 3.62488e-08
  Prefactor  = 8.38218e-09
  Prefactor  = 0.226137
  Prefactor  = 0.0001
  Normalizat = 1.27032
  Prefactor  = 0.781941
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.960     FROM HESSE     STATUS=OK           514 CALLS     2399 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6233        13.067        .42500E-03   -1.5661    
   2  Prefactor     13.999        14.513        .26754E-03   -1.5633    
   3  Prefactor     .11102E-08    6.4523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34600E-06    62.417        .94347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.7593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .18008E-06    49.641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0968        5.7530        .35191E-03   -1.5651    
   8  Prefactor     1.0110        2.4702        .44152E-03   -1.5688    
   9  Prefactor     .55511E-10    20.903        .17006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     62.287        105.01        .12671E-03   -1.5550    
  11  norm           .0000        .53566        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9995        147.87        .68090E-03   -1.5673    
  13  norm          .88818E-09    1.2421        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .33307E-08    9.2693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12540E-06    13.131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     37.487        23.204        .16339E-03   -1.5586    
  17  Prefactor     .22587E-06    14.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .34576        .17714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .16043E-07    15.746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     47.723        24.056        .14484E-03   -1.5570    
  21  norm          .36249E-07    14.379        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .83822E-08    9.4251        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .22614        .17404        .63270E-02   -1.5613    
  24  Prefactor     .10000E-03    3.6726        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2703        .22564        .67215E-01   -.84457    
  26  Prefactor     .78194        .10543        .43480E-01   -1.0040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41497e-07
Minuit parameter uncertainties:
  1  13.0675
  2  14.513
  3  0.00016722
  4  0.00929422
  5  5.58987e-06
  6  0.00597994
  7  5.75302
  8  2.4702
  9  5.1284e-05
  10  105.014
  11  2.57491e-06
  12  42.1212
  13  6.65363e-05
  14  0.000352075
  15  0.00256645
  16  23.2038
  17  0.00355839
  18  1.65799e-06
  19  0.00100443
  20  24.0563
  21  0.00144369
  22  0.000561295
  23  0.174037
  24  1.67151e-06
  25  0.22581
  26  0.105458
Done.

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

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  8.882e-10  6.654e-05  0.000e+00  1.000e+06 ( 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 -5.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.819e-01  1.055e-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.270e+00  2.258e-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: 9.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/236109/likelihoodResults_683078401_683337601_4FGL_J2147.1+0931_daily_bin1712.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) = 6683.95883418
delta logL = 0.0007362856486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6683.88657891
delta logL = 0.0729915517704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85984E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2384       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79190       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=   6683.887     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      322 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85982E-01    .23793        .51883E-04** at limit **
   2  alpha         5.0000        4.6618        .92534E-01** at limit **
   3  Normalizat    1.2385        .27267        .30068E-03    .78267E-05
   4  Prefactor     .79185        .12941        .17823E-03    .25068E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.085982
  alpha      = 5
  Normalizat = 1.23853
  Prefactor  = 0.791855
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.887     FROM HESSE     STATUS=OK            25 CALLS      347 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85982E-01    .23621        .10377E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        4.6557        .18507E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2385        .27231        .12027E-04   -.85420    
   4  Prefactor     .79185        .12942        .71294E-05   -1.0003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44753e-12
Minuit parameter uncertainties:
  1  0.236208
  2  4.90213e-07
  3  0.27262
  4  0.129474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236109': 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) = 6683.88657884
delta logL = 0.0729916259043

Extracting fit parameters...

4FGL J2147.1+0931
   Spectrum: LogParabola
297         norm:  8.598e-02  2.362e-01  0.000e+00  1.000e+06 ( 1.000e-11)
298        alpha:  5.000e+00  4.902e-07  0.000e+00  5.000e+00 ( 1.000e+00)
299         beta:  9.991e-02  0.000e+00 -5.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.919e-01  1.295e-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.239e+00  2.726e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/236109/cmap_HighResolution_683078401_683337601_4FGL_J2147.1+0931_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-05', job_status='DONE', photon_flux_upper_limit='9.49e-08', time_completed='2022-09-16 23:38:51.036302', job_id='236109', GAL2='0.79', fit_tolerance='1e-08', EG2='1.24', EG='1.27', time_epoch_completed='1663396731.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='7.30e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1712' AND source_name='4FGL J2147.1+0931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:38:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 236109: <4FGL_J2147.1+0931_daily_bin1712> in cluster <slac> Done

Job <4FGL_J2147.1+0931_daily_bin1712> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Sep 16 23:25:31 2022
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:26:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:26:59 2022
Terminated at Fri Sep 16 23:38:51 2022
Results reported at Fri Sep 16 23:38:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2147.1+0931_daily_bin1712 326.783 9.5181 683078401 683337601 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 :                                   672.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            800 sec.

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

