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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1709
RA = 327.444, Dec = 19.2859
tmin = 682300801, tmax = 682560001
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='237310', job_status='RUN', time_executed='2022-09-16 23:35:45.316393', time_epoch_executed='1663396545.32' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237310

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237310/ft1_4FGL_J2149.7+1917_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237310/ft2_4FGL_J2149.7+1917_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237310/ft1_4FGL_J2149.7+1917_daily_bin1709.fits outfile=/scratch/kocevski/237310/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1709.fits ra=327.444 dec=19.2859 rad=12.0 tmin=682300801.0 tmax=682560001.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.84
user 3.56
sys 0.24

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

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

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

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

Number of photons that the gtmktime cut: 796

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/237310/ft1_filtered_4FGL_J2149.7+1917_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/237310/ft2_4FGL_J2149.7+1917_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/237310/ltcube_682300801_682560001_4FGL_J2149.7+1917_daily_bin1709.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/237310/ft2_4FGL_J2149.7+1917_daily_bin1709.fits
.....................!
real 15.48
user 15.06
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237310/ft1_filtered_4FGL_J2149.7+1917_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/237310/ft2_4FGL_J2149.7+1917_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/237310/ltcube_682300801_682560001_4FGL_J2149.7+1917_daily_bin1709.fits outfile=/scratch/kocevski/237310/expmap_682300801_682560001_4FGL_J2149.7+1917_daily_bin1709.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/237310/ltcube_682300801_682560001_4FGL_J2149.7+1917_daily_bin1709.fits
.....................!
real 192.82
user 186.44
sys 5.33

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/237310/ft1_filtered_4FGL_J2149.7+1917_daily_bin1709.fits scfile=/scratch/kocevski/237310/ft2_4FGL_J2149.7+1917_daily_bin1709.fits outfile=/scratch/kocevski/237310/cmap_682300801_682560001_4FGL_J2149.7+1917_daily_bin1709.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/237310/ft1_filtered_4FGL_J2149.7+1917_daily_bin1709.fits scfile=/scratch/kocevski/237310/ft2_4FGL_J2149.7+1917_daily_bin1709.fits outfile=/scratch/kocevski/237310/cmap_HighResolution_682300801_682560001_4FGL_J2149.7+1917_daily_bin1709.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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/237310/ft1_filtered_4FGL_J2149.7+1917_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/237310/ft2_4FGL_J2149.7+1917_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/237310/Model_4FGL_J2149.7+1917_daily_bin1709.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/237310/ft1_filtered_4FGL_J2149.7+1917_daily_bin1709.fits.....................!
real 121.52
user 119.66
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.512       1.0000          .0000       .10000E+07
     2 'Prefactor '    302.30       1.0000          .0000       .10000E+07
     3 'Prefactor '    .90122E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    41.844       1.0000          .0000       .10000E+07
     5 'norm      '    5.1109       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.0512       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11541E-02   1.0000          .0000       .10000E+07
     8 'norm      '    3.3564       1.0000          .0000       .10000E+07
     9 'norm      '    .11163E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .23504       1.0000          .0000       .10000E+07
    11 'Prefactor '    55.732       1.0000          .0000       .10000E+07
    12 'norm      '    1.0535       1.0000          .0000       .10000E+07
    13 'Prefactor '    31.057       1.0000          .0000       .10000E+07
    14 'norm      '    .33264E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .23258E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.3850       1.0000          .0000       .10000E+07
    17 'Normalizat'    .68752       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0084       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=   8372.786     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1343 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.570        15.701        .21419E-07    .53517E-01
   2  Prefactor     302.24        1.2237       -.17648E-08    .25902E-01
   3  Prefactor     .27756E-09    9.3915        .19595E-06** at limit **
   4  Prefactor     41.617        9.8074       -.67755E-07   -.19536    
   5  norm          5.1002        4.9827        .25328E-07    .27143E-02
   6  Prefactor     8.0576        6.8913       -.45650E-07   -.35159E-02
   7  Prefactor     .18744E-04    112.90       -.49936E-06** at limit **
   8  norm          3.3386        2.6031        .33049E-07    .69515E-02
   9  norm          .11102E-09    2.1218        .11249E-06** at limit **
  10  Prefactor     .76806        326.13        .21564E-05   -.64115E-02
  11  Prefactor     57.667        21.121        .70031E-07   -.13524    
  12  norm          1.0519        .87219        .20935E-07    .69052E-02
  13  Prefactor     31.163        6.1880        .18877E-07   -.29621E-01
  14  norm           .0000        1.3648       -.19733E-08** at limit **
  15  Prefactor      .0000        4.2991        .26305E-07** at limit **
  16  Prefactor     4.3733        8.6683        .13667E-06    .15310E-02
  17  Normalizat    .68575        .26337       -.35423E-06    .33487E-04
  18  Prefactor     1.0086        .11464       -.44490E-06   -.17555E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5703
  Prefactor  = 302.241
  Prefactor  = 2.77556e-10
  Prefactor  = 41.6174
  norm       = 5.10017
  Prefactor  = 8.05756
  Prefactor  = 1.87439e-05
  norm       = 3.33863
  norm       = 1.11022e-10
  Prefactor  = 0.768055
  Prefactor  = 57.6665
  norm       = 1.05191
  Prefactor  = 31.163
  norm       = 0
  Prefactor  = 0
  Prefactor  = 4.37326
  Normalizat = 0.685745
  Prefactor  = 1.00864
 **********
 **   18 **HESSE 
 **********

 FCN=   8372.786     FROM HESSE     STATUS=OK           290 CALLS     1633 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.570        16.949        .30878E-03   -1.5643    
   2  Prefactor     302.24        104.21        .57524E-04   -1.5360    
   3  Prefactor     .27756E-09    9.4125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     41.617        42.038        .15461E-03   -1.5579    
   5  norm          5.1002        5.2927        .44449E-03   -1.5663    
   6  Prefactor     8.0576        6.9419        .35311E-03   -1.5651    
   7  Prefactor     .18744E-04    130.20        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3386        2.6847        .55214E-03   -1.5671    
   9  norm          .11102E-09    2.1045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .76806        31.400        .13446E-01   -1.5690    
  11  Prefactor     57.667        58.423        .13396E-03   -1.5556    
  12  norm          1.0519        .93809        .17299E-02   -1.5687    
  13  Prefactor     31.163        18.438        .17947E-03   -1.5596    
  14  norm           .0000        1.3639        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        4.2953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3733        8.7764        .48072E-03   -1.5666    
  17  Normalizat    .68575        .24217        .96729E-01   -1.0446    
  18  Prefactor     1.0086        .10127        .43573E-01   -.92442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06694e-06
Minuit parameter uncertainties:
  1  16.9494
  2  104.214
  3  0.000103741
  4  42.0388
  5  5.29274
  6  6.94191
  7  0.0988026
  8  2.6847
  9  2.67427e-05
  10  9.82184
  11  58.4239
  12  0.938089
  13  18.438
  14  1.7035e-06
  15  2.60091e-06
  16  8.77645
  17  0.242549
  18  0.101291
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  7.681e-01  9.822e+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

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.009e+00  1.013e-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.857e-01  2.425e-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.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/237310/likelihoodResults_682300801_682560001_4FGL_J2149.7+1917_daily_bin1709.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) = 8371.67759698
delta logL = 1.10851832652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8371.67486552
delta logL = 1.11124979102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62781       1.0000          .0000       .10000E+07
     2 'Index     '    5.0352       1.0000          .0000       10.000    
     3 'Normalizat'    .55801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0426       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.

 FCN=   8371.675     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      234 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62785        7.0034        .66773E-03    .37661E-01
   2  Index         5.0355        2.6581        .10832        .18999E-03
   3  Normalizat    .55805        .58069E-01    .10646        .30563E-04
   4  Prefactor     1.0426        .26382E-01    .40363E-01   -.92029E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.627853
  Index      = 5.03548
  Normalizat = 0.558047
  Prefactor  = 1.04263
 **********
 **   18 **HESSE 
 **********

 FCN=   8371.675     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62785        15.441        .49993E-05   -1.5692    
   2  Index         5.0355        4.2049        .52924E-02    .70952E-02
   3  Normalizat    .55805        .21250        .47185E-03   -1.0980    
   4  Prefactor     1.0426        .95422E-01    .16070E-03   -.91322    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.84759e-07
Minuit parameter uncertainties:
  1  6.22736
  2  4.99561
  3  0.212814
  4  0.0954376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237310': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8371.67486494
delta logL = 1.11125036929

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  6.279e-01  6.227e+00  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  5.035e+00  4.996e+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.043e+00  9.544e-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:  5.580e-01  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 327.444 19.286
Photon Index (Free Index): 5.04 +/- 5.00
Photon Flux (Free Index): 9.93e-08 +/- 7.22e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.20e-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/237310/cmap_HighResolution_682300801_682560001_4FGL_J2149.7+1917_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.95e-03', comment='SUCCESS', energy_flux2='1.32e-05', dlogl='1.11e+00', photon_flux2='9.93e-08', job_status='DONE', time_completed='2022-09-16 23:46:53.586126', photon_index_error2='5.00', photon_index2='5.04', ts='0.00', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.20e-05', EG='0.69', time_epoch_completed='1663397213.59', return_code='0', job_id='237310', GAL2='1.04', EG2='0.56', return_code2='102', photon_flux_error2='7.22e-08', ts2='2.61', photon_index='2.52' WHERE bin_id='1709' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:46:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 237310: <4FGL_J2149.7+1917_daily_bin1709> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1709> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 23:30:23 2022
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:31:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:31:37 2022
Terminated at Fri Sep 16 23:46:54 2022
Results reported at Fri Sep 16 23:46:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1709 327.444 19.2859 682300801 682560001 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 :                                   669.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            991 sec.

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

