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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1669
RA = 352.629, Dec = 11.0479
tmin = 671932801, tmax = 672192001
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='693500', job_status='RUN', time_executed='2022-04-21 00:43:14.204187', time_epoch_executed='1650526994.2' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1669'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693500

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693500/ft1_4FGL_J2330.5+1102_daily_bin1669.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693500/ft2_4FGL_J2330.5+1102_daily_bin1669.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693500/ft1_4FGL_J2330.5+1102_daily_bin1669.fits outfile=/scratch/kocevski/693500/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1669.fits ra=352.629 dec=11.0479 rad=12.0 tmin=671932801.0 tmax=672192001.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 2.90
user 2.69
sys 0.19

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

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

Number of photons that the gtmktime cut: 666

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693500/ft1_filtered_4FGL_J2330.5+1102_daily_bin1669.fits" evtable="EVENTS" scfile=/scratch/kocevski/693500/ft2_4FGL_J2330.5+1102_daily_bin1669.fits sctable="SC_DATA" outfile=/scratch/kocevski/693500/ltcube_671932801_672192001_4FGL_J2330.5+1102_daily_bin1669.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/693500/ft2_4FGL_J2330.5+1102_daily_bin1669.fits
.....................!
real 9.20
user 8.86
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693500/ft1_filtered_4FGL_J2330.5+1102_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/693500/ft2_4FGL_J2330.5+1102_daily_bin1669.fits sctable="SC_DATA" expcube=/scratch/kocevski/693500/ltcube_671932801_672192001_4FGL_J2330.5+1102_daily_bin1669.fits outfile=/scratch/kocevski/693500/expmap_671932801_672192001_4FGL_J2330.5+1102_daily_bin1669.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/693500/ltcube_671932801_672192001_4FGL_J2330.5+1102_daily_bin1669.fits
.....................!
real 144.88
user 140.75
sys 3.85

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/693500/ft1_filtered_4FGL_J2330.5+1102_daily_bin1669.fits scfile=/scratch/kocevski/693500/ft2_4FGL_J2330.5+1102_daily_bin1669.fits outfile=/scratch/kocevski/693500/cmap_671932801_672192001_4FGL_J2330.5+1102_daily_bin1669.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.46
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/693500/ft1_filtered_4FGL_J2330.5+1102_daily_bin1669.fits scfile=/scratch/kocevski/693500/ft2_4FGL_J2330.5+1102_daily_bin1669.fits outfile=/scratch/kocevski/693500/cmap_HighResolution_671932801_672192001_4FGL_J2330.5+1102_daily_bin1669.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.46
user 0.32
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.497       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32128       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4257       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4160       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7628       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .32543E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.599       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .56039E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .83884       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0667       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=   7609.066     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2048 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.488        48.185       -.40259E-05   -.26018E-03
   2  Prefactor     .10000E-03    5.8256        .13527E-06** at limit **
   3  Prefactor     .32126        .14824        .49939E-07   -.23008E-03
   4  Prefactor     .10000E-03    27.435        .11376E-05** at limit **
   5  Prefactor     .10000E-03    1.6650        .56154E-07** at limit **
   6  Prefactor     5.4250        8.4093        .26244E-05   -.73303E-03
   7  Prefactor     .10000E-03    28.644       -.17992E-05** at limit **
   8  Prefactor     .10000E-03    4.9559        .15257E-06** at limit **
   9  Prefactor     3.4025        10.071        .23741E-05    .29377E-03
  10  Prefactor     .10000E-03    32.862       -.74336E-06** at limit **
  11  Prefactor     6.7606        42.730       -.12353E-05   -.48326E-04
  12  norm          .10000E-03    3.7048        .13797E-06** at limit **
  13  Prefactor     .10000E-03    1.6357        .57452E-07** at limit **
  14  Prefactor     .10000E-03    61.302       -.15141E-05** at limit **
  15  norm          .10031E-03    10.183        .26814E-05** at limit **
  16  Prefactor     10.590        29.858       -.50090E-05   -.26412E-03
  17  Prefactor     .10000E-03    5.5286        .84116E-07** at limit **
  18  Prefactor     .10000E-03    4.2458        .36355E-07** at limit **
  19  Normalizat    .83892        .18121        .26897E-06   -.97164E-04
  20  Prefactor     1.0667        .11266       -.26630E-06   -.14274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.4884
  Prefactor  = 0.0001
  Prefactor  = 0.321265
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.42495
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.40247
  Prefactor  = 0.000100001
  Prefactor  = 6.76061
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.000100312
  Prefactor  = 10.5895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.83892
  Prefactor  = 1.0667
 **********
 **   18 **HESSE 
 **********

 FCN=   7609.066     FROM HESSE     STATUS=OK           285 CALLS     2333 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.488        49.670        .67264E-04   -1.4516    
   2  Prefactor     .10000E-03    5.8326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .32126        .14700        .20474E-04   -1.5595    
   4  Prefactor     .10000E-03    27.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.6700        .10991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4250        10.151        .86256E-03   -1.5242    
   7  Prefactor     .10000E-03    29.715        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.0189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4025        10.186        .21887E-03   -1.5339    
  10  Prefactor     .10000E-03    33.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7606        42.848        .15429E-03   -1.5188    
  12  norm          .10000E-03    3.7250        .16371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6388        .10892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    63.190        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10031E-03    50.245        .49568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.590        31.076        .12307E-03   -1.5057    
  17  Prefactor     .10000E-03    5.5339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.023        .34702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .83892        .20614        .32531E-03   -.98641    
  20  Prefactor     1.0667        .12925        .18280E-03   -.90538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.56408e-09
Minuit parameter uncertainties:
  1  49.7281
  2  1.85904e-05
  3  0.147004
  4  0.000243066
  5  2.40692e-06
  6  10.1538
  7  0.000419962
  8  6.77918e-06
  9  10.1914
  10  0.000258693
  11  34.0756
  12  7.93312e-06
  13  2.83027e-07
  14  0.00084163
  15  0.00793039
  16  31.1239
  17  1.10643e-05
  18  7.31775e-05
  19  0.206335
  20  0.129285
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  2.830e-07  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.067e+00  1.293e-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:  8.389e-01  2.063e-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: 5.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/693500/likelihoodResults_671932801_672192001_4FGL_J2330.5+1102_daily_bin1669.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): 102
logL (Free Index) = 7609.0693433
delta logL = -0.00288840431949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7609.06645649
delta logL = -1.58874263434e-06

Fit tolerance = 1e-08

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

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

 FCN=   7609.066     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      257 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.964        .11108E-01** at limit **
   2  Index         1.9622        8.7970        .50000       -.30784E-06
   3  Normalizat    .83892        .15460E-01    .32531E-03   -.33550E-05
   4  Prefactor     1.0667        .97497E-02    .18280E-03   -.22103E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 1.96217
  Normalizat = 0.83892
  Prefactor  = 1.0667
 **********
 **   18 **HESSE 
 **********

 FCN=   7609.066     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    198.47        .13829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9622        8.4895        .50000       -.65299    
   3  Normalizat    .83892        .44766E-01    .13012E-04   -.98641    
   4  Prefactor     1.0667        .28232E-01    .36559E-04   -.90538    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1117e-07
Minuit parameter uncertainties:
  1  0.00150322
  2  637.306
  3  0.0447681
  4  0.0282327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693500': 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) = 7609.06644329
delta logL = 1.16097844511e-05

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  1.503e-03  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  1.962e+00  6.373e+02  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.067e+00  2.823e-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:  8.389e-01  4.477e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/693500/cmap_HighResolution_671932801_672192001_4FGL_J2330.5+1102_daily_bin1669.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2022-04-21 00:51:13.158142', job_id='693500', GAL2='1.07', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1650527473.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.16e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1669' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Apr 21 00:51:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 693500: <4FGL_J2330.5+1102_daily_bin1669> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1669> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Apr 21 00:40:18 2022
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Apr 21 00:40:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Apr 21 00:40:19 2022
Terminated at Thu Apr 21 00:51:14 2022
Results reported at Thu Apr 21 00:51:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1669 352.629 11.0479 671932801 672192001 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 :                                   480.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            656 sec.

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

