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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1775
RA = 352.629, Dec = 11.0479
tmin = 699408001, tmax = 699667201
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='794852', job_status='RUN', time_executed='2023-03-05 04:07:40.053735', time_epoch_executed='1678018060.05' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794852/ft1_4FGL_J2330.5+1102_daily_bin1775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794852/ft2_4FGL_J2330.5+1102_daily_bin1775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794852/ft1_4FGL_J2330.5+1102_daily_bin1775.fits outfile=/scratch/kocevski/794852/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1775.fits ra=352.629 dec=11.0479 rad=12.0 tmin=699408001.0 tmax=699667201.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.73
user 4.51
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/794852/ft2_4FGL_J2330.5+1102_daily_bin1775.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/794852/ft2_4FGL_J2330.5+1102_daily_bin1775.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/794852/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1775.fits evtable="EVENTS" outfile="/scratch/kocevski/794852/ft1_filtered_4FGL_J2330.5+1102_daily_bin1775.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.32
sys 0.16

Number of photons that the gtmktime cut: 577

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794852/ft1_filtered_4FGL_J2330.5+1102_daily_bin1775.fits" evtable="EVENTS" scfile=/scratch/kocevski/794852/ft2_4FGL_J2330.5+1102_daily_bin1775.fits sctable="SC_DATA" outfile=/scratch/kocevski/794852/ltcube_699408001_699667201_4FGL_J2330.5+1102_daily_bin1775.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/794852/ft2_4FGL_J2330.5+1102_daily_bin1775.fits
.....................!
real 12.77
user 12.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794852/ft1_filtered_4FGL_J2330.5+1102_daily_bin1775.fits evtable="EVENTS" scfile=/scratch/kocevski/794852/ft2_4FGL_J2330.5+1102_daily_bin1775.fits sctable="SC_DATA" expcube=/scratch/kocevski/794852/ltcube_699408001_699667201_4FGL_J2330.5+1102_daily_bin1775.fits outfile=/scratch/kocevski/794852/expmap_699408001_699667201_4FGL_J2330.5+1102_daily_bin1775.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/794852/ltcube_699408001_699667201_4FGL_J2330.5+1102_daily_bin1775.fits
.....................!
real 190.98
user 185.17
sys 5.22

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

Setting source of interest to:
4FGL J2330.5+1102 @ 352.629 11.0479

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/794852/ft1_filtered_4FGL_J2330.5+1102_daily_bin1775.fits scfile=/scratch/kocevski/794852/ft2_4FGL_J2330.5+1102_daily_bin1775.fits outfile=/scratch/kocevski/794852/cmap_699408001_699667201_4FGL_J2330.5+1102_daily_bin1775.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.629 yref=11.0479 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/794852/ft1_filtered_4FGL_J2330.5+1102_daily_bin1775.fits scfile=/scratch/kocevski/794852/ft2_4FGL_J2330.5+1102_daily_bin1775.fits outfile=/scratch/kocevski/794852/cmap_HighResolution_699408001_699667201_4FGL_J2330.5+1102_daily_bin1775.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.629 yref=11.0479 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/794852/ft1_filtered_4FGL_J2330.5+1102_daily_bin1775.fits evtable="EVENTS" scfile=/scratch/kocevski/794852/ft2_4FGL_J2330.5+1102_daily_bin1775.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/794852/Model_4FGL_J2330.5+1102_daily_bin1775.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/794852/ft1_filtered_4FGL_J2330.5+1102_daily_bin1775.fits.....................!
real 73.85
user 72.18
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/794852/ft1_filtered_4FGL_J2330.5+1102_daily_bin1775.fits', '/scratch/kocevski/794852/ft2_4FGL_J2330.5+1102_daily_bin1775.fits', expMap='/scratch/kocevski/794852/expmap_699408001_699667201_4FGL_J2330.5+1102_daily_bin1775.fits', expCube='/scratch/kocevski/794852/ltcube_699408001_699667201_4FGL_J2330.5+1102_daily_bin1775.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/794852/Model_4FGL_J2330.5+1102_daily_bin1775.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2330.5+1102'

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  2.056e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
428        Index:  2.787e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/794852/ft1_filtered_4FGL_J2330.5+1102_daily_bin1775.fits
Spacecraft file(s): /scratch/kocevski/794852/ft2_4FGL_J2330.5+1102_daily_bin1775.fits
Exposure map: /scratch/kocevski/794852/expmap_699408001_699667201_4FGL_J2330.5+1102_daily_bin1775.fits
Exposure cube: /scratch/kocevski/794852/ltcube_699408001_699667201_4FGL_J2330.5+1102_daily_bin1775.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/794852/Model_4FGL_J2330.5+1102_daily_bin1775.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) = 6595.09122517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4071       1.0000          .0000       .10000E+07
     2 'Prefactor '    .52937       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85228E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .67927E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    22.128       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61613E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.9296       1.0000          .0000       .10000E+07
     8 'Prefactor '    .94420E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .62843       1.0000          .0000       .10000E+07
    10 'norm      '    .11146E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11105E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    16.159       1.0000          .0000       .10000E+07
    13 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    14 'Prefactor '    77.651       1.0000          .0000       .10000E+07
    15 'Prefactor '    .96420E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18131       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1369       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93275       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6595.082     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1368 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3682        5.3329       -.10612E-05   -.18578E-01
   2  Prefactor     .52952        .17612        .37501E-06    .13303E-02
   3  Prefactor     .33307E-09    10.450       -.42564E-06** at limit **
   4  Prefactor     .55511E-10    4.7617        .96017E-06** at limit **
   5  Prefactor     22.248        18.344       -.24268E-05   -.89386E-01
   6  Prefactor     .10547E-08    7.8194       -.92598E-06** at limit **
   7  Prefactor     2.8658        15.139        .49039E-05    .92015E-02
   8  Prefactor     .17208E-08    22.007        .91633E-06** at limit **
   9  Prefactor     .14088E-04    692.13       -.12883E-04** at limit **
  10  norm          .61839E-07    47.390        .61278E-05** at limit **
  11  Prefactor     .55511E-10    6.8025        .83880E-06** at limit **
  12  Prefactor     16.080        18.214       -.30050E-05    .12384E-01
  13  norm          .22204E-09    12.905        .15508E-06** at limit **
  14  Prefactor     78.047        20.744       -.15009E-05    .15588    
  15  Prefactor     .33307E-09    6.8495       -.10867E-05** at limit **
  16  Prefactor     .21077        34.211       -.21005E-05** at limit **
  17  Normalizat    1.1367        .25293       -.25030E-05    .23422E-03
  18  Prefactor     .93282        .15131        .96020E-05    .37647E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.36817
  Prefactor  = 0.529517
  Prefactor  = 3.33067e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 22.2483
  Prefactor  = 1.05471e-09
  Prefactor  = 2.86576
  Prefactor  = 1.72085e-09
  Prefactor  = 1.40885e-05
  norm       = 6.18394e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 16.0804
  norm       = 2.22045e-10
  Prefactor  = 78.0473
  Prefactor  = 3.33067e-10
  Prefactor  = 0.210767
  Normalizat = 1.1367
  Prefactor  = 0.932823
 **********
 **   18 **HESSE 
 **********

 FCN=   6595.082     FROM HESSE     STATUS=OK           282 CALLS     1650 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3682        24.739        .32651E-03   -1.5647    
   2  Prefactor     .52952        .17814        .42551E-02   -1.5562    
   3  Prefactor     .33307E-09    10.534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    4.7619        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.248        25.482        .21264E-03   -1.5614    
   6  Prefactor     .10547E-08    7.8055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8658        18.037        .59322E-03   -1.5674    
   8  Prefactor     .17208E-08    22.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14088E-04    694.22        .66719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .61839E-07    47.117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    6.7771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.080        34.211        .24889E-03   -1.5628    
  13  norm          .22204E-09    12.938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     78.047        50.263        .11349E-03   -1.5531    
  15  Prefactor     .33307E-09    6.8651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21077        3.6837        .83832E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1367        .21419        .69297E-01   -.88582    
  18  Prefactor     .93282        .12715        .45421E-01   -.95003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06348e-06
Minuit parameter uncertainties:
  1  24.7389
  2  0.178142
  3  0.00011925
  4  3.94152e-05
  5  25.4818
  6  0.000180909
  7  14.3791
  8  0.000392088
  9  0.197816
  10  0.00341366
  11  4.61235e-05
  12  34.2111
  13  0.000100839
  14  50.2629
  15  9.85089e-05
  16  1.76228
  17  0.214356
  18  0.127189
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  5.551e-11  4.612e-05  0.000e+00  1.000e+06 ( 1.000e-12)
428        Index:  2.787e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.328e-01  1.272e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.137e+00  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/794852/likelihoodResults_699408001_699667201_4FGL_J2330.5+1102_daily_bin1775.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) = 6595.08350884
delta logL = -0.00181961791623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6595.08169237
delta logL = -3.15218130709e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6595.082     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      242 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.9873        .42118E-03** at limit **
   2  Index         1.8112        .80840       -.45884E-04     .0000    
   3  Normalizat    1.1367        1.1328        .26851E-05   -.23493E-03
   4  Prefactor     .93282        1.2760        .16700E-04   -.17262E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.81115
  Normalizat = 1.1367
  Prefactor  = 0.932824
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6595.082     FROM HESSE     STATUS=FAILED         9 CALLS      251 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.9873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .33691        1.5453       -.45884E-04   -.69160    
   3  Normalizat    1.1367        1.1328        .26851E-05   -.88582    
   4  Prefactor     .93282        1.2760        .16700E-04   -.95003    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.54427e-10
Minuit parameter uncertainties:
  1  1.24263e-05
  2  0.814457
  3  1.15856
  4  1.32095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794852': 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) = 6595.08168922
delta logL = -1.54614099301e-11

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  0.000e+00  1.243e-05  0.000e+00  1.000e+06 ( 1.000e-12)
428        Index:  1.811e+00  8.145e-01  0.000e+00  1.000e+01 (-1.000e+00)
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.328e-01  1.321e+00  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.137e+00  1.159e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.629 11.048

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/794852/cmap_HighResolution_699408001_699667201_4FGL_J2330.5+1102_daily_bin1775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.84e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2023-03-05 04:16:49.562409', job_id='794852', GAL2='0.93', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1678018609.56', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-1.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1775' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Mar  5 04:16:49 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 794852: <4FGL_J2330.5+1102_daily_bin1775> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1775> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Mar  5 04:00:22 2023
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Mar  5 04:06:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Mar  5 04:06:20 2023
Terminated at Sun Mar  5 04:16:50 2023
Results reported at Sun Mar  5 04:16:50 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1775 352.629 11.0479 699408001 699667201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2330.5+1102 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   551.03 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             352.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            988 sec.

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

