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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1696
RA = 327.444, Dec = 19.2859
tmin = 678931201, tmax = 679190401
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='792941', job_status='RUN', time_executed='2022-07-11 00:31:37.940049', time_epoch_executed='1657524697.94' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792941

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792941/ft1_4FGL_J2149.7+1917_daily_bin1696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792941/ft2_4FGL_J2149.7+1917_daily_bin1696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792941/ft1_4FGL_J2149.7+1917_daily_bin1696.fits outfile=/scratch/kocevski/792941/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1696.fits ra=327.444 dec=19.2859 rad=12.0 tmin=678931201.0 tmax=679190401.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.54
user 3.33
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/792941/ft2_4FGL_J2149.7+1917_daily_bin1696.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/792941/ft2_4FGL_J2149.7+1917_daily_bin1696.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/792941/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1696.fits evtable="EVENTS" outfile="/scratch/kocevski/792941/ft1_filtered_4FGL_J2149.7+1917_daily_bin1696.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.33
sys 0.15

Number of photons that the gtmktime cut: 783

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792941/ft1_filtered_4FGL_J2149.7+1917_daily_bin1696.fits" evtable="EVENTS" scfile=/scratch/kocevski/792941/ft2_4FGL_J2149.7+1917_daily_bin1696.fits sctable="SC_DATA" outfile=/scratch/kocevski/792941/ltcube_678931201_679190401_4FGL_J2149.7+1917_daily_bin1696.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/792941/ft2_4FGL_J2149.7+1917_daily_bin1696.fits
.....................!
real 11.87
user 11.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792941/ft1_filtered_4FGL_J2149.7+1917_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/792941/ft2_4FGL_J2149.7+1917_daily_bin1696.fits sctable="SC_DATA" expcube=/scratch/kocevski/792941/ltcube_678931201_679190401_4FGL_J2149.7+1917_daily_bin1696.fits outfile=/scratch/kocevski/792941/expmap_678931201_679190401_4FGL_J2149.7+1917_daily_bin1696.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/792941/ltcube_678931201_679190401_4FGL_J2149.7+1917_daily_bin1696.fits
.....................!
real 190.04
user 184.28
sys 5.46

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 161 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2149.7+1917 @ 327.444 19.2859

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/792941/ft1_filtered_4FGL_J2149.7+1917_daily_bin1696.fits scfile=/scratch/kocevski/792941/ft2_4FGL_J2149.7+1917_daily_bin1696.fits outfile=/scratch/kocevski/792941/cmap_678931201_679190401_4FGL_J2149.7+1917_daily_bin1696.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.444 yref=19.2859 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792941/ft1_filtered_4FGL_J2149.7+1917_daily_bin1696.fits scfile=/scratch/kocevski/792941/ft2_4FGL_J2149.7+1917_daily_bin1696.fits outfile=/scratch/kocevski/792941/cmap_HighResolution_678931201_679190401_4FGL_J2149.7+1917_daily_bin1696.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.444 yref=19.2859 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/792941/ft1_filtered_4FGL_J2149.7+1917_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/792941/ft2_4FGL_J2149.7+1917_daily_bin1696.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/792941/Model_4FGL_J2149.7+1917_daily_bin1696.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/792941/ft1_filtered_4FGL_J2149.7+1917_daily_bin1696.fits.....................!
real 128.43
user 126.97
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/792941/ft1_filtered_4FGL_J2149.7+1917_daily_bin1696.fits', '/scratch/kocevski/792941/ft2_4FGL_J2149.7+1917_daily_bin1696.fits', expMap='/scratch/kocevski/792941/expmap_678931201_679190401_4FGL_J2149.7+1917_daily_bin1696.fits', expCube='/scratch/kocevski/792941/ltcube_678931201_679190401_4FGL_J2149.7+1917_daily_bin1696.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/792941/Model_4FGL_J2149.7+1917_daily_bin1696.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2149.7+1917'

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  7.294e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.521e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/792941/ft1_filtered_4FGL_J2149.7+1917_daily_bin1696.fits
Spacecraft file(s): /scratch/kocevski/792941/ft2_4FGL_J2149.7+1917_daily_bin1696.fits
Exposure map: /scratch/kocevski/792941/expmap_678931201_679190401_4FGL_J2149.7+1917_daily_bin1696.fits
Exposure cube: /scratch/kocevski/792941/ltcube_678931201_679190401_4FGL_J2149.7+1917_daily_bin1696.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/792941/Model_4FGL_J2149.7+1917_daily_bin1696.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) = 8388.42140961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1870       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2322       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5820       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.473       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.975       1.0000         .10000E-03   10000.    
     6 'norm      '    6.2933       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8652       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19910E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.696       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .17522E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.167       1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    63.410       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.648       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .63691       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99266       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8388.419     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2874 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1719        35.988        .38640E-05   -.12623E-04
   2  Prefactor     4.3964        320.49       -.17505E-04    .36204E-05
   3  Prefactor     5.5812        13.495       -.28112E-06    .55297E-05
   4  Prefactor     24.445        32.354        .61477E-07   -.23144E-04
   5  Prefactor     38.975        36.469       -.17105E-06    .84533E-05
   6  norm          6.2930        4.3700        .64464E-07    .26578E-04
   7  Prefactor     6.8631        5.5368        .15741E-06    .23442E-03
   8  Prefactor     .10000E-03    3.5250       -.10275E-05** at limit **
   9  Prefactor     .10000E-03    44.615       -.22259E-06** at limit **
  10  norm          .10000E-03    1.0643       -.60481E-06** at limit **
  11  Prefactor     .10000E-03    20.603       -.81729E-07** at limit **
  12  norm          .10000E-03    .59180       -.15037E-06** at limit **
  13  Prefactor     37.682        27.648        .57775E-06    .22680E-03
  14  Prefactor     .10000E-03    51.860       -.99808E-07** at limit **
  15  norm          .60235E-03    .34034       -.18513E-06** at limit **
  16  Prefactor     17.168        15.336       -.33815E-06   -.21858E-05
  17  norm          .10000E-03    4.1170       -.44736E-06** at limit **
  18  Prefactor     .10000E-03    5.1768       -.15928E-06** at limit **
  19  Prefactor     63.410        62.080       -.33211E-06   -.36564E-05
  20  Prefactor     11.648        8.8794       -.24456E-06    .21843E-04
  21  Normalizat    .63672        .22776        .67368E-05    .17673E-03
  22  Prefactor     .99274        .99775E-01   -.14930E-05    .89026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.17189
  Prefactor  = 4.39642
  Prefactor  = 5.58122
  Prefactor  = 24.4451
  Prefactor  = 38.975
  norm       = 6.29297
  Prefactor  = 6.8631
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.6824
  Prefactor  = 0.0001
  norm       = 0.000602347
  Prefactor  = 17.1684
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.4103
  Prefactor  = 11.6479
  Normalizat = 0.636721
  Prefactor  = 0.99274
 **********
 **   18 **HESSE 
 **********

 FCN=   8388.419     FROM HESSE     STATUS=OK           354 CALLS     3228 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1719        35.349        .22699E-03   -1.5352    
   2  Prefactor     4.3964        317.00        .19587E-03   -1.5289    
   3  Prefactor     5.5812        13.470        .17004E-03   -1.5235    
   4  Prefactor     24.445        32.385        .80973E-04   -1.4719    
   5  Prefactor     38.975        36.444        .64202E-04   -1.4459    
   6  norm          6.2930        4.3621        .15113E-03   -1.5206    
   7  Prefactor     6.8631        5.4825        .15312E-03   -1.5184    
   8  Prefactor     .10000E-03    10.823        .32222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.0707        .17723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .60061        .68905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     37.682        27.283        .65279E-04   -1.4479    
  14  Prefactor     .10000E-03    52.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .60235E-03    .78825        .18326E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.168        15.336        .96665E-04   -1.4879    
  17  norm          .10000E-03    4.2817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     63.410        62.093        .50394E-04   -1.4114    
  20  Prefactor     11.648        8.8781        .11738E-03   -1.5025    
  21  Normalizat    .63672        .24103        .41935E-03   -1.0645    
  22  Prefactor     .99274        .10832        .15729E-03   -.92972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24108e-10
Minuit parameter uncertainties:
  1  21.1932
  2  75.0798
  3  13.4769
  4  32.4087
  5  36.4646
  6  4.36228
  7  5.48285
  8  0.000353514
  9  7.42316e-05
  10  2.37879e-05
  11  3.62008e-06
  12  2.16617e-06
  13  27.2917
  14  5.88744e-06
  15  0.0397989
  16  15.3397
  17  1.4131e-05
  18  6.75383e-06
  19  62.1562
  20  8.87913
  21  0.241428
  22  0.108347
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  3.768e+01  2.729e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.521e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.927e-01  1.083e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  6.367e-01  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.89
Ra Dec: 327.444 19.286
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 6.29e-08 +/- 4.55e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.29e-05

TS (Fixed Index): 2.89
Ra Dec: 327.444 19.286
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/792941/likelihoodResults_678931201_679190401_4FGL_J2149.7+1917_daily_bin1696.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) = 8388.12412696
delta logL = 0.294659873271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8388.08256478
delta logL = 0.336222049136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.363       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3671       1.0000          .0000       10.000    
     3 'Normalizat'    .57794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+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=   8388.083     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      296 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.365        238.19        .10568E-03    .43718E-03
   2  Index         3.3673        6.6406        .55808E-02    .21323E-03
   3  Normalizat    .57790        .27591        .43886E-03   -.41811E-04
   4  Prefactor     1.0110        .12004        .15604E-03   -.52602E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3655
  Index      = 3.36726
  Normalizat = 0.577897
  Prefactor  = 1.01098
 **********
 **   18 **HESSE 
 **********

 FCN=   8388.083     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.365        34.009        .42273E-05   -1.4950    
   2  Index         3.3673        1.4202        .22323E-03   -.33265    
   3  Normalizat    .57790        .24247        .17554E-04   -1.0893    
   4  Prefactor     1.0110        .10919        .62417E-05   -.92364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43384e-10
Minuit parameter uncertainties:
  1  34.0545
  2  1.44251
  3  0.242916
  4  0.109217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792941': 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) = 8388.08256435
delta logL = 0.336222485103

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.437e+01  3.405e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  3.367e+00  1.443e+00  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.011e+00  1.092e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  5.779e-01  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.75
Ra Dec: 327.444 19.286
Photon Index (Free Index): 3.37 +/- 1.44
Photon Flux (Free Index): 9.89e-08 +/- 6.65e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.10e-05

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/792941/cmap_HighResolution_678931201_679190401_4FGL_J2149.7+1917_daily_bin1696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='6.29e-08', energy_flux2='1.71e-05', photon_flux_error='4.55e-08', dlogl='3.36e-01', energy_flux='1.78e-05', photon_flux2='9.89e-08', job_status='DONE', time_completed='2022-07-11 00:45:22.953719', photon_index_error2='1.44', photon_index2='3.37', ts='2.89', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.10e-05', EG='0.64', time_epoch_completed='1657525522.95', return_code='0', job_id='792941', GAL2='1.01', EG2='0.58', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='6.65e-08', ts2='3.75', photon_index='2.52' WHERE bin_id='1696' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 11 00:45:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 792941: <4FGL_J2149.7+1917_daily_bin1696> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1696> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jul 11 00:30:34 2022
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 11 00:30:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 11 00:30:35 2022
Terminated at Mon Jul 11 00:45:23 2022
Results reported at Mon Jul 11 00:45:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1696 327.444 19.2859 678931201 679190401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2149.7+1917 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   827.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            889 sec.

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

