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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1706
RA = 352.629, Dec = 11.0479
tmin = 681523201, tmax = 681782401
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='507876', job_status='RUN', time_executed='2022-08-10 02:19:45.328714', time_epoch_executed='1660123185.33' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1706'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507876

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507876/ft1_4FGL_J2330.5+1102_daily_bin1706.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507876/ft2_4FGL_J2330.5+1102_daily_bin1706.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507876/ft1_4FGL_J2330.5+1102_daily_bin1706.fits outfile=/scratch/kocevski/507876/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1706.fits ra=352.629 dec=11.0479 rad=12.0 tmin=681523201.0 tmax=681782401.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.60
user 2.42
sys 0.17

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

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

Number of photons that the gtmktime cut: 896

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507876/ft1_filtered_4FGL_J2330.5+1102_daily_bin1706.fits evtable="EVENTS" scfile=/scratch/kocevski/507876/ft2_4FGL_J2330.5+1102_daily_bin1706.fits sctable="SC_DATA" expcube=/scratch/kocevski/507876/ltcube_681523201_681782401_4FGL_J2330.5+1102_daily_bin1706.fits outfile=/scratch/kocevski/507876/expmap_681523201_681782401_4FGL_J2330.5+1102_daily_bin1706.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/507876/ltcube_681523201_681782401_4FGL_J2330.5+1102_daily_bin1706.fits
.....................!
real 192.30
user 185.79
sys 5.21

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/507876/ft1_filtered_4FGL_J2330.5+1102_daily_bin1706.fits scfile=/scratch/kocevski/507876/ft2_4FGL_J2330.5+1102_daily_bin1706.fits outfile=/scratch/kocevski/507876/cmap_681523201_681782401_4FGL_J2330.5+1102_daily_bin1706.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507876/ft1_filtered_4FGL_J2330.5+1102_daily_bin1706.fits scfile=/scratch/kocevski/507876/ft2_4FGL_J2330.5+1102_daily_bin1706.fits outfile=/scratch/kocevski/507876/cmap_HighResolution_681523201_681782401_4FGL_J2330.5+1102_daily_bin1706.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.629 yref=11.0479 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.630       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .81542       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7763       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8649       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.936       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .44730       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.703       1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.620       1.0000         .10000E-03   10000.    
    15 'norm      '    .80250       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12068E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.459       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .81895       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99436       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=   9844.526     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2071 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.682        .90675E-05** at limit **
   2  Prefactor     15.630        13.478       -.34712E-06   -.24908E-05
   3  Prefactor     .81545        .15712        .16464E-07   -.42822E-03
   4  Prefactor     .10000E-03    13.028       -.72929E-05** at limit **
   5  Prefactor     7.7766        5.4438       -.17680E-05   -.99079E-04
   6  Prefactor     .10000E-03    3.2206        .12884E-07** at limit **
   7  Prefactor     .10000E-03    22.766        .93884E-05** at limit **
   8  Prefactor     .10000E-03    3.3991        .43188E-06** at limit **
   9  Prefactor     1.8597        5.0504       -.10718E-05   -.63965E-03
  10  Prefactor     19.945        15.909       -.62542E-05    .49296E-05
  11  Prefactor     .10000E-03    20.752       -.10621E-04** at limit **
  12  norm          .53762        6.7738       -.12562E-05   -.22142E-03
  13  Prefactor     11.674        7.5446       -.10018E-07    .50836E-03
  14  Prefactor     37.583        23.059        .12593E-06    .19049E-03
  15  norm          .80095        5.8073       -.55384E-06   -.10198E-03
  16  Prefactor     .10000E-03    104.38       -.61173E-05** at limit **
  17  Prefactor     42.462        20.968        .26467E-05    .73455E-04
  18  Prefactor     .10000E-03    1.6271        .83305E-07** at limit **
  19  Normalizat    .81891        .17122        .20764E-05    .16011E-03
  20  Prefactor     .99435        .10212        .10261E-06    .33925E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.6301
  Prefactor  = 0.815445
  Prefactor  = 0.0001
  Prefactor  = 7.77658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.85969
  Prefactor  = 19.9446
  Prefactor  = 0.0001
  norm       = 0.537616
  Prefactor  = 11.6735
  Prefactor  = 37.5826
  norm       = 0.800952
  Prefactor  = 0.000100001
  Prefactor  = 42.4618
  Prefactor  = 0.0001
  Normalizat = 0.818907
  Prefactor  = 0.994352
 **********
 **   18 **HESSE 
 **********

 FCN=   9844.526     FROM HESSE     STATUS=OK           295 CALLS     2366 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.630        13.489        .10131E-03   -1.4917    
   3  Prefactor     .81545        .15707        .16318E-04   -1.5527    
   4  Prefactor     .10000E-03    13.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.7766        5.4486        .14380E-03   -1.5150    
   6  Prefactor     .10000E-03    3.2304        .17388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.149        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4876        .35690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8597        5.0403        .30508E-03   -1.5435    
  10  Prefactor     19.945        15.894        .89704E-04   -1.4814    
  11  Prefactor     .10000E-03    20.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .53762        28.692        .40278E-02   -1.5561    
  13  Prefactor     11.674        7.5293        .11710E-03   -1.5025    
  14  Prefactor     37.583        22.919        .65345E-04   -1.4481    
  15  norm          .80095        33.309        .45650E-02   -1.5529    
  16  Prefactor     .10000E-03    106.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     42.462        20.988        .61522E-04   -1.4404    
  18  Prefactor     .10000E-03    1.6347        .12357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .81891        .19911        .33439E-03   -.99371    
  20  Prefactor     .99435        .11991        .19094E-03   -.92918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35667e-08
Minuit parameter uncertainties:
  1  4.85649e-06
  2  13.4921
  3  0.157072
  4  7.5789e-06
  5  5.44894
  6  2.49727e-06
  7  0.000165012
  8  7.95656e-05
  9  5.04142
  10  15.8974
  11  1.19553e-05
  12  7.85823
  13  7.52993
  14  22.9242
  15  10.3358
  16  0.000678286
  17  20.9918
  18  1.6408e-06
  19  0.199291
  20  0.119941
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.167e+01  7.530e+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:  9.944e-01  1.199e-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.189e-01  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.51
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 8.19e-08 +/- 5.27e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.19e-05

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) = 9844.50077222
delta logL = 0.0256737492455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9844.4911616
delta logL = 0.0352843621167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.659       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6423       1.0000          .0000       10.000    
     3 'Normalizat'    .82794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99041       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9844.491     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      255 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.660        7.9714        .56293E-03    .84102E-04
   2  Index         2.6418        .54815        .78866E-02    .29900E-03
   3  Normalizat    .82797        .19522        .33273E-03   -.65670E-04
   4  Prefactor     .99041        .12002        .19127E-03   -.12729E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.66
  Index      = 2.64185
  Normalizat = 0.827974
  Prefactor  = 0.990407
 **********
 **   18 **HESSE 
 **********

 FCN=   9844.491     FROM HESSE     STATUS=OK            27 CALLS      282 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.660        7.8139        .11259E-03   -1.4996    
   2  Index         2.6418        .53694        .15773E-02   -.49114    
   3  Normalizat    .82797        .19534        .13309E-04   -.99039    
   4  Prefactor     .99041        .12007        .38254E-04   -.93050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5156e-12
Minuit parameter uncertainties:
  1  7.8145
  2  0.538273
  3  0.195509
  4  0.120103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507876': 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) = 9844.49116128
delta logL = 0.0352846832484

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.266e+01  7.815e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.642e+00  5.383e-01  0.000e+00  1.000e+01 (-1.000e+00)
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.904e-01  1.201e-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.280e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.55
Ra Dec: 352.629 11.048
Photon Index (Free Index): 2.64 +/- 0.54
Photon Flux (Free Index): 7.52e-08 +/- 5.03e-08
Energy Flux (Free Index): 1.90e-05 +/- 1.09e-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/507876/cmap_HighResolution_681523201_681782401_4FGL_J2330.5+1102_daily_bin1706.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.19e-08', energy_flux2='1.90e-05', photon_flux_error='5.27e-08', dlogl='3.53e-02', energy_flux='1.85e-05', photon_flux2='7.52e-08', job_status='DONE', time_completed='2022-08-10 02:31:11.312015', photon_index_error2='0.54', photon_index2='2.64', ts='5.51', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='0.82', time_epoch_completed='1660123871.31', return_code='0', job_id='507876', GAL2='0.99', EG2='0.83', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='5.03e-08', ts2='5.55', photon_index='2.79' WHERE bin_id='1706' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 10 02:31:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 507876: <4FGL_J2330.5+1102_daily_bin1706> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1706> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Aug 10 02:15:38 2022
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 10 02:19:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 10 02:19:14 2022
Terminated at Wed Aug 10 02:31:12 2022
Results reported at Wed Aug 10 02:31:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1706 352.629 11.0479 681523201 681782401 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 :                                   685.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             389.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            934 sec.

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

