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


Performing analysis on: 4FGL_J2330.5+1102_weekly_bin760
RA = 352.629, Dec = 11.0479
tmin = 698630401, tmax = 699235201
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='45231', job_status='RUN', time_executed='2023-02-28 02:41:04.004362', time_epoch_executed='1677580864.0' WHERE source_name='4FGL J2330.5+1102' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45231

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45231/ft1_4FGL_J2330.5+1102_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45231/ft2_4FGL_J2330.5+1102_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45231/ft1_4FGL_J2330.5+1102_weekly_bin760.fits outfile=/scratch/kocevski/45231/ft1_filteredMKT_4FGL_J2330.5+1102_weekly_bin760.fits ra=352.629 dec=11.0479 rad=12.0 tmin=698630401.0 tmax=699235201.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.33
user 6.04
sys 0.25

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

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

Number of photons that the gtmktime cut: 1487

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45231/ft1_filtered_4FGL_J2330.5+1102_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/45231/ft2_4FGL_J2330.5+1102_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/45231/ltcube_698630401_699235201_4FGL_J2330.5+1102_weekly_bin760.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/45231/ft2_4FGL_J2330.5+1102_weekly_bin760.fits
.....................!
real 33.38
user 32.71
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45231/ft1_filtered_4FGL_J2330.5+1102_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/45231/ft2_4FGL_J2330.5+1102_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/45231/ltcube_698630401_699235201_4FGL_J2330.5+1102_weekly_bin760.fits outfile=/scratch/kocevski/45231/expmap_698630401_699235201_4FGL_J2330.5+1102_weekly_bin760.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/45231/ltcube_698630401_699235201_4FGL_J2330.5+1102_weekly_bin760.fits
.....................!
real 190.83
user 185.34
sys 4.25

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/45231/ft1_filtered_4FGL_J2330.5+1102_weekly_bin760.fits scfile=/scratch/kocevski/45231/ft2_4FGL_J2330.5+1102_weekly_bin760.fits outfile=/scratch/kocevski/45231/cmap_698630401_699235201_4FGL_J2330.5+1102_weekly_bin760.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.61
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/45231/ft1_filtered_4FGL_J2330.5+1102_weekly_bin760.fits scfile=/scratch/kocevski/45231/ft2_4FGL_J2330.5+1102_weekly_bin760.fits outfile=/scratch/kocevski/45231/cmap_HighResolution_698630401_699235201_4FGL_J2330.5+1102_weekly_bin760.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.59
user 0.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66830E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.7697       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .91319E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.0619       1.0000          .0000       .10000E+07
     5 'Prefactor '    27.339       1.0000          .0000       .10000E+07
     6 'Prefactor '    .70219E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .29585E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    25.972       1.0000          .0000       .10000E+07
     9 'Prefactor '    .28733E-02   1.0000          .0000       .10000E+07
    10 'norm      '    2.3922       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.8017       1.0000          .0000       .10000E+07
    12 'Prefactor '    .12826       1.0000          .0000       .10000E+07
    13 'norm      '    .20364E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    30.445       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.6727       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10714E-07   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1301       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93233       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=   16842.43     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1130 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    8.9177        .39506E-06** at limit **
   2  Prefactor     1.7701        .16777       -.93863E-07   -.99246E-02
   3  Prefactor     .47184E-08    47.918        .26897E-05** at limit **
   4  Prefactor     2.0603        2.3731        .42216E-07    .24019E-02
   5  Prefactor     27.373        1.0366       -.51056E-07   -.40165E-02
   6  Prefactor     .83267E-09    5.2103        .31671E-06** at limit **
   7  Prefactor     .16653E-09    13.173       -.10937E-05** at limit **
   8  Prefactor     25.973        2.1606        .48982E-06    .67296E-01
   9  Prefactor     .16653E-09    23.530        .11875E-05** at limit **
  10  norm          2.4877        6.1509       -.15600E-05    .34183E-02
  11  Prefactor     7.6515        7.1212        .86263E-06    .93220E-02
  12  Prefactor     .35082E-05    399.86       -.61561E-04** at limit **
  13  norm           .0000        2.1844        .65383E-07** at limit **
  14  Prefactor     30.481        1.8531        .43236E-06    .17753E-02
  15  Prefactor     2.0707        2.8517        .25318E-05    .33264E-01
  16  Prefactor      .0000        1.6589       -.58095E-06** at limit **
  17  Normalizat    1.1304        .16445       -.48365E-05    .12162E-03
  18  Prefactor     .93212        .95777E-01   -.42043E-05    .87447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 1.77005
  Prefactor  = 4.71845e-09
  Prefactor  = 2.06029
  Prefactor  = 27.3729
  Prefactor  = 8.32667e-10
  Prefactor  = 1.66533e-10
  Prefactor  = 25.9726
  Prefactor  = 1.66533e-10
  norm       = 2.48769
  Prefactor  = 7.65152
  Prefactor  = 3.50819e-06
  norm       = 0
  Prefactor  = 30.4813
  Prefactor  = 2.07066
  Prefactor  = 0
  Normalizat = 1.13044
  Prefactor  = 0.932118
 **********
 **   18 **HESSE 
 **********

 FCN=   16842.43     FROM HESSE     STATUS=OK           288 CALLS     1418 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    8.9402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7701        .16772        .35325E-02   -1.5442    
   3  Prefactor     .47184E-08    47.364        .14168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0603        2.3767        .71934E-03   -1.5679    
   5  Prefactor     27.373        19.781        .19129E-03   -1.5603    
   6  Prefactor     .83267E-09    5.1987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .16653E-09    13.161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.973        12.833        .19626E-03   -1.5606    
   9  Prefactor     .16653E-09    23.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4877        6.4018        .66188E-03   -1.5676    
  11  Prefactor     7.6515        7.2757        .35876E-03   -1.5653    
  12  Prefactor     .35082E-05    11.093        .14926E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        2.1865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.481        30.835        .18126E-03   -1.5598    
  15  Prefactor     2.0707        19.835        .81465E-03   -1.5679    
  16  Prefactor      .0000        1.6526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1304        .14442        .75238E-01   -.88780    
  18  Prefactor     .93212        .82453E-01    .45416E-01   -.95028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33247e-07
Minuit parameter uncertainties:
  1  4.73046e-05
  2  0.167716
  3  0.000945481
  4  2.37675
  5  19.7814
  6  0.000130246
  7  9.88907e-05
  8  12.8329
  9  0.000117936
  10  6.40185
  11  7.27569
  12  0.0124768
  13  5.55872e-06
  14  30.8355
  15  12.8175
  16  1.04933e-05
  17  0.144473
  18  0.0824639
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  7.652e+00  7.276e+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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.321e-01  8.246e-02  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.130e+00  1.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.66
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 5.37e-08 +/- 5.10e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/45231/likelihoodResults_698630401_699235201_4FGL_J2330.5+1102_weekly_bin760.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) = 16842.3127919
delta logL = 0.113708956433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16842.2973321
delta logL = 0.129168730156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6525       1.0000          .0000       .10000E+07
     2 'Index     '    3.6107       1.0000          .0000       10.000    
     3 'Normalizat'    1.1020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94653       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   16842.30     FROM MIGRAD    STATUS=FAILED        82 CALLS      279 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6515        97.161        .17878E-04   -.56524E-01
   2  Index         3.6112        6.6117        .10397E-01   -.92392E-03
   3  Normalizat    1.1020        .16669        .33674E-03   -.17933E-02
   4  Prefactor     .94652        .10479        .21342E-03   -.22373E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   16842.30     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      368 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6515        97.161        .27311E-04   -.56524E-01
   2  Index         3.6112        6.6117        .21088E-02   -.92392E-03
   3  Normalizat    1.1020        .16669        .91354E-04   -.17933E-02
   4  Prefactor     .94652        .10479        .51059E-04   -.22373E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16842.30     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      400 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6501        11.485        .71513E-06   -.16554E-03
   2  Index         3.6116        2.3697        .41589E-03   -.54671E-06
   3  Normalizat    1.1020        .17372        .67348E-04    .13464E-03
   4  Prefactor     .94652        .10099        .42683E-04    .62219E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.65012
  Index      = 3.61157
  Normalizat = 1.10199
  Prefactor  = 0.94652
 **********
 **   18 **HESSE 
 **********

 FCN=   16842.30     FROM HESSE     STATUS=OK            23 CALLS      423 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6501        10.876        .37360E-06   -1.5670    
   2  Index         3.6116        2.2545        .16636E-04   -.28139    
   3  Normalizat    1.1020        .17331        .13470E-04   -.89688    
   4  Prefactor     .94652        .10061        .85367E-05   -.94534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25796e-11
Minuit parameter uncertainties:
  1  10.8764
  2  2.34673
  3  0.1734
  4  0.100633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45231': 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) = 16842.2973319
delta logL = 0.129168947959

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  3.650e+00  1.088e+01  0.000e+00  1.000e+06 ( 1.000e-12)
428        Index:  3.612e+00  2.347e+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:  9.465e-01  1.006e-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.102e+00  1.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 352.629 11.048
Photon Index (Free Index): 3.61 +/- 2.35
Photon Flux (Free Index): 7.33e-08 +/- 6.19e-08
Energy Flux (Free Index): 1.19e-05 +/- 9.89e-06

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/45231/cmap_HighResolution_698630401_699235201_4FGL_J2330.5+1102_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='5.37e-08', energy_flux2='1.19e-05', photon_flux_error='5.10e-08', dlogl='1.29e-01', energy_flux='1.21e-05', photon_flux2='7.33e-08', job_status='DONE', time_completed='2023-02-28 02:56:21.513519', photon_index_error2='2.35', photon_index2='3.61', ts='1.66', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='9.89e-06', EG='1.13', time_epoch_completed='1677581781.51', return_code='0', job_id='45231', GAL2='0.95', EG2='1.10', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='6.19e-08', ts2='2.00', photon_index='2.79' WHERE bin_id='760' AND source_name='4FGL J2330.5+1102' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 02:56:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 45231: <4FGL_J2330.5+1102_weekly_bin760> in cluster <slac> Done

Job <4FGL_J2330.5+1102_weekly_bin760> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb 28 02:40:23 2023
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 02:40:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 02:40:24 2023
Terminated at Tue Feb 28 02:56:22 2023
Results reported at Tue Feb 28 02:56:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_weekly_bin760 352.629 11.0479 698630401 699235201 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 :                                   915.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             356.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

