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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1695
RA = 352.629, Dec = 11.0479
tmin = 678672001, tmax = 678931201
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='731344', job_status='RUN', time_executed='2022-07-08 00:39:12.672766', time_epoch_executed='1657265952.67' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731344

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731344/ft1_4FGL_J2330.5+1102_daily_bin1695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731344/ft2_4FGL_J2330.5+1102_daily_bin1695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731344/ft1_4FGL_J2330.5+1102_daily_bin1695.fits outfile=/scratch/kocevski/731344/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1695.fits ra=352.629 dec=11.0479 rad=12.0 tmin=678672001.0 tmax=678931201.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.62
user 3.41
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731344/ft2_4FGL_J2330.5+1102_daily_bin1695.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/731344/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1695.fits evtable="EVENTS" outfile="/scratch/kocevski/731344/ft1_filtered_4FGL_J2330.5+1102_daily_bin1695.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.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 646

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731344/ft1_filtered_4FGL_J2330.5+1102_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731344/ft2_4FGL_J2330.5+1102_daily_bin1695.fits sctable="SC_DATA" expcube=/scratch/kocevski/731344/ltcube_678672001_678931201_4FGL_J2330.5+1102_daily_bin1695.fits outfile=/scratch/kocevski/731344/expmap_678672001_678931201_4FGL_J2330.5+1102_daily_bin1695.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/731344/ltcube_678672001_678931201_4FGL_J2330.5+1102_daily_bin1695.fits
.....................!
real 192.46
user 186.74
sys 4.79

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/731344/ft1_filtered_4FGL_J2330.5+1102_daily_bin1695.fits scfile=/scratch/kocevski/731344/ft2_4FGL_J2330.5+1102_daily_bin1695.fits outfile=/scratch/kocevski/731344/cmap_678672001_678931201_4FGL_J2330.5+1102_daily_bin1695.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731344/ft1_filtered_4FGL_J2330.5+1102_daily_bin1695.fits scfile=/scratch/kocevski/731344/ft2_4FGL_J2330.5+1102_daily_bin1695.fits outfile=/scratch/kocevski/731344/cmap_HighResolution_678672001_678931201_4FGL_J2330.5+1102_daily_bin1695.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731344/ft1_filtered_4FGL_J2330.5+1102_daily_bin1695.fits', '/scratch/kocevski/731344/ft2_4FGL_J2330.5+1102_daily_bin1695.fits', expMap='/scratch/kocevski/731344/expmap_678672001_678931201_4FGL_J2330.5+1102_daily_bin1695.fits', expCube='/scratch/kocevski/731344/ltcube_678672001_678931201_4FGL_J2330.5+1102_daily_bin1695.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731344/Model_4FGL_J2330.5+1102_daily_bin1695.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/731344/ft1_filtered_4FGL_J2330.5+1102_daily_bin1695.fits
Spacecraft file(s): /scratch/kocevski/731344/ft2_4FGL_J2330.5+1102_daily_bin1695.fits
Exposure map: /scratch/kocevski/731344/expmap_678672001_678931201_4FGL_J2330.5+1102_daily_bin1695.fits
Exposure cube: /scratch/kocevski/731344/ltcube_678672001_678931201_4FGL_J2330.5+1102_daily_bin1695.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731344/Model_4FGL_J2330.5+1102_daily_bin1695.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) = 6955.5375481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.628       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .95203       1.0000         .10000E-03   10000.    
     4 'Prefactor '    69.990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9165       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1593       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .48322E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5337       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21150E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4836       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.913       1.0000         .10000E-03   10000.    
    15 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.871       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.581       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92971       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88807       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=   6955.525     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2098 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.785        .31249E-07** at limit **
   2  Prefactor     15.631        19.715       -.31887E-07   -.72761E-04
   3  Prefactor     .95205        .19083       -.16355E-08   -.74710E-03
   4  Prefactor     70.030        41.463        .12617E-06    .51873E-04
   5  Prefactor     1.9142        5.7436        .12778E-05   -.29213E-04
   6  Prefactor     7.1564        7.5683       -.94821E-07   -.78055E-04
   7  Prefactor     .10367E-03    14.324       -.76160E-06** at limit **
   8  Prefactor     1.5340        5.8352        .24464E-05   -.21768E-04
   9  Prefactor     .10000E-03    4.2818       -.14047E-06** at limit **
  10  Prefactor     .10000E-03    6.6126        .36414E-07** at limit **
  11  Prefactor     .10000E-03    17.924       -.91379E-07** at limit **
  12  norm          .10000E-03    2.8341       -.40630E-07** at limit **
  13  Prefactor     6.4830        5.4141        .16093E-05   -.17552E-03
  14  Prefactor     28.906        24.036       -.31957E-06    .62499E-04
  15  norm          .10000E-03    7.4333        .79069E-07** at limit **
  16  Prefactor     22.888        27.097       -.34444E-06   -.16033E-03
  17  Prefactor     27.590        21.595       -.15723E-06   -.20577E-03
  18  Prefactor     .10000E-03    5.3530        .25178E-06** at limit **
  19  Normalizat    .92984        .19294       -.76264E-06   -.19517E-04
  20  Prefactor     .88795        .11495       -.56781E-06   -.11488E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.6315
  Prefactor  = 0.952052
  Prefactor  = 70.0304
  Prefactor  = 1.91425
  Prefactor  = 7.15638
  Prefactor  = 0.00010367
  Prefactor  = 1.53396
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.48302
  Prefactor  = 28.9062
  norm       = 0.0001
  Prefactor  = 22.8883
  Prefactor  = 27.5902
  Prefactor  = 0.0001
  Normalizat = 0.929845
  Prefactor  = 0.887947
 **********
 **   18 **HESSE 
 **********

 FCN=   6955.525     FROM HESSE     STATUS=OK           301 CALLS     2399 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.631        19.762        .10131E-03   -1.4917    
   3  Prefactor     .95205        .19115        .15345E-04   -1.5513    
   4  Prefactor     70.030        41.495        .47982E-04   -1.4032    
   5  Prefactor     1.9142        5.7150        .30021E-03   -1.5431    
   6  Prefactor     7.1564        7.5674        .14992E-03   -1.5173    
   7  Prefactor     .10367E-03    18.491        .91339E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5340        5.8324        .34453E-03   -1.5460    
   9  Prefactor     .10000E-03    26.592        .32853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.6260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.8464        .13706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4830        5.4170        .78807E-03   -1.5199    
  14  Prefactor     28.906        23.756        .74509E-04   -1.4632    
  15  norm          .10000E-03    7.4652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.888        27.230        .83757E-04   -1.4751    
  17  Prefactor     27.590        21.681        .76282E-04   -1.4657    
  18  Prefactor     .10000E-03    5.5771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92984        .22338        .30573E-03   -.95419    
  20  Prefactor     .88795        .13318        .19546E-03   -.96564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86479e-10
Minuit parameter uncertainties:
  1  2.88852e-05
  2  19.7698
  3  0.191153
  4  41.5121
  5  5.7166
  6  7.56846
  7  0.0164801
  8  5.83456
  9  0.000398997
  10  1.94558e-05
  11  6.95256e-06
  12  8.16424e-06
  13  5.41737
  14  23.7633
  15  9.53864e-07
  16  27.2452
  17  21.6876
  18  5.3193e-06
  19  0.223608
  20  0.133234
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  6.483e+00  5.417e+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:  8.879e-01  1.332e-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:  9.298e-01  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.69
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 4.55e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 8.58e-06

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

Saving results to:
/scratch/kocevski/731344/likelihoodResults_678672001_678931201_4FGL_J2330.5+1102_daily_bin1695.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) = 6949.8554955
delta logL = 5.66943085803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6949.72583442
delta logL = 5.79909194652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7523       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1343       1.0000          .0000       10.000    
     3 'Normalizat'    .97101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87187       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=   6949.726     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      220 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7568        2.8999        .52108E-02   -.30080E-03
   2  Index         1.1343        .25031        .13767       -.70764E-04
   3  Normalizat    .97079        .18073        .67702E-01    .74966E-05
   4  Prefactor     .87197        .11383        .44646E-01   -.66038E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75677
  Index      = 1.13426
  Normalizat = 0.970788
  Prefactor  = 0.871974
 **********
 **   18 **HESSE 
 **********

 FCN=   6949.726     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7568        4.3578        .10978E-03   -1.5320    
   2  Index         1.1343        .39473        .57999E-02   -.88379    
   3  Normalizat    .97079        .20916        .29948E-03   -.94016    
   4  Prefactor     .87197        .13192        .19681E-03   -.97127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83885e-09
Minuit parameter uncertainties:
  1  4.3582
  2  0.395752
  3  0.209335
  4  0.131965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731344': 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) = 6949.72583236
delta logL = 5.7990939982

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  3.757e+00  4.358e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  1.134e+00  3.958e-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:  8.720e-01  1.320e-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:  9.708e-01  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.27
Ra Dec: 352.629 11.048
Photon Index (Free Index): 1.13 +/- 0.40
Photon Flux (Free Index): 1.21e-08 +/- 1.01e-08
Energy Flux (Free Index): 1.22e-04 +/- 1.18e-04

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/731344/cmap_HighResolution_678672001_678931201_4FGL_J2330.5+1102_daily_bin1695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.55e-08', energy_flux2='1.22e-04', photon_flux_error='3.79e-08', dlogl='5.80e+00', energy_flux='1.03e-05', photon_flux2='1.21e-08', job_status='DONE', time_completed='2022-07-08 00:49:39.160668', photon_index_error2='0.40', photon_index2='1.13', ts='2.69', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.18e-04', EG='0.93', time_epoch_completed='1657266579.16', return_code='0', job_id='731344', GAL2='0.87', EG2='0.97', return_code2='0', energy_flux_error='8.58e-06', photon_flux_error2='1.01e-08', ts2='14.27', photon_index='2.79' WHERE bin_id='1695' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul  8 00:49:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 731344: <4FGL_J2330.5+1102_daily_bin1695> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1695> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jul  8 00:35:29 2022
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  8 00:35:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  8 00:35:31 2022
Terminated at Fri Jul  8 00:49:39 2022
Results reported at Fri Jul  8 00:49:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1695 352.629 11.0479 678672001 678931201 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 :                                   628.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

