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


Performing analysis on: 4FGL_J2149.6+0323_daily_bin1670
RA = 327.424, Dec = 3.3959
tmin = 672192001, tmax = 672451201
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='875872', job_status='RUN', time_executed='2022-04-24 00:48:47.370396', time_epoch_executed='1650786527.37' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='1670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875872

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875872/ft1_4FGL_J2149.6+0323_daily_bin1670.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875872/ft2_4FGL_J2149.6+0323_daily_bin1670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875872/ft1_4FGL_J2149.6+0323_daily_bin1670.fits outfile=/scratch/kocevski/875872/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1670.fits ra=327.424 dec=3.3959 rad=12.0 tmin=672192001.0 tmax=672451201.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.07
user 4.82
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875872/ft2_4FGL_J2149.6+0323_daily_bin1670.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/875872/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1670.fits evtable="EVENTS" outfile="/scratch/kocevski/875872/ft1_filtered_4FGL_J2149.6+0323_daily_bin1670.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.34
sys 0.15

Number of photons that the gtmktime cut: 765

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875872/ft1_filtered_4FGL_J2149.6+0323_daily_bin1670.fits" evtable="EVENTS" scfile=/scratch/kocevski/875872/ft2_4FGL_J2149.6+0323_daily_bin1670.fits sctable="SC_DATA" outfile=/scratch/kocevski/875872/ltcube_672192001_672451201_4FGL_J2149.6+0323_daily_bin1670.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/875872/ft2_4FGL_J2149.6+0323_daily_bin1670.fits
.....................!
real 12.27
user 11.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875872/ft1_filtered_4FGL_J2149.6+0323_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/875872/ft2_4FGL_J2149.6+0323_daily_bin1670.fits sctable="SC_DATA" expcube=/scratch/kocevski/875872/ltcube_672192001_672451201_4FGL_J2149.6+0323_daily_bin1670.fits outfile=/scratch/kocevski/875872/expmap_672192001_672451201_4FGL_J2149.6+0323_daily_bin1670.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/875872/ltcube_672192001_672451201_4FGL_J2149.6+0323_daily_bin1670.fits
.....................!
real 190.90
user 186.00
sys 4.56

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/875872/ft1_filtered_4FGL_J2149.6+0323_daily_bin1670.fits scfile=/scratch/kocevski/875872/ft2_4FGL_J2149.6+0323_daily_bin1670.fits outfile=/scratch/kocevski/875872/cmap_672192001_672451201_4FGL_J2149.6+0323_daily_bin1670.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.79
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875872/ft1_filtered_4FGL_J2149.6+0323_daily_bin1670.fits scfile=/scratch/kocevski/875872/ft2_4FGL_J2149.6+0323_daily_bin1670.fits outfile=/scratch/kocevski/875872/cmap_HighResolution_672192001_672451201_4FGL_J2149.6+0323_daily_bin1670.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.55
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875872/ft1_filtered_4FGL_J2149.6+0323_daily_bin1670.fits', '/scratch/kocevski/875872/ft2_4FGL_J2149.6+0323_daily_bin1670.fits', expMap='/scratch/kocevski/875872/expmap_672192001_672451201_4FGL_J2149.6+0323_daily_bin1670.fits', expCube='/scratch/kocevski/875872/ltcube_672192001_672451201_4FGL_J2149.6+0323_daily_bin1670.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875872/Model_4FGL_J2149.6+0323_daily_bin1670.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/875872/ft1_filtered_4FGL_J2149.6+0323_daily_bin1670.fits
Spacecraft file(s): /scratch/kocevski/875872/ft2_4FGL_J2149.6+0323_daily_bin1670.fits
Exposure map: /scratch/kocevski/875872/expmap_672192001_672451201_4FGL_J2149.6+0323_daily_bin1670.fits
Exposure cube: /scratch/kocevski/875872/ltcube_672192001_672451201_4FGL_J2149.6+0323_daily_bin1670.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875872/Model_4FGL_J2149.6+0323_daily_bin1670.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) = 8400.33095151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9169       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.910       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7971       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5716       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8505       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    20.635       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.643       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0223       1.0000         .10000E-03   10000.    
    21 'Prefactor '    73.734       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0248       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .69191       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0241       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.

 FCN=   8400.322     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2682 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.524        .10605E-06** at limit **
   2  Prefactor     .10000E-03    13.149        .34351E-05** at limit **
   3  Prefactor     2.9146        15.642       -.82118E-06   -.25921E-04
   4  Prefactor     26.911        28.529        .16772E-05    .29196E-04
   5  Prefactor     .10000E-03    23.725       -.88312E-06** at limit **
   6  Prefactor     3.7794        51.080       -.49698E-04   -.45375E-04
   7  Prefactor     1.5697        1.3371        .38262E-06   -.26705E-02
   8  Prefactor     .10000E-03    2.0261       -.37966E-07** at limit **
   9  Prefactor     1.8514        1.5294        .11983E-05    .11872E-02
  10  Prefactor     .10000E-03    19.696        .15810E-05** at limit **
  11  Prefactor     .10000E-03    20.672        .25422E-05** at limit **
  12  Prefactor     .10000E-03    20.172        .18397E-05** at limit **
  13  Prefactor     .10000E-03    16.368       -.37101E-05** at limit **
  14  norm          .10000E-03    .80098       -.23826E-06** at limit **
  15  norm          20.638        17.132        .91188E-06    .99017E-04
  16  Prefactor     .10000E-03    2.5801        .47718E-08** at limit **
  17  Prefactor     .10000E-03    9.1024       -.28682E-06** at limit **
  18  Prefactor     .10000E-03    15.107       -.36603E-05** at limit **
  19  Prefactor     12.645        17.393        .41558E-06    .15345E-04
  20  Prefactor     8.0235        16.347       -.92359E-06    .79026E-05
  21  Prefactor     73.737        34.273        .20123E-05    .48847E-04
  22  Prefactor     4.0249        7.7666       -.41327E-06   -.22571E-04
  23  Normalizat    .69172        .19965        .27139E-05    .10349E-03
  24  Prefactor     1.0242        .10157       -.28808E-06    .33290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.91462
  Prefactor  = 26.9106
  Prefactor  = 0.0001
  Prefactor  = 3.77939
  Prefactor  = 1.56971
  Prefactor  = 0.0001
  Prefactor  = 1.85142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.6376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6449
  Prefactor  = 8.02354
  Prefactor  = 73.7365
  Prefactor  = 4.02486
  Normalizat = 0.691724
  Prefactor  = 1.0242
 **********
 **   18 **HESSE 
 **********

 FCN=   8400.322     FROM HESSE     STATUS=OK           393 CALLS     3075 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9146        15.635        .23788E-03   -1.5367    
   4  Prefactor     26.911        28.547        .77227E-04   -1.4670    
   5  Prefactor     .10000E-03    23.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7794        51.357        .20715E-03   -1.5319    
   7  Prefactor     1.5697        4.7928        .16671E-02   -1.5457    
   8  Prefactor     .10000E-03    2.0281        .12741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8514        1.5246        .95483E-04   -1.5436    
  10  Prefactor     .10000E-03    19.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.2186        .15736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          20.638        16.998        .88172E-04   -1.4799    
  16  Prefactor     .10000E-03    2.5884        .14375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.2500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.645        17.300        .11266E-03   -1.4997    
  20  Prefactor     8.0235        16.262        .14156E-03   -1.5141    
  21  Prefactor     73.737        34.292        .46757E-04   -1.3988    
  22  Prefactor     4.0249        7.7584        .20101E-03   -1.5307    
  23  Normalizat    .69172        .23118        .36950E-03   -1.0422    
  24  Prefactor     1.0242        .11940        .16504E-03   -.91927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07041e-08
Minuit parameter uncertainties:
  1  1.75627e-06
  2  5.87938e-06
  3  13.5063
  4  28.5612
  5  5.41512e-05
  6  27.8927
  7  4.79397
  8  1.49974e-06
  9  1.52463
  10  6.76664e-05
  11  0.000109214
  12  7.3297e-07
  13  3.32518e-05
  14  2.08815e-05
  15  17.002
  16  4.96835e-06
  17  1.26381e-05
  18  6.26227e-05
  19  17.3069
  20  16.2707
  21  34.3009
  22  7.76036
  23  0.231504
  24  0.119436
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  4.968e-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:  1.024e+00  1.194e-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:  6.917e-01  2.315e-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.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875872/likelihoodResults_672192001_672451201_4FGL_J2149.6+0323_daily_bin1670.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) = 8400.3236998
delta logL = -0.0018398860866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8400.32185984
delta logL = 6.77682692185e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1430       1.0000          .0000       10.000    
     3 'Normalizat'    .69171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0242       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=   8400.322     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      196 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.655        .90712E-02** at limit **
   2  Index         2.1297        8.4703        .50000        .41004E-04
   3  Normalizat    .69172        .16367E-01    .83436E-01    .95386E-04
   4  Prefactor     1.0242        .88048E-02    .41746E-01    .10062E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12972
  Normalizat = 0.691725
  Prefactor  = 1.02419
 **********
 **   18 **HESSE 
 **********

 FCN=   8400.322     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      223 TOTAL
                     EDM=   .36E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    228.41        .14481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1297        8.2341        .20000       -.61145    
   3  Normalizat    .69172        .48615E-01    .36950E-03   -1.0422    
   4  Prefactor     1.0242        .26200E-01    .16504E-03   -.91927    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.00035927
Minuit parameter uncertainties:
  1  0.000150064
  2  1891.49
  3  0.048618
  4  0.0262001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875872': 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) = 8400.32185964
delta logL = 2.76901118923e-07

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.501e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.130e+00  1.891e+03  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:  1.024e+00  2.620e-02  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:  6.917e-01  4.862e-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/875872/cmap_HighResolution_672192001_672451201_4FGL_J2149.6+0323_daily_bin1670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', job_status='DONE', photon_flux_upper_limit='5.28e-08', time_completed='2022-04-24 01:02:16.442625', job_id='875872', GAL2='1.02', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1650787336.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1670' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr 24 01:02:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 875872: <4FGL_J2149.6+0323_daily_bin1670> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin1670> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Apr 24 00:45:43 2022
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:47:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:47:49 2022
Terminated at Sun Apr 24 01:02:18 2022
Results reported at Sun Apr 24 01:02:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin1670 327.424 3.3959 672192001 672451201 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 :                                   811.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            995 sec.

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

