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


Performing analysis on: 4FGL_J2149.6+0323_daily_bin1669
RA = 327.424, Dec = 3.3959
tmin = 671932801, tmax = 672192001
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='692149', job_status='RUN', time_executed='2022-04-21 00:35:59.777952', time_epoch_executed='1650526559.78' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='1669'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692149/ft1_4FGL_J2149.6+0323_daily_bin1669.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692149/ft2_4FGL_J2149.6+0323_daily_bin1669.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692149/ft1_4FGL_J2149.6+0323_daily_bin1669.fits outfile=/scratch/kocevski/692149/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1669.fits ra=327.424 dec=3.3959 rad=12.0 tmin=671932801.0 tmax=672192001.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 3.73
user 3.51
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/692149/ft2_4FGL_J2149.6+0323_daily_bin1669.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/692149/ft2_4FGL_J2149.6+0323_daily_bin1669.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/692149/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1669.fits evtable="EVENTS" outfile="/scratch/kocevski/692149/ft1_filtered_4FGL_J2149.6+0323_daily_bin1669.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 839

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692149/ft1_filtered_4FGL_J2149.6+0323_daily_bin1669.fits" evtable="EVENTS" scfile=/scratch/kocevski/692149/ft2_4FGL_J2149.6+0323_daily_bin1669.fits sctable="SC_DATA" outfile=/scratch/kocevski/692149/ltcube_671932801_672192001_4FGL_J2149.6+0323_daily_bin1669.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/692149/ft2_4FGL_J2149.6+0323_daily_bin1669.fits
.....................!
real 12.17
user 11.84
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692149/ft1_filtered_4FGL_J2149.6+0323_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/692149/ft2_4FGL_J2149.6+0323_daily_bin1669.fits sctable="SC_DATA" expcube=/scratch/kocevski/692149/ltcube_671932801_672192001_4FGL_J2149.6+0323_daily_bin1669.fits outfile=/scratch/kocevski/692149/expmap_671932801_672192001_4FGL_J2149.6+0323_daily_bin1669.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/692149/ltcube_671932801_672192001_4FGL_J2149.6+0323_daily_bin1669.fits
.....................!
real 190.82
user 185.93
sys 4.51

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 J2149.6+0323 @ 327.424 3.3959

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/692149/ft1_filtered_4FGL_J2149.6+0323_daily_bin1669.fits scfile=/scratch/kocevski/692149/ft2_4FGL_J2149.6+0323_daily_bin1669.fits outfile=/scratch/kocevski/692149/cmap_671932801_672192001_4FGL_J2149.6+0323_daily_bin1669.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=327.424 yref=3.3959 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692149/ft1_filtered_4FGL_J2149.6+0323_daily_bin1669.fits scfile=/scratch/kocevski/692149/ft2_4FGL_J2149.6+0323_daily_bin1669.fits outfile=/scratch/kocevski/692149/cmap_HighResolution_671932801_672192001_4FGL_J2149.6+0323_daily_bin1669.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=327.424 yref=3.3959 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692149/ft1_filtered_4FGL_J2149.6+0323_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/692149/ft2_4FGL_J2149.6+0323_daily_bin1669.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692149/Model_4FGL_J2149.6+0323_daily_bin1669.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/692149/ft1_filtered_4FGL_J2149.6+0323_daily_bin1669.fits.....................!
real 88.20
user 86.76
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/692149/ft1_filtered_4FGL_J2149.6+0323_daily_bin1669.fits', '/scratch/kocevski/692149/ft2_4FGL_J2149.6+0323_daily_bin1669.fits', expMap='/scratch/kocevski/692149/expmap_671932801_672192001_4FGL_J2149.6+0323_daily_bin1669.fits', expCube='/scratch/kocevski/692149/ltcube_671932801_672192001_4FGL_J2149.6+0323_daily_bin1669.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/692149/Model_4FGL_J2149.6+0323_daily_bin1669.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2149.6+0323'

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.704e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.157e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/692149/ft1_filtered_4FGL_J2149.6+0323_daily_bin1669.fits
Spacecraft file(s): /scratch/kocevski/692149/ft2_4FGL_J2149.6+0323_daily_bin1669.fits
Exposure map: /scratch/kocevski/692149/expmap_671932801_672192001_4FGL_J2149.6+0323_daily_bin1669.fits
Exposure cube: /scratch/kocevski/692149/ltcube_671932801_672192001_4FGL_J2149.6+0323_daily_bin1669.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/692149/Model_4FGL_J2149.6+0323_daily_bin1669.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) = 9166.37001761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26834E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4408       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3612       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.519       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9219       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13854E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.046       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.896       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.111       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.128       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1887       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81515       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+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=   9166.279     FROM MIGRAD    STATUS=CONVERGED    983 CALLS     3197 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.806        .18142E-02** at limit **
   2  Prefactor     .10000E-03    25.743        .36285E-03** at limit **
   3  Prefactor     .10000E-03    5.7018        .18142E-02** at limit **
   4  Prefactor     .10000E-03    33.021        .15900    ** at limit **
   5  Prefactor     .10000E-03    18.755        .18142E-02** at limit **
   6  Prefactor     .10000E-03    25.482        .18142E-02** at limit **
   7  Prefactor     6.4416        5.5388        .15814E-03   -.16017E-03
   8  Prefactor     .10000E-03    5.0312        .18142E-02** at limit **
   9  Prefactor     2.3617        2.2030        .12767E-03    .34194E-04
  10  Prefactor     18.519        22.412        .93070E-04   -.45685E-04
  11  Prefactor     .10000E-03    99.094        .18142E-02** at limit **
  12  Prefactor     .10000E-03    139.06        .18142E-02** at limit **
  13  Prefactor     .10000E-03    23.610        .18142E-02** at limit **
  14  norm          .10000E-03    4.7913        .16874E-02** at limit **
  15  norm          1.9143        28.182        .29972E-03   -.52346E-04
  16  Prefactor     .10000E-03    3.2650        .16823E-02** at limit **
  17  Prefactor     .10000E-03    28.066        .35977E-02** at limit **
  18  Prefactor     22.037        19.260        .85308E-04   -.32251E-04
  19  Prefactor     25.899        14.488        .78720E-04   -.27151E-04
  20  Prefactor     .10000E-03    9.1316        .18142E-02** at limit **
  21  Prefactor     24.128        32.104        .81577E-04   -.20068E-04
  22  Prefactor     19.133        10.876        .91579E-04   -.25325E-04
  23  Normalizat    1.1886        .24260        .30818E-03   -.20687E-03
  24  Prefactor     .81505        .11750        .18667E-03   -.55310E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.44164
  Prefactor  = 0.0001
  Prefactor  = 2.3617
  Prefactor  = 18.5188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.91426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0366
  Prefactor  = 25.8994
  Prefactor  = 0.0001
  Prefactor  = 24.1278
  Prefactor  = 19.1335
  Normalizat = 1.18861
  Prefactor  = 0.815051
 **********
 **   18 **HESSE 
 **********

 FCN=   9166.279     FROM HESSE     STATUS=OK           383 CALLS     3580 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.744        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.311        .15797       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.4416        5.5385        .63258E-05   -1.5200    
   8  Prefactor     .10000E-03    5.0322        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3617        2.2026        .51068E-05   -1.5401    
  10  Prefactor     18.519        22.408        .37228E-05   -1.4847    
  11  Prefactor     .10000E-03    99.147        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    139.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.8204        .33748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9143        28.154        .11989E-04   -1.5431    
  16  Prefactor     .10000E-03    3.2659        .33647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.686        .71955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.037        19.264        .34123E-05   -1.4769    
  19  Prefactor     25.899        14.486        .31488E-05   -1.4690    
  20  Prefactor     .10000E-03    9.1336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.128        32.111        .32631E-05   -1.4725    
  22  Prefactor     19.133        10.876        .36631E-05   -1.4833    
  23  Normalizat    1.1886        .24278        .12327E-04   -.86955    
  24  Prefactor     .81505        .11760        .37333E-04   -.99176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2671e-10
Minuit parameter uncertainties:
  1  9.69969e-06
  2  0.000121076
  3  3.89476e-06
  4  0.000172576
  5  4.15405e-06
  6  9.42426e-05
  7  5.5389
  8  2.13533e-06
  9  2.2027
  10  22.4179
  11  0.000157291
  12  0.000378838
  13  0.000147448
  14  3.32145e-05
  15  14.6906
  16  6.59091e-06
  17  1.6168e-05
  18  19.2696
  19  14.4882
  20  9.51648e-06
  21  32.1343
  22  10.8766
  23  0.243008
  24  0.11764
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  6.591e-06  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.157e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.151e-01  1.176e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.189e+00  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 327.424 3.396
Photon Flux Upper Limit: 5.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/692149/likelihoodResults_671932801_672192001_4FGL_J2149.6+0323_daily_bin1669.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9166.28011223
delta logL = -0.00145914229688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9166.27865308
delta logL = 3.34875949193e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1536       1.0000          .0000       10.000    
     3 'Normalizat'    1.1886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81505       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9166.279     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6767        .90712E-02** at limit **
   2  Index         2.1506        8.9133        .50000        .72651E-05
   3  Normalizat    1.1886        .34163E-02    .69652E-01    .14607E-03
   4  Prefactor     .81505        .17569E-02    .43913E-01    .17888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.15064
  Normalizat = 1.18861
  Prefactor  = 0.815052
 **********
 **   18 **HESSE 
 **********

 FCN=   9166.279     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.568        .16831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1506        8.8640        .50000       -.60635    
   3  Normalizat    1.1886        .13891E-01    .30818E-03   -.86956    
   4  Prefactor     .81505        .71500E-02    .18667E-03   -.99176    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.40987e-08
Minuit parameter uncertainties:
  1  3.03915e-05
  2  170.856
  3  0.0138913
  4  0.00714999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692149': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9166.27865308
delta logL = 1.06592779048e-08

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  3.039e-05  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.151e+00  1.709e+02  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.151e-01  7.150e-03  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.189e+00  1.389e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 327.424 3.396

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/692149/cmap_HighResolution_671932801_672192001_4FGL_J2149.6+0323_daily_bin1669.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2022-04-21 00:51:12.886865', job_id='692149', GAL2='0.82', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1650527472.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1669' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Apr 21 00:51:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 692149: <4FGL_J2149.6+0323_daily_bin1669> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin1669> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Apr 21 00:35:32 2022
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Apr 21 00:35:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Apr 21 00:35:33 2022
Terminated at Thu Apr 21 00:51:13 2022
Results reported at Thu Apr 21 00:51:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin1669 327.424 3.3959 671932801 672192001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2149.6+0323 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   914.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             353.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            941 sec.

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

