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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1734
RA = 327.444, Dec = 19.2859
tmin = 688780801, tmax = 689040001
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='776405', job_status='RUN', time_executed='2022-11-02 00:39:06.165150', time_epoch_executed='1667374746.17' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776405/ft1_4FGL_J2149.7+1917_daily_bin1734.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776405/ft2_4FGL_J2149.7+1917_daily_bin1734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776405/ft1_4FGL_J2149.7+1917_daily_bin1734.fits outfile=/scratch/kocevski/776405/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1734.fits ra=327.444 dec=19.2859 rad=12.0 tmin=688780801.0 tmax=689040001.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.30
sys 0.22

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

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

Number of photons that the gtmktime cut: 802

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776405/ft1_filtered_4FGL_J2149.7+1917_daily_bin1734.fits" evtable="EVENTS" scfile=/scratch/kocevski/776405/ft2_4FGL_J2149.7+1917_daily_bin1734.fits sctable="SC_DATA" outfile=/scratch/kocevski/776405/ltcube_688780801_689040001_4FGL_J2149.7+1917_daily_bin1734.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/776405/ft2_4FGL_J2149.7+1917_daily_bin1734.fits
.....................!
real 11.93
user 11.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776405/ft1_filtered_4FGL_J2149.7+1917_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/776405/ft2_4FGL_J2149.7+1917_daily_bin1734.fits sctable="SC_DATA" expcube=/scratch/kocevski/776405/ltcube_688780801_689040001_4FGL_J2149.7+1917_daily_bin1734.fits outfile=/scratch/kocevski/776405/expmap_688780801_689040001_4FGL_J2149.7+1917_daily_bin1734.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/776405/ltcube_688780801_689040001_4FGL_J2149.7+1917_daily_bin1734.fits
.....................!
real 189.77
user 184.86
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
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/776405/ft1_filtered_4FGL_J2149.7+1917_daily_bin1734.fits scfile=/scratch/kocevski/776405/ft2_4FGL_J2149.7+1917_daily_bin1734.fits outfile=/scratch/kocevski/776405/cmap_688780801_689040001_4FGL_J2149.7+1917_daily_bin1734.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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776405/ft1_filtered_4FGL_J2149.7+1917_daily_bin1734.fits scfile=/scratch/kocevski/776405/ft2_4FGL_J2149.7+1917_daily_bin1734.fits outfile=/scratch/kocevski/776405/cmap_HighResolution_688780801_689040001_4FGL_J2149.7+1917_daily_bin1734.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/776405/ft1_filtered_4FGL_J2149.7+1917_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/776405/ft2_4FGL_J2149.7+1917_daily_bin1734.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/776405/Model_4FGL_J2149.7+1917_daily_bin1734.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/776405/ft1_filtered_4FGL_J2149.7+1917_daily_bin1734.fits.....................!
real 121.56
user 120.11
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/776405/ft1_filtered_4FGL_J2149.7+1917_daily_bin1734.fits', '/scratch/kocevski/776405/ft2_4FGL_J2149.7+1917_daily_bin1734.fits', expMap='/scratch/kocevski/776405/expmap_688780801_689040001_4FGL_J2149.7+1917_daily_bin1734.fits', expCube='/scratch/kocevski/776405/ltcube_688780801_689040001_4FGL_J2149.7+1917_daily_bin1734.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/776405/Model_4FGL_J2149.7+1917_daily_bin1734.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/776405/ft1_filtered_4FGL_J2149.7+1917_daily_bin1734.fits
Spacecraft file(s): /scratch/kocevski/776405/ft2_4FGL_J2149.7+1917_daily_bin1734.fits
Exposure map: /scratch/kocevski/776405/expmap_688780801_689040001_4FGL_J2149.7+1917_daily_bin1734.fits
Exposure cube: /scratch/kocevski/776405/ltcube_688780801_689040001_4FGL_J2149.7+1917_daily_bin1734.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/776405/Model_4FGL_J2149.7+1917_daily_bin1734.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8749.07513438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.902       1.0000          .0000       .10000E+07
     2 'Prefactor '    32.983       1.0000          .0000       .10000E+07
     3 'Prefactor '    31.510       1.0000          .0000       .10000E+07
     4 'Prefactor '    20.666       1.0000          .0000       .10000E+07
     5 'norm      '    5.7740       1.0000          .0000       .10000E+07
     6 'Prefactor '    .46778E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .16193E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .81360       1.0000          .0000       .10000E+07
     9 'norm      '    .16020E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    104.28       1.0000          .0000       .10000E+07
    11 'Prefactor '    51.995       1.0000          .0000       .10000E+07
    12 'norm      '    1.6479       1.0000          .0000       .10000E+07
    13 'Prefactor '    38.099       1.0000          .0000       .10000E+07
    14 'norm      '    4.1224       1.0000          .0000       .10000E+07
    15 'Prefactor '    .62733E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    20.323       1.0000          .0000       .10000E+07
    17 'Normalizat'    .46781       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1204       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=   8748.783     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1361 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.605        16.274       -.17884E-05   -.37508E-01
   2  Prefactor     40.201        77.642       -.41534E-05   -.54643E-02
   3  Prefactor     31.847        21.651        .21369E-05    .47563E-01
   4  Prefactor     22.332        31.665        .14340E-05    .48399E-02
   5  norm          5.7325        4.4943        .37689E-07   -.51378E-04
   6  Prefactor     .55511E-10    4.8428        .19899E-07** at limit **
   7  Prefactor      .0000        37.712        .12667E-05** at limit **
   8  norm          .86871        3.1551        .11169E-05   -.65742E-03
   9  norm           .0000        1.4910       -.53912E-06** at limit **
  10  Prefactor     102.91        43.526        .28507E-06   -.25358E-01
  11  Prefactor     51.931        15.836       -.13487E-05    .16477    
  12  norm          1.6537        1.0914       -.56102E-07    .14892E-02
  13  Prefactor     38.314        15.541       -.26521E-06   -.76076E-01
  14  norm          4.2306        5.7166       -.22352E-06   -.37309E-03
  15  Prefactor      .0000        3.5963       -.75708E-06** at limit **
  16  Prefactor     19.965        15.399        .85480E-06    .14907E-01
  17  Normalizat    .47038        .28295       -.24014E-04    .43240E-04
  18  Prefactor     1.1179        .12152        .90257E-06    .12152E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6053
  Prefactor  = 40.2008
  Prefactor  = 31.8468
  Prefactor  = 22.332
  norm       = 5.7325
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0.868709
  norm       = 0
  Prefactor  = 102.905
  Prefactor  = 51.9306
  norm       = 1.65368
  Prefactor  = 38.3144
  norm       = 4.23056
  Prefactor  = 0
  Prefactor  = 19.9645
  Normalizat = 0.470384
  Prefactor  = 1.11789
 **********
 **   18 **HESSE 
 **********

 FCN=   8748.783     FROM HESSE     STATUS=OK           284 CALLS     1645 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.605        23.174        .23644E-03   -1.5624    
   2  Prefactor     40.201        77.306        .17415E-03   -1.5581    
   3  Prefactor     31.847        22.506        .17817E-03   -1.5595    
   4  Prefactor     22.332        31.882        .22004E-03   -1.5613    
   5  norm          5.7325        4.5135        .41774E-03   -1.5660    
   6  Prefactor     .55511E-10    4.8612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        37.692        .17301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .86871        3.2624        .51927E-03   -1.5689    
   9  norm           .0000        1.4772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     102.91        45.310        .97933E-04   -1.5505    
  11  Prefactor     51.931        39.609        .13869E-03   -1.5564    
  12  norm          1.6537        1.0968        .82230E-04   -1.5682    
  13  Prefactor     38.314        21.830        .16203E-03   -1.5584    
  14  norm          4.2306        5.7335        .49624E-03   -1.5667    
  15  Prefactor      .0000        3.5973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.965        16.146        .22189E-03   -1.5619    
  17  Normalizat    .47038        .29499        .12487       -1.1381    
  18  Prefactor     1.1179        .12115        .36857E-01   -.88897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25873e-06
Minuit parameter uncertainties:
  1  23.1737
  2  77.3082
  3  22.5062
  4  31.8821
  5  4.51351
  6  2.98412e-05
  7  5.65615e-05
  8  3.26245
  9  1.50675e-06
  10  45.3106
  11  39.6093
  12  1.09678
  13  21.8305
  14  5.73351
  15  6.0035e-06
  16  16.1463
  17  0.295971
  18  0.121177
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.029e+02  4.531e+01  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:  1.118e+00  1.212e-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:  4.704e-01  2.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.23
Ra Dec: 327.444 19.286
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 1.72e-07 +/- 7.55e-08
Energy Flux (Fixed Index): 4.87e-05 +/- 2.15e-05

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) = 8748.78255324
delta logL = 0.000162851934874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8748.78228544
delta logL = 0.000430646654422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    104.20       1.0000          .0000       .10000E+07
     2 'Index     '    2.5064       1.0000          .0000       10.000    
     3 'Normalizat'    .47241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1175       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=   8748.782     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      266 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     104.26        65.569        .19594E-04    .12997E-03
   2  Index         2.5065        .51780        .50962E-02    .29987E-04
   3  Normalizat    .47285        .28184        .55209E-03   -.13179E-05
   4  Prefactor     1.1171        .12224        .16451E-03    .99516E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 104.259
  Index      = 2.50653
  Normalizat = 0.472852
  Prefactor  = 1.11709
 **********
 **   18 **HESSE 
 **********

 FCN=   8748.782     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .63E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     104.26        60.931        .78376E-06   -1.5504    
   2  Index         2.5065        .48037        .20385E-03   -.52209    
   3  Normalizat    .47285        .28000        .22084E-04   -1.1369    
   4  Prefactor     1.1171        .12167        .65802E-05   -.88922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32186e-13
Minuit parameter uncertainties:
  1  60.9311
  2  0.481357
  3  0.280835
  4  0.121698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776405': 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) = 8748.78227601
delta logL = 0.000440079604232

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.043e+02  6.093e+01  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.507e+00  4.814e-01  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.117e+00  1.217e-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:  4.729e-01  2.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.24
Ra Dec: 327.444 19.286
Photon Index (Free Index): 2.51 +/- 0.48
Photon Flux (Free Index): 1.70e-07 +/- 8.42e-08
Energy Flux (Free Index): 4.90e-05 +/- 2.21e-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/776405/cmap_HighResolution_688780801_689040001_4FGL_J2149.7+1917_daily_bin1734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.72e-07', energy_flux2='4.90e-05', photon_flux_error='7.55e-08', dlogl='4.40e-04', energy_flux='4.87e-05', photon_flux2='1.70e-07', job_status='DONE', time_completed='2022-11-02 00:49:07.990306', photon_index_error2='0.48', photon_index2='2.51', ts='11.23', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.21e-05', EG='0.47', time_epoch_completed='1667375347.99', return_code='0', job_id='776405', GAL2='1.12', EG2='0.47', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='8.42e-08', ts2='11.24', photon_index='2.52' WHERE bin_id='1734' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov  2 00:49:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 776405: <4FGL_J2149.7+1917_daily_bin1734> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1734> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Nov  2 00:35:23 2022
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Nov  2 00:35:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Nov  2 00:35:23 2022
Terminated at Wed Nov  2 00:49:08 2022
Results reported at Wed Nov  2 00:49:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1734 327.444 19.2859 688780801 689040001 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 :                                   604.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            825 sec.

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

