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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1726
RA = 327.444, Dec = 19.2859
tmin = 686707201, tmax = 686966401
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='88279', job_status='RUN', time_executed='2022-10-09 00:36:25.350351', time_epoch_executed='1665300985.35' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88279

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88279/ft1_4FGL_J2149.7+1917_daily_bin1726.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88279/ft2_4FGL_J2149.7+1917_daily_bin1726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88279/ft1_4FGL_J2149.7+1917_daily_bin1726.fits outfile=/scratch/kocevski/88279/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1726.fits ra=327.444 dec=19.2859 rad=12.0 tmin=686707201.0 tmax=686966401.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.06
user 2.83
sys 0.21

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

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

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

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

Number of photons that the gtmktime cut: 496

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88279/ft1_filtered_4FGL_J2149.7+1917_daily_bin1726.fits" evtable="EVENTS" scfile=/scratch/kocevski/88279/ft2_4FGL_J2149.7+1917_daily_bin1726.fits sctable="SC_DATA" outfile=/scratch/kocevski/88279/ltcube_686707201_686966401_4FGL_J2149.7+1917_daily_bin1726.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/88279/ft2_4FGL_J2149.7+1917_daily_bin1726.fits
.....................!
real 13.44
user 13.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88279/ft1_filtered_4FGL_J2149.7+1917_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/88279/ft2_4FGL_J2149.7+1917_daily_bin1726.fits sctable="SC_DATA" expcube=/scratch/kocevski/88279/ltcube_686707201_686966401_4FGL_J2149.7+1917_daily_bin1726.fits outfile=/scratch/kocevski/88279/expmap_686707201_686966401_4FGL_J2149.7+1917_daily_bin1726.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/88279/ltcube_686707201_686966401_4FGL_J2149.7+1917_daily_bin1726.fits
.....................!
real 194.07
user 188.22
sys 5.45

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_8years/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/88279/ft1_filtered_4FGL_J2149.7+1917_daily_bin1726.fits scfile=/scratch/kocevski/88279/ft2_4FGL_J2149.7+1917_daily_bin1726.fits outfile=/scratch/kocevski/88279/cmap_686707201_686966401_4FGL_J2149.7+1917_daily_bin1726.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88279/ft1_filtered_4FGL_J2149.7+1917_daily_bin1726.fits scfile=/scratch/kocevski/88279/ft2_4FGL_J2149.7+1917_daily_bin1726.fits outfile=/scratch/kocevski/88279/cmap_HighResolution_686707201_686966401_4FGL_J2149.7+1917_daily_bin1726.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/88279/ft1_filtered_4FGL_J2149.7+1917_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/88279/ft2_4FGL_J2149.7+1917_daily_bin1726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88279/Model_4FGL_J2149.7+1917_daily_bin1726.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/88279/ft1_filtered_4FGL_J2149.7+1917_daily_bin1726.fits.....................!
real 81.93
user 80.55
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/88279/ft1_filtered_4FGL_J2149.7+1917_daily_bin1726.fits', '/scratch/kocevski/88279/ft2_4FGL_J2149.7+1917_daily_bin1726.fits', expMap='/scratch/kocevski/88279/expmap_686707201_686966401_4FGL_J2149.7+1917_daily_bin1726.fits', expCube='/scratch/kocevski/88279/ltcube_686707201_686966401_4FGL_J2149.7+1917_daily_bin1726.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/88279/Model_4FGL_J2149.7+1917_daily_bin1726.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  0.000e+00  1.000e+06 ( 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/88279/ft1_filtered_4FGL_J2149.7+1917_daily_bin1726.fits
Spacecraft file(s): /scratch/kocevski/88279/ft2_4FGL_J2149.7+1917_daily_bin1726.fits
Exposure map: /scratch/kocevski/88279/expmap_686707201_686966401_4FGL_J2149.7+1917_daily_bin1726.fits
Exposure cube: /scratch/kocevski/88279/ltcube_686707201_686966401_4FGL_J2149.7+1917_daily_bin1726.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/88279/Model_4FGL_J2149.7+1917_daily_bin1726.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) = 5500.91407977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61537E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .15428E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    11.047       1.0000          .0000       .10000E+07
     4 'Prefactor '    67.761       1.0000          .0000       .10000E+07
     5 'norm      '    1.2904       1.0000          .0000       .10000E+07
     6 'Prefactor '    .36426E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .94482E-02   1.0000          .0000       .10000E+07
     8 'norm      '    7.9882       1.0000          .0000       .10000E+07
     9 'norm      '    4.6410       1.0000          .0000       .10000E+07
    10 'Prefactor '    .16451       1.0000          .0000       .10000E+07
    11 'Prefactor '    69.623       1.0000          .0000       .10000E+07
    12 'norm      '    .14475E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    80.922       1.0000          .0000       .10000E+07
    14 'norm      '    .86814E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .74028E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    11.873       1.0000          .0000       .10000E+07
    17 'Normalizat'    .63941       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93193       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5500.554     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1336 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20262E-07    24.830       -.27000E-07** at limit **
   2  Prefactor     .69496E-05    125.98        .27707E-06** at limit **
   3  Prefactor     11.223        14.154        .44823E-07    .70968E-02
   4  Prefactor     69.344        12.927        .13847E-07    .35432E-01
   5  norm          1.2794        3.6089       -.21507E-07   -.10898E-03
   6  Prefactor      .0000        1.8167       -.38717E-07** at limit **
   7  Prefactor     .24726E-04    59.131        .34015E-06** at limit **
   8  norm          8.0107        3.7693        .19102E-07    .55942E-02
   9  norm          4.6604        3.1642        .30993E-07    .48212E-02
  10  Prefactor     .55511E-09    53.014        .17514E-06** at limit **
  11  Prefactor     76.301        88.338        .10562E-05   -.17948E-02
  12  norm           .0000        .82774        .65116E-08** at limit **
  13  Prefactor     82.460        22.297       -.35626E-08    .33471    
  14  norm           .0000        3.0574        .18235E-07** at limit **
  15  Prefactor     .19484E-07    28.780        .16880E-07** at limit **
  16  Prefactor     11.482        24.402       -.66610E-07    .10671    
  17  Normalizat    .63532        .35508       -.10445E-05    .15107E-03
  18  Prefactor     .93138        .14307        .62029E-06    .44544E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.02616e-08
  Prefactor  = 6.94955e-06
  Prefactor  = 11.2233
  Prefactor  = 69.3442
  norm       = 1.27938
  Prefactor  = 0
  Prefactor  = 2.47256e-05
  norm       = 8.01072
  norm       = 4.66045
  Prefactor  = 5.55112e-10
  Prefactor  = 76.3014
  norm       = 0
  Prefactor  = 82.4603
  norm       = 0
  Prefactor  = 1.94844e-08
  Prefactor  = 11.4822
  Normalizat = 0.635325
  Prefactor  = 0.931382
 **********
 **   18 **HESSE 
 **********

 FCN=   5500.554     FROM HESSE     STATUS=OK           278 CALLS     1614 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20262E-07    24.868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .69496E-05    128.52        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.223        14.226        .30118E-03   -1.5641    
   4  Prefactor     69.344        39.251        .12149E-03   -1.5541    
   5  norm          1.2794        3.7017        .97450E-03   -1.5685    
   6  Prefactor      .0000        1.8197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .24726E-04    71.273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.0107        3.7865        .35451E-03   -1.5651    
   9  norm          4.6604        3.1729        .46694E-03   -1.5665    
  10  Prefactor     .55511E-09    51.502        .12445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     76.301        88.547        .11985E-03   -1.5533    
  12  norm           .0000        .81767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     82.460        37.819        .11117E-03   -1.5526    
  14  norm           .0000        3.0533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .19484E-07    28.795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.482        26.054        .29048E-03   -1.5640    
  17  Normalizat    .63532        .31858        .10370       -1.0650    
  18  Prefactor     .93138        .12341        .45411E-01   -.95053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62817e-06
Minuit parameter uncertainties:
  1  0.00141977
  2  0.0597731
  3  14.2264
  4  39.2512
  5  3.70172
  6  1.17267e-05
  7  0.0839598
  8  3.78653
  9  3.17287
  10  0.000331259
  11  88.5485
  12  1.78715e-06
  13  37.8194
  14  7.84914e-06
  15  0.00149844
  16  26.0538
  17  0.319503
  18  0.123444
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  5.551e-10  3.313e-04  0.000e+00  1.000e+06 ( 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.314e-01  1.234e-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.353e-01  3.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 327.444 19.286
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88279/likelihoodResults_686707201_686966401_4FGL_J2149.7+1917_daily_bin1726.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) = 5500.56334329
delta logL = -0.00955090741718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5500.50878989
delta logL = 0.0450024934171

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61661       1.0000          .0000       .10000E+07
     2 'Index     '    4.2361       1.0000          .0000       10.000    
     3 'Normalizat'    .60997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93772       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5500.509     FROM MIGRAD    STATUS=FAILED        99 CALLS      309 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61066        356.76        .18748E-04   -.20860E-03
   2  Index         4.2428        7.7057        .81103E-02    .93205E-04
   3  Normalizat    .60876        .27127        .46891E-03   -.43228E-04
   4  Prefactor     .93824        .11213        .15850E-03   -.42032E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5500.509     FROM SIMPLEX   STATUS=UNCHANGED    101 CALLS      410 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61066        356.76        .34357E-04   -.20860E-03
   2  Index         4.2428        7.7057        .27605E-02    .93205E-04
   3  Normalizat    .60876        .27127        .36180E-03   -.43228E-04
   4  Prefactor     .93824        .11213        .28156E-04   -.42032E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5500.509     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      439 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61063        19.711        .74991E-06   -.55547E-03
   2  Index         4.2428        7.0379        .16221E-02   -.20956E-05
   3  Normalizat    .60876        .34585        .18757E-04   -.41458E-04
   4  Prefactor     .93824        .14188        .31700E-04   -.40447E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.61063
  Index      = 4.24279
  Normalizat = 0.608755
  Prefactor  = 0.938239
 **********
 **   18 **HESSE 
 **********

 FCN=   5500.509     FROM HESSE     STATUS=OK            23 CALLS      462 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61063        13.655        .37413E-06   -1.5692    
   2  Index         4.2428        4.0615        .64883E-04   -.15203    
   3  Normalizat    .60876        .34585        .37513E-05   -1.0761    
   4  Prefactor     .93824        .14186        .63400E-05   -.94817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17827e-10
Minuit parameter uncertainties:
  1  5.7752
  2  4.76708
  3  0.347092
  4  0.141918
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88279': 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) = 5500.50878215
delta logL = 0.0450102291106

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  6.106e-01  5.775e+00  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  4.243e+00  4.767e+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:  9.382e-01  1.419e-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.088e-01  3.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 327.444 19.286

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/88279/cmap_HighResolution_686707201_686966401_4FGL_J2149.7+1917_daily_bin1726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.65e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2022-10-09 00:45:11.077396', job_id='88279', GAL2='0.94', fit_tolerance='1e-08', EG2='0.61', EG='0.64', time_epoch_completed='1665301511.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.50e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1726' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct  9 00:45:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 88279: <4FGL_J2149.7+1917_daily_bin1726> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1726> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Oct  9 00:35:46 2022
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct  9 00:35:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct  9 00:35:52 2022
Terminated at Sun Oct  9 00:45:11 2022
Results reported at Sun Oct  9 00:45:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1726 327.444 19.2859 686707201 686966401 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 :                                   528.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             396.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            565 sec.

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

