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 13 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1700
RA = 352.629, Dec = 11.0479
tmin = 679968001, tmax = 680227201
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='83497', job_status='RUN', time_executed='2022-07-23 00:36:20.512184', time_epoch_executed='1658561780.51' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83497

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83497/ft1_4FGL_J2330.5+1102_daily_bin1700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83497/ft2_4FGL_J2330.5+1102_daily_bin1700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83497/ft1_4FGL_J2330.5+1102_daily_bin1700.fits outfile=/scratch/kocevski/83497/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1700.fits ra=352.629 dec=11.0479 rad=12.0 tmin=679968001.0 tmax=680227201.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 6.92
user 4.32
sys 0.38

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

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

Number of photons that the gtmktime cut: 674

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/83497/ft1_filtered_4FGL_J2330.5+1102_daily_bin1700.fits" evtable="EVENTS" scfile=/scratch/kocevski/83497/ft2_4FGL_J2330.5+1102_daily_bin1700.fits sctable="SC_DATA" outfile=/scratch/kocevski/83497/ltcube_679968001_680227201_4FGL_J2330.5+1102_daily_bin1700.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/83497/ft2_4FGL_J2330.5+1102_daily_bin1700.fits
.....................!
real 12.23
user 11.61
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83497/ft1_filtered_4FGL_J2330.5+1102_daily_bin1700.fits evtable="EVENTS" scfile=/scratch/kocevski/83497/ft2_4FGL_J2330.5+1102_daily_bin1700.fits sctable="SC_DATA" expcube=/scratch/kocevski/83497/ltcube_679968001_680227201_4FGL_J2330.5+1102_daily_bin1700.fits outfile=/scratch/kocevski/83497/expmap_679968001_680227201_4FGL_J2330.5+1102_daily_bin1700.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/83497/ltcube_679968001_680227201_4FGL_J2330.5+1102_daily_bin1700.fits
.....................!
real 189.84
user 185.62
sys 3.87

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/83497/ft1_filtered_4FGL_J2330.5+1102_daily_bin1700.fits scfile=/scratch/kocevski/83497/ft2_4FGL_J2330.5+1102_daily_bin1700.fits outfile=/scratch/kocevski/83497/cmap_679968001_680227201_4FGL_J2330.5+1102_daily_bin1700.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.62
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/83497/ft1_filtered_4FGL_J2330.5+1102_daily_bin1700.fits scfile=/scratch/kocevski/83497/ft2_4FGL_J2330.5+1102_daily_bin1700.fits outfile=/scratch/kocevski/83497/cmap_HighResolution_679968001_680227201_4FGL_J2330.5+1102_daily_bin1700.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.65
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/83497/ft1_filtered_4FGL_J2330.5+1102_daily_bin1700.fits', '/scratch/kocevski/83497/ft2_4FGL_J2330.5+1102_daily_bin1700.fits', expMap='/scratch/kocevski/83497/expmap_679968001_680227201_4FGL_J2330.5+1102_daily_bin1700.fits', expCube='/scratch/kocevski/83497/ltcube_679968001_680227201_4FGL_J2330.5+1102_daily_bin1700.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/83497/Model_4FGL_J2330.5+1102_daily_bin1700.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  1.000e-04  1.000e+04 ( 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/83497/ft1_filtered_4FGL_J2330.5+1102_daily_bin1700.fits
Spacecraft file(s): /scratch/kocevski/83497/ft2_4FGL_J2330.5+1102_daily_bin1700.fits
Exposure map: /scratch/kocevski/83497/expmap_679968001_680227201_4FGL_J2330.5+1102_daily_bin1700.fits
Exposure cube: /scratch/kocevski/83497/ltcube_679968001_680227201_4FGL_J2330.5+1102_daily_bin1700.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/83497/Model_4FGL_J2330.5+1102_daily_bin1700.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) = 7458.61835381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10923E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8572       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4481       1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.540       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21601E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.793       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2511       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.165       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18638E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5807       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3303       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .25969E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.203       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0474       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9266       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .66015       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0123       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7458.605     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2059 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.099        .16149E-05** at limit **
   2  Prefactor     8.8567        10.741        .32663E-06    .82786E-04
   3  Prefactor     1.4481        .22550        .63452E-09   -.16983E-03
   4  Prefactor     48.540        36.235        .21024E-06    .11154E-04
   5  Prefactor     .10000E-03    2.3070        .30523E-08** at limit **
   6  Prefactor     .10001E-03    9.4988       -.12335E-06** at limit **
   7  Prefactor     22.788        18.828        .43156E-07   -.93840E-05
   8  Prefactor     2.2389        7.4320        .10925E-05   -.12743E-03
   9  Prefactor     .10000E-03    3.4783       -.11017E-06** at limit **
  10  Prefactor     14.203        23.194       -.13521E-05   -.10026E-03
  11  Prefactor     .10000E-03    153.05       -.17275E-05** at limit **
  12  norm          6.5848        7.5750       -.91349E-06   -.38575E-03
  13  Prefactor     9.3318        8.1598        .44991E-06    .68947E-04
  14  Prefactor     .10000E-03    17.844       -.22928E-06** at limit **
  15  norm          .10005E-03    6.6333       -.23146E-06** at limit **
  16  Prefactor     31.193        27.282       -.13518E-06    .51437E-05
  17  Prefactor     7.0515        17.175        .35903E-05   -.11007E-03
  18  Prefactor     9.9276        6.9168        .24089E-06    .11931E-03
  19  Normalizat    .65998        .20116       -.69418E-06    .13074E-04
  20  Prefactor     1.0123        .11772       -.55605E-07    .14503E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 8.8567
  Prefactor  = 1.44807
  Prefactor  = 48.54
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 22.7884
  Prefactor  = 2.2389
  Prefactor  = 0.0001
  Prefactor  = 14.203
  Prefactor  = 0.000100001
  norm       = 6.58484
  Prefactor  = 9.3318
  Prefactor  = 0.0001
  norm       = 0.000100048
  Prefactor  = 31.1928
  Prefactor  = 7.0515
  Prefactor  = 9.92757
  Normalizat = 0.659978
  Prefactor  = 1.01234
 **********
 **   18 **HESSE 
 **********

 FCN=   7458.605     FROM HESSE     STATUS=OK           305 CALLS     2364 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.8567        10.769        .67340E-03   -1.5113    
   3  Prefactor     1.4481        .22560        .15495E-04   -1.5467    
   4  Prefactor     48.540        36.224        .57556E-04   -1.4313    
   5  Prefactor     .10000E-03    2.3164        .12808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    52.650        .50626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.788        18.830        .83900E-04   -1.4753    
   8  Prefactor     2.2389        7.3476        .27386E-03   -1.5409    
   9  Prefactor     .10000E-03    3.4848        .15721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.203        22.787        .10642E-03   -1.4954    
  11  Prefactor     .10000E-03    154.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5848        7.9569        .15643E-03   -1.5195    
  13  Prefactor     9.3318        8.2175        .13120E-03   -1.5097    
  14  Prefactor     .10000E-03    17.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10005E-03    7.9086        .82258E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.193        27.324        .71729E-04   -1.4590    
  17  Prefactor     7.0515        17.478        .75557E-03   -1.5177    
  18  Prefactor     9.9276        6.9251        .12718E-03   -1.5078    
  19  Normalizat    .65998        .22605        .36292E-03   -1.0549    
  20  Prefactor     1.0123        .13423        .18778E-03   -.92319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04486e-10
Minuit parameter uncertainties:
  1  0.000444322
  2  10.7718
  3  0.2256
  4  36.2407
  5  7.56353e-07
  6  0.00141617
  7  18.8353
  8  7.35057
  9  6.3871e-06
  10  22.801
  11  0.000735443
  12  7.95817
  13  8.21852
  14  1.55014e-05
  15  0.00122928
  16  27.3345
  17  17.4905
  18  6.92564
  19  0.226373
  20  0.134276
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  9.332e+00  8.219e+00  1.000e-04  1.000e+04 ( 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:  1.012e+00  1.343e-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:  6.600e-01  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.05
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 6.55e-08 +/- 5.76e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.30e-05

TS (Fixed Index): 2.05
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 1.70e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/83497/likelihoodResults_679968001_680227201_4FGL_J2330.5+1102_daily_bin1700.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) = 7458.5415129
delta logL = 0.0637105248716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7458.51340653
delta logL = 0.0918169012875

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3964       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7619       1.0000          .0000       10.000    
     3 'Normalizat'    .62237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0331       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.

 FCN=   7458.513     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      255 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3541        49.054        .54883E-02   -.18256E-02
   2  Index         3.7730        4.0431        .15480       -.14777E-03
   3  Normalizat    .62185        .63168E-01    .84255E-01   -.17918E-03
   4  Prefactor     1.0336        .38127E-01    .41019E-01   -.45768E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.35407
  Index      = 3.77303
  Normalizat = 0.621847
  Prefactor  = 1.03361
 **********
 **   18 **HESSE 
 **********

 FCN=   7458.513     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      286 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3541        86.098        .11147E-03   -1.5342    
   2  Index         3.7730        6.7723        .78294E-02   -.24793    
   3  Normalizat    .62185        .22644        .37319E-03   -1.0706    
   4  Prefactor     1.0336        .14104        .18611E-03   -.91617    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45201e-09
Minuit parameter uncertainties:
  1  34.0413
  2  7.88313
  3  0.226778
  4  0.14109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83497': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7458.51339377
delta logL = 0.0918296563814

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  3.354e+00  3.404e+01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  3.773e+00  7.883e+00  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:  1.034e+00  1.411e-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:  6.218e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 352.629 11.048
Photon Index (Free Index): 3.77 +/- 7.88
Photon Flux (Free Index): 8.39e-08 +/- 8.47e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.53e-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/83497/cmap_HighResolution_679968001_680227201_4FGL_J2330.5+1102_daily_bin1700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', photon_flux='6.55e-08', energy_flux2='1.31e-05', photon_flux_error='5.76e-08', dlogl='9.18e-02', energy_flux='1.48e-05', photon_flux2='8.39e-08', job_status='DONE', time_completed='2022-07-23 00:47:18.709838', photon_index_error2='7.88', photon_index2='3.77', ts='2.05', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='1.53e-05', EG='0.66', time_epoch_completed='1658562438.71', return_code='0', job_id='83497', GAL2='1.03', EG2='0.62', return_code2='102', energy_flux_error='1.30e-05', photon_flux_error2='8.47e-08', ts2='2.34', photon_index='2.79' WHERE bin_id='1700' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 23 00:47:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 83497: <4FGL_J2330.5+1102_daily_bin1700> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1700> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 00:35:52 2022
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:35:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:35:53 2022
Terminated at Sat Jul 23 00:47:19 2022
Results reported at Sat Jul 23 00:47:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1700 352.629 11.0479 679968001 680227201 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 :                                   648.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            687 sec.

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

