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 107 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.6+0323_daily_bin1726
RA = 327.424, Dec = 3.3959
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='88278', job_status='RUN', time_executed='2022-10-09 00:37:48.049741', time_epoch_executed='1665301068.05' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='1726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88278

Creating custom pfile directory:
/scratch/kocevski/88278/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/88278/ft1_4FGL_J2149.6+0323_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/88278/ft2_4FGL_J2149.6+0323_daily_bin1726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88278/ft1_4FGL_J2149.6+0323_daily_bin1726.fits outfile=/scratch/kocevski/88278/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1726.fits ra=327.424 dec=3.3959 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/88278/ft2_4FGL_J2149.6+0323_daily_bin1726.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/88278/ft2_4FGL_J2149.6+0323_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/88278/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1726.fits evtable="EVENTS" outfile="/scratch/kocevski/88278/ft1_filtered_4FGL_J2149.6+0323_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.52
user 0.36
sys 0.15

Number of photons that the gtmktime cut: 445

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88278/ft1_filtered_4FGL_J2149.6+0323_daily_bin1726.fits" evtable="EVENTS" scfile=/scratch/kocevski/88278/ft2_4FGL_J2149.6+0323_daily_bin1726.fits sctable="SC_DATA" outfile=/scratch/kocevski/88278/ltcube_686707201_686966401_4FGL_J2149.6+0323_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/88278/ft2_4FGL_J2149.6+0323_daily_bin1726.fits
.....................!
real 12.82
user 12.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88278/ft1_filtered_4FGL_J2149.6+0323_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/88278/ft2_4FGL_J2149.6+0323_daily_bin1726.fits sctable="SC_DATA" expcube=/scratch/kocevski/88278/ltcube_686707201_686966401_4FGL_J2149.6+0323_daily_bin1726.fits outfile=/scratch/kocevski/88278/expmap_686707201_686966401_4FGL_J2149.6+0323_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/88278/ltcube_686707201_686966401_4FGL_J2149.6+0323_daily_bin1726.fits
.....................!
real 190.19
user 184.76
sys 5.09

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
Added 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J2149.6+0323 @ 327.424 3.3959

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/88278/ft1_filtered_4FGL_J2149.6+0323_daily_bin1726.fits scfile=/scratch/kocevski/88278/ft2_4FGL_J2149.6+0323_daily_bin1726.fits outfile=/scratch/kocevski/88278/cmap_686707201_686966401_4FGL_J2149.6+0323_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.424 yref=3.3959 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88278/ft1_filtered_4FGL_J2149.6+0323_daily_bin1726.fits scfile=/scratch/kocevski/88278/ft2_4FGL_J2149.6+0323_daily_bin1726.fits outfile=/scratch/kocevski/88278/cmap_HighResolution_686707201_686966401_4FGL_J2149.6+0323_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.424 yref=3.3959 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/88278/ft1_filtered_4FGL_J2149.6+0323_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/88278/ft2_4FGL_J2149.6+0323_daily_bin1726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88278/Model_4FGL_J2149.6+0323_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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/88278/ft1_filtered_4FGL_J2149.6+0323_daily_bin1726.fits.....................!
real 53.92
user 52.56
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/88278/ft1_filtered_4FGL_J2149.6+0323_daily_bin1726.fits', '/scratch/kocevski/88278/ft2_4FGL_J2149.6+0323_daily_bin1726.fits', expMap='/scratch/kocevski/88278/expmap_686707201_686966401_4FGL_J2149.6+0323_daily_bin1726.fits', expCube='/scratch/kocevski/88278/ltcube_686707201_686966401_4FGL_J2149.6+0323_daily_bin1726.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/88278/Model_4FGL_J2149.6+0323_daily_bin1726.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2149.6+0323'

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.704e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  2.157e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/88278/ft1_filtered_4FGL_J2149.6+0323_daily_bin1726.fits
Spacecraft file(s): /scratch/kocevski/88278/ft2_4FGL_J2149.6+0323_daily_bin1726.fits
Exposure map: /scratch/kocevski/88278/expmap_686707201_686966401_4FGL_J2149.6+0323_daily_bin1726.fits
Exposure cube: /scratch/kocevski/88278/ltcube_686707201_686966401_4FGL_J2149.6+0323_daily_bin1726.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/88278/Model_4FGL_J2149.6+0323_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) = 5093.62597551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79653E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    11.551       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.1718       1.0000          .0000       .10000E+07
     4 'Prefactor '    .31946E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.2955       1.0000          .0000       .10000E+07
     6 'Prefactor '    .38510E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    3.3181       1.0000          .0000       .10000E+07
     8 'Prefactor '    .53082       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11864E-02   1.0000          .0000       .10000E+07
    10 'norm      '    4.5548       1.0000          .0000       .10000E+07
    11 'norm      '    .83074E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .32955E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    13.675       1.0000          .0000       .10000E+07
    14 'Prefactor '    5.8939       1.0000          .0000       .10000E+07
    15 'Prefactor '    .45778E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.1303       1.0000          .0000       .10000E+07
    17 'Normalizat'    .82997       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .86623       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5093.610     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     1340 TOTAL
                     EDM=   .38E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        33.773        .28610E-06** at limit **
   2  Prefactor     11.550        17.874        .13276E-07    .37475E-04
   3  Prefactor      .0000        2322.3       -.45488E-05** at limit **
   4  Prefactor      .0000        20.349        .10099E-06** at limit **
   5  Prefactor     1.5694        17.638        .48905E-07    .95840E-04
   6  Prefactor      .0000        2.1525       -.69557E-08** at limit **
   7  Prefactor     3.3486        2.6221        .58037E-07   -.92086E-04
   8  Prefactor      .0000        289.42       -.14416E-06** at limit **
   9  Prefactor      .0000        82.779       -.22519E-06** at limit **
  10  norm          4.5313        3.0985       -.21356E-07   -.24413E-04
  11  norm           .0000        10.092       -.98885E-08** at limit **
  12  Prefactor      .0000        9.4364       -.15310E-06** at limit **
  13  Prefactor     13.589        14.656       -.10321E-07   -.27041E-04
  14  Prefactor     5.7779        14.090        .61746E-08    .25723E-04
  15  Prefactor      .0000        14.280        .48100E-07** at limit **
  16  Prefactor     2.0835        9.5216       -.16373E-06    .12554E-04
  17  Normalizat    .83527        .30088        .17353E-05    .30334E-05
  18  Prefactor     .86561        .14952       -.49113E-06    .68956E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 11.5497
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.56938
  Prefactor  = 0
  Prefactor  = 3.34856
  Prefactor  = 0
  Prefactor  = 0
  norm       = 4.53134
  norm       = 0
  Prefactor  = 0
  Prefactor  = 13.5893
  Prefactor  = 5.77794
  Prefactor  = 0
  Prefactor  = 2.0835
  Normalizat = 0.83527
  Prefactor  = 0.865605
 **********
 **   18 **HESSE 
 **********

 FCN=   5093.610     FROM HESSE     STATUS=OK           282 CALLS     1622 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        33.747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.550        17.896        .29451E-03   -1.5640    
   3  Prefactor      .0000        2244.3        .56880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        20.381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5694        272.45        .67715E-03   -1.5683    
   6  Prefactor      .0000        2.1521        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.3486        2.8619        .55547E-03   -1.5671    
   8  Prefactor      .0000        297.14        .75668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        83.363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.5313        3.1075        .47145E-03   -1.5665    
  11  norm           .0000        10.120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        9.4148        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.589        14.677        .27060E-03   -1.5634    
  14  Prefactor     5.7779        14.131        .41341E-03   -1.5660    
  15  Prefactor      .0000        14.301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0835        9.5859        .70612E-03   -1.5679    
  17  Normalizat    .83527        .25027        .75709E-01   -.98773    
  18  Prefactor     .86561        .12178        .44573E-01   -.97354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89834e-07
Minuit parameter uncertainties:
  1  6.37313e-06
  2  17.8961
  3  0.00044073
  4  3.88396e-06
  5  41.3577
  6  1.21399e-07
  7  2.86191
  8  0.000120745
  9  5.41886e-06
  10  3.10748
  11  1.75436e-06
  12  4.0732e-06
  13  14.677
  14  14.1307
  15  1.99446e-06
  16  8.93811
  17  0.250616
  18  0.121819
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  0.000e+00  4.073e-06  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  2.157e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.656e-01  1.218e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  8.353e-01  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 327.424 3.396
Photon Flux Upper Limit: 8.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88278/likelihoodResults_686707201_686966401_4FGL_J2149.6+0323_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) = 5093.66520328
delta logL = -0.0550982831401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5093.61010629
delta logL = -1.29560066853e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28977E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.8415       1.0000          .0000       10.000    
     3 'Normalizat'    .83540       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86553       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5093.610     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      196 TOTAL
                     EDM=   .36E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.1325        .42118E-03** at limit **
   2  Index         1.1955        .85879        .23824E-05     .0000    
   3  Normalizat    .83527        1.1732        .82283E-06   -.10654E-05
   4  Prefactor     .86561        1.2120       -.39805E-05   -.88185E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.19555
  Normalizat = 0.83527
  Prefactor  = 0.865605
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5093.610     FROM HESSE     STATUS=FAILED         9 CALLS      205 TOTAL
                     EDM=   .36E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.1325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .95842E-01    1.2354        .23824E-05   -.86468    
   3  Normalizat    .83527        1.1732        .82283E-06   -.98773    
   4  Prefactor     .86561        1.2120       -.39805E-05   -.97354    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.6175e-13
Minuit parameter uncertainties:
  1  8.77861e-06
  2  0.869151
  3  1.21201
  4  1.2531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88278': 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): 101
logL (Free Index) = 5093.610105
delta logL = 0.0

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  0.000e+00  8.779e-06  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  1.196e+00  8.692e-01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.656e-01  1.253e+00  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  8.353e-01  1.212e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 327.424 3.396

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/88278/cmap_HighResolution_686707201_686966401_4FGL_J2149.6+0323_daily_bin1726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-03', job_status='DONE', photon_flux_upper_limit='8.83e-08', time_completed='2022-10-09 00:45:56.996807', job_id='88278', GAL2='0.87', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1665301557.0', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1726' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct  9 00:45:57 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 88278: <4FGL_J2149.6+0323_daily_bin1726> in cluster <slac> Done

Job <4FGL_J2149.6+0323_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) <bullet0265>, 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:57 2022
Results reported at Sun Oct  9 00:45:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin1726 327.424 3.3959 686707201 686966401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2149.6+0323 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   491.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            611 sec.

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

