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


Performing analysis on: 4FGL_J2323.8+4210_daily_bin1770
RA = 350.975, Dec = 42.1826
tmin = 698112001, tmax = 698371201
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='504277', job_status='RUN', time_executed='2023-02-18 02:05:33.497160', time_epoch_executed='1676714733.5' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504277/ft1_4FGL_J2323.8+4210_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504277/ft2_4FGL_J2323.8+4210_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504277/ft1_4FGL_J2323.8+4210_daily_bin1770.fits outfile=/scratch/kocevski/504277/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1770.fits ra=350.975 dec=42.1826 rad=12.0 tmin=698112001.0 tmax=698371201.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 4.37
user 4.15
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/504277/ft2_4FGL_J2323.8+4210_daily_bin1770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504277/ft2_4FGL_J2323.8+4210_daily_bin1770.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/504277/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/504277/ft1_filtered_4FGL_J2323.8+4210_daily_bin1770.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.48
user 0.34
sys 0.13

Number of photons that the gtmktime cut: 1355

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504277/ft1_filtered_4FGL_J2323.8+4210_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/504277/ft2_4FGL_J2323.8+4210_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/504277/ltcube_698112001_698371201_4FGL_J2323.8+4210_daily_bin1770.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/504277/ft2_4FGL_J2323.8+4210_daily_bin1770.fits
.....................!
real 11.79
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504277/ft1_filtered_4FGL_J2323.8+4210_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/504277/ft2_4FGL_J2323.8+4210_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/504277/ltcube_698112001_698371201_4FGL_J2323.8+4210_daily_bin1770.fits outfile=/scratch/kocevski/504277/expmap_698112001_698371201_4FGL_J2323.8+4210_daily_bin1770.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/504277/ltcube_698112001_698371201_4FGL_J2323.8+4210_daily_bin1770.fits
.....................!
real 189.99
user 185.74
sys 3.92

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 164 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2323.8+4210 @ 350.975 42.1826

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/504277/ft1_filtered_4FGL_J2323.8+4210_daily_bin1770.fits scfile=/scratch/kocevski/504277/ft2_4FGL_J2323.8+4210_daily_bin1770.fits outfile=/scratch/kocevski/504277/cmap_698112001_698371201_4FGL_J2323.8+4210_daily_bin1770.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=350.975 yref=42.1826 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504277/ft1_filtered_4FGL_J2323.8+4210_daily_bin1770.fits scfile=/scratch/kocevski/504277/ft2_4FGL_J2323.8+4210_daily_bin1770.fits outfile=/scratch/kocevski/504277/cmap_HighResolution_698112001_698371201_4FGL_J2323.8+4210_daily_bin1770.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=350.975 yref=42.1826 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504277/ft1_filtered_4FGL_J2323.8+4210_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/504277/ft2_4FGL_J2323.8+4210_daily_bin1770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504277/Model_4FGL_J2323.8+4210_daily_bin1770.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/504277/ft1_filtered_4FGL_J2323.8+4210_daily_bin1770.fits.....................!
real 164.20
user 162.83
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/504277/ft1_filtered_4FGL_J2323.8+4210_daily_bin1770.fits', '/scratch/kocevski/504277/ft2_4FGL_J2323.8+4210_daily_bin1770.fits', expMap='/scratch/kocevski/504277/expmap_698112001_698371201_4FGL_J2323.8+4210_daily_bin1770.fits', expCube='/scratch/kocevski/504277/ltcube_698112001_698371201_4FGL_J2323.8+4210_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/504277/Model_4FGL_J2323.8+4210_daily_bin1770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.8+4210'

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  5.154e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
459        alpha:  1.778e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
460         beta:  6.822e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/504277/ft1_filtered_4FGL_J2323.8+4210_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/504277/ft2_4FGL_J2323.8+4210_daily_bin1770.fits
Exposure map: /scratch/kocevski/504277/expmap_698112001_698371201_4FGL_J2323.8+4210_daily_bin1770.fits
Exposure cube: /scratch/kocevski/504277/ltcube_698112001_698371201_4FGL_J2323.8+4210_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/504277/Model_4FGL_J2323.8+4210_daily_bin1770.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) = 14121.4680518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97665E-01   1.0000          .0000       .10000E+07
     2 'norm      '    11.039       1.0000          .0000       .10000E+07
     3 'Prefactor '    .14481E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .30682       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.7578       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.9442       1.0000          .0000       .10000E+07
     7 'norm      '    1.7961       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.2398       1.0000          .0000       .10000E+07
     9 'Prefactor '    .23315E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    9.6195       1.0000          .0000       .10000E+07
    11 'norm      '    1.1158       1.0000          .0000       .10000E+07
    12 'Prefactor '    .27978E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .98571E-03   1.0000          .0000       .10000E+07
    14 'norm      '    16.656       1.0000          .0000       .10000E+07
    15 'Prefactor '    .86781       1.0000          .0000       .10000E+07
    16 'norm      '    3.6418       1.0000          .0000       .10000E+07
    17 'norm      '    .86227E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    69.763       1.0000          .0000       .10000E+07
    19 'Prefactor '    .12720E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .22235E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3662       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90849       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14121.47     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     1788 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        22.798       -.59614E-06** at limit **
   2  norm          11.060        17.457        .72318E-06   -.15237E-02
   3  Prefactor      .0000        3.6517       -.33845E-06** at limit **
   4  norm          .31130        1.5945       -.10105E-06    .37298E-03
   5  Prefactor     1.7566        3.1580        .48273E-06    .54287E-03
   6  Prefactor     8.9982        3.3894        .10144E-07   -.13660E-01
   7  norm          1.7955        2.9290        .28334E-06   -.15007E-04
   8  Prefactor     6.2481        4.3586       -.78049E-07    .27786E-01
   9  Prefactor      .0000        3.0284        .60399E-06** at limit **
  10  Prefactor     9.6105        12.119       -.95576E-06   -.86879E-02
  11  norm          1.1155        .89319       -.11941E-07    .92960E-03
  12  Prefactor      .0000        4.0433        .41055E-07** at limit **
  13  norm           .0000        6.3407        .13040E-06** at limit **
  14  norm          16.655        8.6995        .94907E-08   -.13514E-03
  15  Prefactor     .96652        24.333        .17844E-05    .30160E-03
  16  norm          3.6409        2.1304       -.99544E-07    .49441E-03
  17  norm          .11102E-09    7.3642        .21697E-05** at limit **
  18  Prefactor     69.768        1.2019       -.24482E-07   -.99162E-03
  19  Prefactor     .44409E-09    68.778        .12891E-05** at limit **
  20  Prefactor     .58453E-07    162.32        .92107E-05** at limit **
  21  Normalizat    1.3663        .21761        .59508E-05    .12366E-03
  22  Prefactor     .90845        .72189E-01   -.28059E-05    .20077E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 11.0597
  Prefactor  = 0
  norm       = 0.311299
  Prefactor  = 1.75658
  Prefactor  = 8.99815
  norm       = 1.79549
  Prefactor  = 6.24811
  Prefactor  = 0
  Prefactor  = 9.61051
  norm       = 1.11551
  Prefactor  = 0
  norm       = 0
  norm       = 16.655
  Prefactor  = 0.966523
  norm       = 3.64088
  norm       = 1.11022e-10
  Prefactor  = 69.7681
  Prefactor  = 4.44089e-10
  Prefactor  = 5.84532e-08
  Normalizat = 1.36635
  Prefactor  = 0.908446
 **********
 **   18 **HESSE 
 **********

 FCN=   14121.47     FROM HESSE     STATUS=OK           400 CALLS     2188 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        22.354        .13992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.060        19.516        .30129E-03   -1.5641    
   3  Prefactor      .0000        3.6442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .31130        1.6158        .10119E-02   -1.5697    
   5  Prefactor     1.7566        3.4826        .79015E-03   -1.5681    
   6  Prefactor     8.9982        19.339        .33490E-03   -1.5648    
   7  norm          1.7955        2.9601        .77992E-03   -1.5681    
   8  Prefactor     6.2481        14.796        .40163E-03   -1.5658    
   9  Prefactor      .0000        3.0371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.6105        12.404        .32286E-03   -1.5646    
  11  norm          1.1155        .89443        .11143E-02   -1.5687    
  12  Prefactor      .0000        4.0652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        6.2603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.655        8.7017        .24514E-03   -1.5626    
  15  Prefactor     .96652        24.398        .48011E-03   -1.5688    
  16  norm          3.6409        2.1380        .52912E-03   -1.5670    
  17  norm          .11102E-09    7.3617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     69.768        47.770        .11973E-03   -1.5541    
  19  Prefactor     .44409E-09    69.117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .58453E-07    6.8258        .67115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3663        .18962        .86267E-01   -.81607    
  22  Prefactor     .90845        .62212E-01    .45113E-01   -.95847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99876e-08
Minuit parameter uncertainties:
  1  3.04485e-05
  2  19.5161
  3  8.71946e-07
  4  1.41844
  5  3.48258
  6  19.3388
  7  2.96013
  8  14.796
  9  6.15114e-06
  10  12.4041
  11  0.894433
  12  8.82139e-06
  13  1.55286e-05
  14  8.70175
  15  9.71205
  16  2.13803
  17  5.11854e-05
  18  47.7705
  19  0.000347063
  20  0.00126336
  21  0.189722
  22  0.062217
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.666e+01  8.702e+00  0.000e+00  1.000e+06 ( 1.000e-13)
459        alpha:  1.778e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
460         beta:  6.822e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  9.084e-01  6.222e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.366e+00  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.34
Ra Dec: 350.975 42.183
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 3.16e-08 +/- 1.65e-08
Energy Flux (Fixed Index): 3.90e-05 +/- 2.04e-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) = 14120.4895827
delta logL = 0.976492421345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14120.4854808
delta logL = 0.980594301693

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.774       1.0000          .0000       .10000E+07
     2 'alpha     '    1.2614       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90928       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14120.49     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      213 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.774        9.1413        .25192E-03   -.49122E-01
   2  alpha         1.2614        .31782        .40230       -.37618E-04
   3  Normalizat    1.3735        .17890        .86085E-01    .28159E-04
   4  Prefactor     .90929        .61465E-01    .45123E-01   -.15420E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.7737
  alpha      = 1.26143
  Normalizat = 1.37354
  Prefactor  = 0.909289
 **********
 **   18 **HESSE 
 **********

 FCN=   14120.49     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.774        9.5387        .10077E-04   -1.5629    
   2  alpha         1.2614        .36617        .16060E-01   -.51833    
   3  Normalizat    1.3735        .20631        .38115E-03   -.81397    
   4  Prefactor     .90929        .71127E-01    .15630E-03   -.95817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7135e-08
Minuit parameter uncertainties:
  1  9.53875
  2  0.367927
  3  0.206438
  4  0.0711343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504277': 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) = 14120.4854808
delta logL = 0.980594307995

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.577e+01  9.539e+00  0.000e+00  1.000e+06 ( 1.000e-13)
459        alpha:  1.261e+00  3.679e-01  0.000e+00  5.000e+00 ( 1.000e+00)
460         beta:  6.822e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  9.093e-01  7.113e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.374e+00  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.30
Ra Dec: 350.975 42.183
Photon Index (Free Index): 1.26 +/- 0.37
Photon Flux (Free Index): 1.70e-08 +/- 1.20e-08
Energy Flux (Free Index): 8.76e-05 +/- 6.95e-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/504277/cmap_HighResolution_698112001_698371201_4FGL_J2323.8+4210_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.16e-08', energy_flux2='8.76e-05', photon_flux_error='1.65e-08', dlogl='9.81e-01', energy_flux='3.90e-05', photon_flux2='1.70e-08', job_status='DONE', time_completed='2023-02-18 02:20:23.368602', photon_index_error2='0.37', photon_index2='1.26', ts='17.34', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='6.95e-05', EG='1.37', time_epoch_completed='1676715623.37', return_code='0', job_id='504277', GAL2='0.91', EG2='1.37', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='1.20e-08', ts2='19.30', photon_index='1.78' WHERE bin_id='1770' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 02:20:23 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0185>
Subject: Job 504277: <4FGL_J2323.8+4210_daily_bin1770> in cluster <slac> Done

Job <4FGL_J2323.8+4210_daily_bin1770> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Feb 18 02:05:17 2023
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 02:05:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 02:05:18 2023
Terminated at Sat Feb 18 02:20:24 2023
Results reported at Sat Feb 18 02:20:24 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin1770 350.975 42.1826 698112001 698371201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.8+4210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   892.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             379.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

