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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin1738
RA = 352.839, Dec = -15.9777
tmin = 689817601, tmax = 690076801
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='412068', job_status='RUN', time_executed='2022-11-14 00:51:37.921876', time_epoch_executed='1668415897.92' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='1738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412068

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412068/ft1_4FGL_J2331.3-1558_daily_bin1738.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412068/ft2_4FGL_J2331.3-1558_daily_bin1738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412068/ft1_4FGL_J2331.3-1558_daily_bin1738.fits outfile=/scratch/kocevski/412068/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1738.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=689817601.0 tmax=690076801.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 4.27
user 3.99
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/412068/ft2_4FGL_J2331.3-1558_daily_bin1738.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412068/ft2_4FGL_J2331.3-1558_daily_bin1738.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/412068/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1738.fits evtable="EVENTS" outfile="/scratch/kocevski/412068/ft1_filtered_4FGL_J2331.3-1558_daily_bin1738.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.54
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 609

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412068/ft1_filtered_4FGL_J2331.3-1558_daily_bin1738.fits" evtable="EVENTS" scfile=/scratch/kocevski/412068/ft2_4FGL_J2331.3-1558_daily_bin1738.fits sctable="SC_DATA" outfile=/scratch/kocevski/412068/ltcube_689817601_690076801_4FGL_J2331.3-1558_daily_bin1738.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/412068/ft2_4FGL_J2331.3-1558_daily_bin1738.fits
.....................!
real 15.67
user 15.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412068/ft1_filtered_4FGL_J2331.3-1558_daily_bin1738.fits evtable="EVENTS" scfile=/scratch/kocevski/412068/ft2_4FGL_J2331.3-1558_daily_bin1738.fits sctable="SC_DATA" expcube=/scratch/kocevski/412068/ltcube_689817601_690076801_4FGL_J2331.3-1558_daily_bin1738.fits outfile=/scratch/kocevski/412068/expmap_689817601_690076801_4FGL_J2331.3-1558_daily_bin1738.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/412068/ltcube_689817601_690076801_4FGL_J2331.3-1558_daily_bin1738.fits
.....................!
real 193.07
user 186.56
sys 5.18

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

Setting source of interest to:
4FGL J2331.3-1558 @ 352.839 -15.9777

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/412068/ft1_filtered_4FGL_J2331.3-1558_daily_bin1738.fits scfile=/scratch/kocevski/412068/ft2_4FGL_J2331.3-1558_daily_bin1738.fits outfile=/scratch/kocevski/412068/cmap_689817601_690076801_4FGL_J2331.3-1558_daily_bin1738.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=352.839 yref=-15.9777 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412068/ft1_filtered_4FGL_J2331.3-1558_daily_bin1738.fits scfile=/scratch/kocevski/412068/ft2_4FGL_J2331.3-1558_daily_bin1738.fits outfile=/scratch/kocevski/412068/cmap_HighResolution_689817601_690076801_4FGL_J2331.3-1558_daily_bin1738.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=352.839 yref=-15.9777 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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412068/ft1_filtered_4FGL_J2331.3-1558_daily_bin1738.fits evtable="EVENTS" scfile=/scratch/kocevski/412068/ft2_4FGL_J2331.3-1558_daily_bin1738.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412068/Model_4FGL_J2331.3-1558_daily_bin1738.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/412068/ft1_filtered_4FGL_J2331.3-1558_daily_bin1738.fits.....................!
real 53.96
user 52.33
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/412068/ft1_filtered_4FGL_J2331.3-1558_daily_bin1738.fits', '/scratch/kocevski/412068/ft2_4FGL_J2331.3-1558_daily_bin1738.fits', expMap='/scratch/kocevski/412068/expmap_689817601_690076801_4FGL_J2331.3-1558_daily_bin1738.fits', expCube='/scratch/kocevski/412068/ltcube_689817601_690076801_4FGL_J2331.3-1558_daily_bin1738.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/412068/Model_4FGL_J2331.3-1558_daily_bin1738.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.3-1558'

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.463e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/412068/ft1_filtered_4FGL_J2331.3-1558_daily_bin1738.fits
Spacecraft file(s): /scratch/kocevski/412068/ft2_4FGL_J2331.3-1558_daily_bin1738.fits
Exposure map: /scratch/kocevski/412068/expmap_689817601_690076801_4FGL_J2331.3-1558_daily_bin1738.fits
Exposure cube: /scratch/kocevski/412068/ltcube_689817601_690076801_4FGL_J2331.3-1558_daily_bin1738.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/412068/Model_4FGL_J2331.3-1558_daily_bin1738.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) = 6651.95487552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0576       1.0000          .0000       .10000E+07
     2 'norm      '    23.912       1.0000          .0000       .10000E+07
     3 'Prefactor '    21.768       1.0000          .0000       .10000E+07
     4 'norm      '    .64448E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .46963E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .15793E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .17764E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .76790E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .15558       1.0000          .0000       .10000E+07
    10 'norm      '    .46452E-06   1.0000          .0000       .10000E+07
    11 'norm      '    8.2571       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.5655       1.0000          .0000       .10000E+07
    13 'norm      '    .17485       1.0000          .0000       .10000E+07
    14 'norm      '    11.031       1.0000          .0000       .10000E+07
    15 'Prefactor '    .23582E-05   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0003       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .68549       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6651.813     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1234 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0965        9.3545        .23989E-06   -.37230E-03
   2  norm          24.496        27.617        .10050E-06   -.17449E-03
   3  Prefactor     21.707        10.411       -.26061E-07   -.48429E-02
   4  norm           .0000        .85615       -.11632E-06** at limit **
   5  Prefactor     .69678E-06    1.1537       -.92698E-08** at limit **
   6  Prefactor     .16653E-09    4.9426       -.60768E-07** at limit **
   7  Prefactor     .19873E-07    4.4490        .11750E-06** at limit **
   8  Prefactor      .0000        10.435        .26087E-07** at limit **
   9  Prefactor     .15402        13.358        .13677E-06** at limit **
  10  norm           .0000        1.8758       -.10659E-06** at limit **
  11  norm          8.2599        3.3919        .57471E-07   -.39981E-03
  12  Prefactor     1.5519        2.0182        .49897E-08   -.51333E-02
  13  norm          .17485        .25433       -.45195E-07** at limit **
  14  norm          11.029        4.0329        .98157E-08    .75799E-03
  15  Prefactor     .28422E-07    3.8521        .91508E-07** at limit **
  16  Normalizat    1.0001        .17355        .16782E-05    .94860E-05
  17  Prefactor     .68545        .16021        .79759E-07    .11489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.09647
  norm       = 24.4959
  Prefactor  = 21.7068
  norm       = 0
  Prefactor  = 6.96776e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 1.9873e-08
  Prefactor  = 0
  Prefactor  = 0.154025
  norm       = 0
  norm       = 8.25988
  Prefactor  = 1.5519
  norm       = 0.174846
  norm       = 11.0293
  Prefactor  = 2.84217e-08
  Normalizat = 1.00011
  Prefactor  = 0.685452
 **********
 **   18 **HESSE 
 **********

 FCN=   6651.813     FROM HESSE     STATUS=OK           267 CALLS     1501 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0965        9.3779        .72021E-03   -1.5679    
   2  norm          24.496        27.608        .20455E-03   -1.5609    
   3  Prefactor     21.707        13.449        .21439E-03   -1.5615    
   4  norm           .0000        .85895        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .69678E-06    23.911        .10049E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16653E-09    4.9622        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .19873E-07    7.8472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        10.517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .15402        3.1153        .46393E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        1.8795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.2599        3.3839        .34865E-03   -1.5650    
  12  Prefactor     1.5519        29.528        .84971E-03   -1.5683    
  13  norm          .17485        .31232        .10612E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.029        4.1456        .30140E-03   -1.5642    
  15  Prefactor     .28422E-07    8.5330        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0001        .15076        .46171E-01   -.93027    
  17  Prefactor     .68545        .13635        .42208E-01   -1.0410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90699e-07
Minuit parameter uncertainties:
  1  8.86804
  2  27.6079
  3  13.4488
  4  1.82154e-06
  5  0.00816364
  6  5.32997e-05
  7  0.000789671
  8  1.7015e-06
  9  1.38541
  10  4.83426e-06
  11  3.38385
  12  13.5389
  13  0.312322
  14  4.14558
  15  0.000985142
  16  0.150819
  17  0.136414
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.552e+00  1.354e+01  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  6.855e-01  1.364e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.000e+00  1.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 7.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412068/likelihoodResults_689817601_690076801_4FGL_J2331.3-1558_daily_bin1738.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) = 6651.6470836
delta logL = 0.165721005083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6651.62526514
delta logL = 0.187539472389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94046       1.0000          .0000       .10000E+07
     2 'Index     '    3.8058       1.0000          .0000       10.000    
     3 'Normalizat'    .97522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69948       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6651.625     FROM MIGRAD    STATUS=FAILED        86 CALLS      247 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94036        132.59        .12650E-04   -.82584E-02
   2  Index         3.8061        5.7146        .71126E-02   -.15249E-03
   3  Normalizat    .97533        .15148        .21689E-03   -.24047E-03
   4  Prefactor     .69940        .14094        .23702E-03   -.11123E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6651.625     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      334 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94036        132.59        .23922E-04   -.82584E-02
   2  Index         3.8061        5.7146        .19530E-02   -.15249E-03
   3  Normalizat    .97533        .15148        .95463E-04   -.24047E-03
   4  Prefactor     .69940        .14094        .22908E-03   -.11123E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6651.625     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      365 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94022        5.2689        .50599E-06   -.81942E-03
   2  Index         3.8062        2.1882        .28451E-03   -.80718E-05
   3  Normalizat    .97533        .17470        .43378E-04   -.11008E-04
   4  Prefactor     .69940        .16129        .94806E-05    .43169E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.940218
  Index      = 3.80623
  Normalizat = 0.975335
  Prefactor  = 0.699403
 **********
 **   18 **HESSE 
 **********

 FCN=   6651.625     FROM HESSE     STATUS=OK            23 CALLS      388 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94022        4.9971        .37404E-06   -1.5689    
   2  Index         3.8062        2.1351        .11380E-04   -.24108    
   3  Normalizat    .97533        .17486        .86756E-05   -.93861    
   4  Prefactor     .69940        .16147        .18961E-05   -1.0355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23998e-12
Minuit parameter uncertainties:
  1  4.33517
  2  2.21065
  3  0.174964
  4  0.161578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412068': 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) = 6651.6252647
delta logL = 0.187539910855

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  9.402e-01  4.335e+00  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  3.806e+00  2.211e+00  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  6.994e-01  1.616e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  9.753e-01  1.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 352.839 -15.978

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/412068/cmap_HighResolution_689817601_690076801_4FGL_J2331.3-1558_daily_bin1738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2022-11-14 01:00:23.888826', job_id='412068', GAL2='0.70', fit_tolerance='1e-08', EG2='0.98', EG='1.00', time_epoch_completed='1668416423.89', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.88e-01', ts2='0.41', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1738' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Nov 14 01:00:23 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 412068: <4FGL_J2331.3-1558_daily_bin1738> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin1738> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Nov 14 00:50:24 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov 14 00:51:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov 14 00:51:21 2022
Terminated at Mon Nov 14 01:00:24 2022
Results reported at Mon Nov 14 01:00:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin1738 352.839 -15.9777 689817601 690076801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2331.3-1558 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   526.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            600 sec.

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

