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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1732
RA = 338.152, Dec = 11.7306
tmin = 688262401, tmax = 688521601
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='647641', job_status='RUN', time_executed='2022-10-27 00:36:46.359311', time_epoch_executed='1666856206.36' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647641

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647641/ft1_4FGL_J2232.6+1143_daily_bin1732.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647641/ft2_4FGL_J2232.6+1143_daily_bin1732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647641/ft1_4FGL_J2232.6+1143_daily_bin1732.fits outfile=/scratch/kocevski/647641/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1732.fits ra=338.152 dec=11.7306 rad=12.0 tmin=688262401.0 tmax=688521601.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.55
user 3.32
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/647641/ft2_4FGL_J2232.6+1143_daily_bin1732.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/647641/ft2_4FGL_J2232.6+1143_daily_bin1732.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/647641/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1732.fits evtable="EVENTS" outfile="/scratch/kocevski/647641/ft1_filtered_4FGL_J2232.6+1143_daily_bin1732.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 800

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647641/ft1_filtered_4FGL_J2232.6+1143_daily_bin1732.fits" evtable="EVENTS" scfile=/scratch/kocevski/647641/ft2_4FGL_J2232.6+1143_daily_bin1732.fits sctable="SC_DATA" outfile=/scratch/kocevski/647641/ltcube_688262401_688521601_4FGL_J2232.6+1143_daily_bin1732.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/647641/ft2_4FGL_J2232.6+1143_daily_bin1732.fits
.....................!
real 12.49
user 12.06
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647641/ft1_filtered_4FGL_J2232.6+1143_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/647641/ft2_4FGL_J2232.6+1143_daily_bin1732.fits sctable="SC_DATA" expcube=/scratch/kocevski/647641/ltcube_688262401_688521601_4FGL_J2232.6+1143_daily_bin1732.fits outfile=/scratch/kocevski/647641/expmap_688262401_688521601_4FGL_J2232.6+1143_daily_bin1732.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/647641/ltcube_688262401_688521601_4FGL_J2232.6+1143_daily_bin1732.fits
.....................!
real 191.13
user 185.25
sys 5.49

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

Setting source of interest to:
4FGL J2232.6+1143 @ 338.152 11.7306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/647641/ft1_filtered_4FGL_J2232.6+1143_daily_bin1732.fits scfile=/scratch/kocevski/647641/ft2_4FGL_J2232.6+1143_daily_bin1732.fits outfile=/scratch/kocevski/647641/cmap_688262401_688521601_4FGL_J2232.6+1143_daily_bin1732.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=338.152 yref=11.7306 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/647641/ft1_filtered_4FGL_J2232.6+1143_daily_bin1732.fits scfile=/scratch/kocevski/647641/ft2_4FGL_J2232.6+1143_daily_bin1732.fits outfile=/scratch/kocevski/647641/cmap_HighResolution_688262401_688521601_4FGL_J2232.6+1143_daily_bin1732.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=338.152 yref=11.7306 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/647641/ft1_filtered_4FGL_J2232.6+1143_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/647641/ft2_4FGL_J2232.6+1143_daily_bin1732.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647641/Model_4FGL_J2232.6+1143_daily_bin1732.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/647641/ft1_filtered_4FGL_J2232.6+1143_daily_bin1732.fits....................!
real 82.91
user 81.39
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/647641/ft1_filtered_4FGL_J2232.6+1143_daily_bin1732.fits', '/scratch/kocevski/647641/ft2_4FGL_J2232.6+1143_daily_bin1732.fits', expMap='/scratch/kocevski/647641/expmap_688262401_688521601_4FGL_J2232.6+1143_daily_bin1732.fits', expCube='/scratch/kocevski/647641/ltcube_688262401_688521601_4FGL_J2232.6+1143_daily_bin1732.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/647641/Model_4FGL_J2232.6+1143_daily_bin1732.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2232.6+1143'

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.234e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/647641/ft1_filtered_4FGL_J2232.6+1143_daily_bin1732.fits
Spacecraft file(s): /scratch/kocevski/647641/ft2_4FGL_J2232.6+1143_daily_bin1732.fits
Exposure map: /scratch/kocevski/647641/expmap_688262401_688521601_4FGL_J2232.6+1143_daily_bin1732.fits
Exposure cube: /scratch/kocevski/647641/ltcube_688262401_688521601_4FGL_J2232.6+1143_daily_bin1732.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/647641/Model_4FGL_J2232.6+1143_daily_bin1732.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) = 8279.2548301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19465       1.0000          .0000       .10000E+07
     2 'norm      '    .28255E-02   1.0000          .0000       .10000E+07
     3 'norm      '    1.1747       1.0000          .0000       .10000E+07
     4 'norm      '    .42077E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .53251       1.0000          .0000       .10000E+07
     6 'Prefactor '    16.992       1.0000          .0000       .10000E+07
     7 'Prefactor '    .87730       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4877       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6746       1.0000          .0000       .10000E+07
    10 'Prefactor '    .59010E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .40116E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6544       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30794E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .20619E-01   1.0000          .0000       .10000E+07
    15 'Normalizat'    .85640       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .92715       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8279.211     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     1135 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19307        4.0596       -.71093E-07** at limit **
   2  norm          .10056E-05    25.615       -.34962E-06** at limit **
   3  norm          1.1746        .95516        .59675E-07    .11193E-01
   4  norm          .11102E-09    2.2634        .70136E-07** at limit **
   5  Prefactor     .61676        .67650        .34923E-08    .27222E-02
   6  Prefactor     16.976        13.434       -.22703E-07   -.60445E-01
   7  Prefactor     .87700        .24877       -.21254E-07   -.19526E-02
   8  Prefactor     8.4628        7.9219        .24636E-06   -.32361E-04
   9  norm          1.6753        1.1847       -.36388E-07   -.91624E-02
  10  Prefactor     .61361E-05    13.039       -.14553E-06** at limit **
  11  Prefactor     .14465E-05    13.128        .28057E-06** at limit **
  12  Prefactor     3.6545        .31384        .52979E-07    .14551E-02
  13  Prefactor     .69799E-05    8.1143        .56153E-07** at limit **
  14  Prefactor     .17536E-06    .99428       -.28601E-08** at limit **
  15  Normalizat    .85626        .27089       -.57062E-05   -.31397E-03
  16  Prefactor     .92726        .14193        .11282E-05   -.43559E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.193074
  norm       = 1.00558e-06
  norm       = 1.17462
  norm       = 1.11022e-10
  Prefactor  = 0.616758
  Prefactor  = 16.9755
  Prefactor  = 0.877004
  Prefactor  = 8.46282
  norm       = 1.67534
  Prefactor  = 6.13609e-06
  Prefactor  = 1.44651e-06
  Prefactor  = 3.65453
  Prefactor  = 6.97992e-06
  Prefactor  = 1.7536e-07
  Normalizat = 0.856265
  Prefactor  = 0.92726
 **********
 **   18 **HESSE 
 **********

 FCN=   8279.211     FROM HESSE     STATUS=OK           247 CALLS     1382 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19307        1.4883        .34170E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10056E-05    26.648        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1746        .98136        .10568E-02   -1.5686    
   4  norm          .11102E-09    2.2783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .61676        95.468        .75504E-03   -1.5692    
   6  Prefactor     16.976        13.716        .24270E-03   -1.5626    
   7  Prefactor     .87700        .26160        .51257E-02   -1.5521    
   8  Prefactor     8.4628        7.9178        .34399E-02   -1.5126    
   9  norm          1.6753        1.1742        .81408E-03   -1.5682    
  10  Prefactor     .61361E-05    19.569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .14465E-05    14.635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6545        .31583        .32048E-02   -1.5326    
  13  Prefactor     .69799E-05    15.539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .17536E-06    3.2159        .10618E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .85626        .23429        .88769E-01   -.98014    
  16  Prefactor     .92726        .11990        .45350E-01   -.95195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.41382e-07
Minuit parameter uncertainties:
  1  1.07211
  2  0.0103531
  3  0.981361
  4  3.39571e-05
  5  15.347
  6  13.7161
  7  0.261603
  8  7.9188
  9  1.17421
  10  0.0219158
  11  0.00920226
  12  0.315826
  13  0.0208287
  14  0.00150186
  15  0.234569
  16  0.119938
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  8.770e-01  2.616e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.273e-01  1.199e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  8.563e-01  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.64
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 2.24e-07 +/- 6.67e-08
Energy Flux (Fixed Index): 8.29e-05 +/- 2.47e-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) = 8277.50092886
delta logL = 1.71039944736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8277.49851933
delta logL = 1.71280898125

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74164       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.5670       1.0000          .0000       10.000    
     3 'Normalizat'    .75708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8277.499     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      213 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74163        2.4531        .42432E-02    .58491E-04
   2  Index1        2.5670        2.6785        .10261        .13130E-03
   3  Normalizat    .75708        .13629        .93599E-01    .61283E-04
   4  Prefactor     .96159        .72546E-01    .45785E-01   -.70398E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.741635
  Index1     = 2.56695
  Normalizat = 0.757082
  Prefactor  = 0.961588
 **********
 **   18 **HESSE 
 **********

 FCN=   8277.499     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74163        .23990        .18815E-04   -1.5536    
   2  Index1        2.5670        .29672        .43473E-02   -.50820    
   3  Normalizat    .75708        .26546        .41472E-03   -1.0168    
   4  Prefactor     .96159        .14229        .20180E-03   -.94021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49647e-11
Minuit parameter uncertainties:
  1  0.239903
  2  0.296944
  3  0.265917
  4  0.142348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647641': 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) = 8277.49851932
delta logL = 1.71280898904

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  7.416e-01  2.399e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.567e+00  2.969e-01  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.616e-01  1.423e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  7.571e-01  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.15
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.57 +/- 0.30
Photon Flux (Free Index): 3.11e-07 +/- 8.75e-08
Energy Flux (Free Index): 7.30e-05 +/- 1.93e-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/647641/cmap_HighResolution_688262401_688521601_4FGL_J2232.6+1143_daily_bin1732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.24e-07', energy_flux2='7.30e-05', photon_flux_error='6.67e-08', dlogl='1.71e+00', energy_flux='8.29e-05', photon_flux2='3.11e-07', job_status='DONE', time_completed='2022-10-27 00:45:32.545271', photon_index_error2='0.30', photon_index2='2.57', ts='29.64', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='0.86', time_epoch_completed='1666856732.55', return_code='0', job_id='647641', GAL2='0.96', EG2='0.76', return_code2='0', energy_flux_error='2.47e-05', photon_flux_error2='8.75e-08', ts2='33.15', photon_index='2.05' WHERE bin_id='1732' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct 27 00:45:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 647641: <4FGL_J2232.6+1143_daily_bin1732> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1732> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Oct 27 00:35:43 2022
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 27 00:35:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 27 00:35:44 2022
Terminated at Thu Oct 27 00:45:33 2022
Results reported at Thu Oct 27 00:45:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1732 338.152 11.7306 688262401 688521601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2232.6+1143 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   528.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             330.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   588 sec.
    Turnaround time :                            590 sec.

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

