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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1749
RA = 327.444, Dec = 19.2859
tmin = 692668801, tmax = 692928001
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='963266', job_status='RUN', time_executed='2022-12-17 01:28:50.821218', time_epoch_executed='1671269330.82' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963266

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963266/ft1_4FGL_J2149.7+1917_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963266/ft2_4FGL_J2149.7+1917_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963266/ft1_4FGL_J2149.7+1917_daily_bin1749.fits outfile=/scratch/kocevski/963266/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1749.fits ra=327.444 dec=19.2859 rad=12.0 tmin=692668801.0 tmax=692928001.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.66
user 3.42
sys 0.22

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

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

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

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

Number of photons that the gtmktime cut: 847

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963266/ft1_filtered_4FGL_J2149.7+1917_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/963266/ft2_4FGL_J2149.7+1917_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/963266/ltcube_692668801_692928001_4FGL_J2149.7+1917_daily_bin1749.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/963266/ft2_4FGL_J2149.7+1917_daily_bin1749.fits
.....................!
real 12.44
user 12.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963266/ft1_filtered_4FGL_J2149.7+1917_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/963266/ft2_4FGL_J2149.7+1917_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/963266/ltcube_692668801_692928001_4FGL_J2149.7+1917_daily_bin1749.fits outfile=/scratch/kocevski/963266/expmap_692668801_692928001_4FGL_J2149.7+1917_daily_bin1749.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/963266/ltcube_692668801_692928001_4FGL_J2149.7+1917_daily_bin1749.fits
.....................!
real 190.30
user 185.62
sys 4.38

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/963266/ft1_filtered_4FGL_J2149.7+1917_daily_bin1749.fits scfile=/scratch/kocevski/963266/ft2_4FGL_J2149.7+1917_daily_bin1749.fits outfile=/scratch/kocevski/963266/cmap_692668801_692928001_4FGL_J2149.7+1917_daily_bin1749.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/963266/ft1_filtered_4FGL_J2149.7+1917_daily_bin1749.fits scfile=/scratch/kocevski/963266/ft2_4FGL_J2149.7+1917_daily_bin1749.fits outfile=/scratch/kocevski/963266/cmap_HighResolution_692668801_692928001_4FGL_J2149.7+1917_daily_bin1749.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/963266/ft1_filtered_4FGL_J2149.7+1917_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/963266/ft2_4FGL_J2149.7+1917_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/963266/Model_4FGL_J2149.7+1917_daily_bin1749.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/963266/ft1_filtered_4FGL_J2149.7+1917_daily_bin1749.fits.....................!
real 121.83
user 120.46
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/963266/ft1_filtered_4FGL_J2149.7+1917_daily_bin1749.fits', '/scratch/kocevski/963266/ft2_4FGL_J2149.7+1917_daily_bin1749.fits', expMap='/scratch/kocevski/963266/expmap_692668801_692928001_4FGL_J2149.7+1917_daily_bin1749.fits', expCube='/scratch/kocevski/963266/ltcube_692668801_692928001_4FGL_J2149.7+1917_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/963266/Model_4FGL_J2149.7+1917_daily_bin1749.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/963266/ft1_filtered_4FGL_J2149.7+1917_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/963266/ft2_4FGL_J2149.7+1917_daily_bin1749.fits
Exposure map: /scratch/kocevski/963266/expmap_692668801_692928001_4FGL_J2149.7+1917_daily_bin1749.fits
Exposure cube: /scratch/kocevski/963266/ltcube_692668801_692928001_4FGL_J2149.7+1917_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/963266/Model_4FGL_J2149.7+1917_daily_bin1749.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) = 9010.0216332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16571E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    87.830       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11402E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.7212       1.0000          .0000       .10000E+07
     5 'norm      '    6.2477       1.0000          .0000       .10000E+07
     6 'Prefactor '    .59209E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14463E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .18605E-05   1.0000          .0000       .10000E+07
     9 'norm      '    1.0760       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.8756       1.0000          .0000       .10000E+07
    11 'Prefactor '    39.733       1.0000          .0000       .10000E+07
    12 'norm      '    1.0596       1.0000          .0000       .10000E+07
    13 'Prefactor '    .22936E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .69944E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    .46130E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    1.3260       1.0000          .0000       .10000E+07
    17 'Normalizat'    .69634       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1180       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=   9009.998     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1412 TOTAL
                     EDM=   .71E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        28.537        .20195E-06** at limit **
   2  Prefactor     85.086        77.545       -.32241E-06    .80811E-04
   3  Prefactor      .0000        4.2146       -.14317E-06** at limit **
   4  Prefactor     4.1866        4.0240        .51690E-07   -.10367E-03
   5  norm          6.2358        4.0475       -.23108E-07    .16908E-05
   6  Prefactor      .0000        8.8867        .24690E-06** at limit **
   7  Prefactor      .0000        26.419        .17196E-06** at limit **
   8  norm           .0000        2.5788       -.20422E-07** at limit **
   9  norm          1.0750        2.2894       -.15899E-06    .55203E-03
  10  Prefactor     8.9542        22.380       -.30487E-06    .92458E-04
  11  Prefactor     38.720        41.895        .33184E-07    .17779E-04
  12  norm          1.0594        .77526       -.81341E-07    .32688E-02
  13  Prefactor      .0000        44.368        .61151E-06** at limit **
  14  norm           .0000        1.5169        .10769E-06** at limit **
  15  Prefactor      .0000        3.5331       -.30087E-06** at limit **
  16  Prefactor     1.3776        23.541        .11188E-06   -.24227E-04
  17  Normalizat    .69639        .25018        .74211E-05    .45919E-05
  18  Prefactor     1.1183        .11125       -.18484E-05    .85791E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 85.0859
  Prefactor  = 0
  Prefactor  = 4.18658
  norm       = 6.23584
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 1.07505
  Prefactor  = 8.95423
  Prefactor  = 38.7198
  norm       = 1.05943
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.3776
  Normalizat = 0.696391
  Prefactor  = 1.11833
 **********
 **   18 **HESSE 
 **********

 FCN=   9009.998     FROM HESSE     STATUS=OK           282 CALLS     1694 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        28.556        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     85.086        77.735        .10671E-03   -1.5523    
   3  Prefactor      .0000        4.2349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1866        39.861        .52323E-03   -1.5667    
   5  norm          6.2358        4.1001        .40137E-03   -1.5658    
   6  Prefactor      .0000        8.7992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        26.600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        2.5154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0750        2.3217        .11651E-02   -1.5687    
  10  Prefactor     8.9542        22.728        .33620E-03   -1.5648    
  11  Prefactor     38.720        41.906        .15866E-03   -1.5584    
  12  norm          1.0594        .79280        .11910E-02   -1.5687    
  13  Prefactor      .0000        44.100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.5211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        3.5494        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3776        23.828        .95414E-03   -1.5684    
  17  Normalizat    .69639        .23062        .96541E-01   -1.0404    
  18  Prefactor     1.1183        .99879E-01    .36940E-01   -.88883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47148e-07
Minuit parameter uncertainties:
  1  2.78574e-05
  2  77.7355
  3  5.66372e-06
  4  25.8366
  5  4.1001
  6  1.6292e-05
  7  4.45297e-05
  8  6.32504e-07
  9  2.32166
  10  22.7279
  11  41.9064
  12  0.792798
  13  2.21145e-05
  14  7.01619e-07
  15  1.18281e-05
  16  11.4587
  17  0.230945
  18  0.0998961
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  8.954e+00  2.273e+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  9.990e-02  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.964e-01  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/963266/likelihoodResults_692668801_692928001_4FGL_J2149.7+1917_daily_bin1749.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) = 9009.73908577
delta logL = 0.258563030622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9009.73054083
delta logL = 0.267107971677

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6998       1.0000          .0000       .10000E+07
     2 'Index     '    3.4946       1.0000          .0000       10.000    
     3 'Normalizat'    .66575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1254       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=   9009.731     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      311 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6994        47.707        .18558E-04   -.61654E-02
   2  Index         3.4947        3.1573        .75904E-02   -.15232E-03
   3  Normalizat    .66551        .24018        .43693E-03   -.22595E-03
   4  Prefactor     1.1255        .11052        .15931E-03   -.45791E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.6994
  Index      = 3.49475
  Normalizat = 0.66551
  Prefactor  = 1.12551
 **********
 **   18 **HESSE 
 **********

 FCN=   9009.731     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6994        12.956        .74230E-06   -1.5665    
   2  Index         3.4947        1.4668        .30362E-03   -.30579    
   3  Normalizat    .66551        .23904        .17477E-04   -1.0527    
   4  Prefactor     1.1255        .10962        .31863E-04   -.88655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03718e-10
Minuit parameter uncertainties:
  1  12.9565
  2  1.49094
  3  0.239414
  4  0.109641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963266': 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) = 9009.73054029
delta logL = 0.267108510518

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  4.699e+00  1.296e+01  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  3.495e+00  1.491e+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.126e+00  1.096e-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.655e-01  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 327.444 19.286

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/963266/cmap_HighResolution_692668801_692928001_4FGL_J2149.7+1917_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.94e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2022-12-17 01:39:50.237463', job_id='963266', GAL2='1.13', fit_tolerance='1e-08', EG2='0.67', EG='0.70', time_epoch_completed='1671269990.24', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.67e-01', ts2='0.78', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1749' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:39:50 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 963266: <4FGL_J2149.7+1917_daily_bin1749> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1749> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Dec 17 01:25:22 2022
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:25:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 01:25:23 2022
Terminated at Sat Dec 17 01:39:50 2022
Results reported at Sat Dec 17 01:39:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1749 327.444 19.2859 692668801 692928001 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 :                                   661.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            868 sec.

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

