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


Performing analysis on: 4FGL_J2323.8+4210_daily_bin1777
RA = 350.975, Dec = 42.1826
tmin = 699926401, tmax = 700185601
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='926598', job_status='RUN', time_executed='2023-03-11 01:32:39.535356', time_epoch_executed='1678527159.54' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926598

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926598/ft1_4FGL_J2323.8+4210_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926598/ft2_4FGL_J2323.8+4210_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926598/ft1_4FGL_J2323.8+4210_daily_bin1777.fits outfile=/scratch/kocevski/926598/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1777.fits ra=350.975 dec=42.1826 rad=12.0 tmin=699926401.0 tmax=700185601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.65
user 3.43
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/926598/ft2_4FGL_J2323.8+4210_daily_bin1777.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/926598/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1777.fits evtable="EVENTS" outfile="/scratch/kocevski/926598/ft1_filtered_4FGL_J2323.8+4210_daily_bin1777.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.33
sys 0.15

Number of photons that the gtmktime cut: 1198

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/926598/ft1_filtered_4FGL_J2323.8+4210_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/926598/ft2_4FGL_J2323.8+4210_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/926598/ltcube_699926401_700185601_4FGL_J2323.8+4210_daily_bin1777.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/926598/ft2_4FGL_J2323.8+4210_daily_bin1777.fits
.....................!
real 12.26
user 11.94
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926598/ft1_filtered_4FGL_J2323.8+4210_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/926598/ft2_4FGL_J2323.8+4210_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/926598/ltcube_699926401_700185601_4FGL_J2323.8+4210_daily_bin1777.fits outfile=/scratch/kocevski/926598/expmap_699926401_700185601_4FGL_J2323.8+4210_daily_bin1777.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/926598/ltcube_699926401_700185601_4FGL_J2323.8+4210_daily_bin1777.fits
.....................!
real 190.16
user 185.71
sys 4.14

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/926598/ft1_filtered_4FGL_J2323.8+4210_daily_bin1777.fits scfile=/scratch/kocevski/926598/ft2_4FGL_J2323.8+4210_daily_bin1777.fits outfile=/scratch/kocevski/926598/cmap_699926401_700185601_4FGL_J2323.8+4210_daily_bin1777.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926598/ft1_filtered_4FGL_J2323.8+4210_daily_bin1777.fits scfile=/scratch/kocevski/926598/ft2_4FGL_J2323.8+4210_daily_bin1777.fits outfile=/scratch/kocevski/926598/cmap_HighResolution_699926401_700185601_4FGL_J2323.8+4210_daily_bin1777.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/926598/ft1_filtered_4FGL_J2323.8+4210_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/926598/ft2_4FGL_J2323.8+4210_daily_bin1777.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/926598/Model_4FGL_J2323.8+4210_daily_bin1777.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/926598/ft1_filtered_4FGL_J2323.8+4210_daily_bin1777.fits.....................!
real 139.83
user 138.41
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/926598/ft1_filtered_4FGL_J2323.8+4210_daily_bin1777.fits', '/scratch/kocevski/926598/ft2_4FGL_J2323.8+4210_daily_bin1777.fits', expMap='/scratch/kocevski/926598/expmap_699926401_700185601_4FGL_J2323.8+4210_daily_bin1777.fits', expCube='/scratch/kocevski/926598/ltcube_699926401_700185601_4FGL_J2323.8+4210_daily_bin1777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/926598/Model_4FGL_J2323.8+4210_daily_bin1777.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/926598/ft1_filtered_4FGL_J2323.8+4210_daily_bin1777.fits
Spacecraft file(s): /scratch/kocevski/926598/ft2_4FGL_J2323.8+4210_daily_bin1777.fits
Exposure map: /scratch/kocevski/926598/expmap_699926401_700185601_4FGL_J2323.8+4210_daily_bin1777.fits
Exposure cube: /scratch/kocevski/926598/ltcube_699926401_700185601_4FGL_J2323.8+4210_daily_bin1777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/926598/Model_4FGL_J2323.8+4210_daily_bin1777.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) = 12431.6689288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13807E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .63677E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.2943       1.0000          .0000       .10000E+07
     4 'norm      '    2.7033       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10663E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13476E-03   1.0000          .0000       .10000E+07
     7 'norm      '    1.5688       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.7600       1.0000          .0000       .10000E+07
     9 'Prefactor '    .17574E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .16703E-06   1.0000          .0000       .10000E+07
    11 'norm      '    1.2335       1.0000          .0000       .10000E+07
    12 'Prefactor '    10.490       1.0000          .0000       .10000E+07
    13 'norm      '    .41506E-06   1.0000          .0000       .10000E+07
    14 'norm      '    10.461       1.0000          .0000       .10000E+07
    15 'Prefactor '    6.7441       1.0000          .0000       .10000E+07
    16 'norm      '    .75274       1.0000          .0000       .10000E+07
    17 'norm      '    12.972       1.0000          .0000       .10000E+07
    18 'Prefactor '    .77775E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    22.037       1.0000          .0000       .10000E+07
    20 'Prefactor '    .54529E-04   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0958       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98044       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=   12431.60     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1441 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43480E-05    13.235       -.34737E-06** at limit **
   2  norm          .59397E-08    16.253        .41001E-06** at limit **
   3  Prefactor     5.2759        4.7336       -.23315E-07   -.41018E-04
   4  norm          2.7040        2.0506        .44026E-07    .53623E-03
   5  Prefactor     .11102E-08    1.4492       -.30243E-07** at limit **
   6  Prefactor     .18491E-05    41.061       -.13663E-05** at limit **
   7  norm          1.5702        2.4859       -.40553E-07    .95637E-04
   8  Prefactor     4.8270        2.7317        .31518E-07   -.15850E-01
   9  Prefactor      .0000        1.9387        .26789E-06** at limit **
  10  Prefactor      .0000        7.2928        .46013E-06** at limit **
  11  norm          1.2379        1.4600        .43780E-07    .43444E-03
  12  Prefactor     10.478        11.083       -.45933E-07   -.81302E-02
  13  norm           .0000        2.6039        .77505E-07** at limit **
  14  norm          10.372        10.176        .33522E-07    .17514E-01
  15  Prefactor     6.4843        3.4479        .84152E-07   -.24764E-01
  16  norm          .75678        2.4506        .28060E-07   -.65721E-03
  17  norm          12.935        10.021       -.18130E-06   -.54278E-01
  18  Prefactor     .26046E-05    14.288       -.66241E-07** at limit **
  19  Prefactor     24.228        34.579        .58319E-06   -.29823E-01
  20  Prefactor      .0000        2.5753       -.27739E-06** at limit **
  21  Normalizat    1.0955        .22048       -.59897E-05    .71385E-05
  22  Prefactor     .98037        .76343E-01    .16800E-05    .31563E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.34802e-06
  norm       = 5.93969e-09
  Prefactor  = 5.27589
  norm       = 2.70405
  Prefactor  = 1.11022e-09
  Prefactor  = 1.84908e-06
  norm       = 1.57021
  Prefactor  = 4.82704
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.23785
  Prefactor  = 10.4781
  norm       = 0
  norm       = 10.3718
  Prefactor  = 6.48428
  norm       = 0.756776
  norm       = 12.9348
  Prefactor  = 2.60464e-06
  Prefactor  = 24.2281
  Prefactor  = 0
  Normalizat = 1.0955
  Prefactor  = 0.980375
 **********
 **   18 **HESSE 
 **********

 FCN=   12431.60     FROM HESSE     STATUS=OK           398 CALLS     1839 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43480E-05    23.598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .59397E-08    16.235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2759        4.7375        .43657E-03   -1.5662    
   4  norm          2.7040        2.0579        .61929E-03   -1.5675    
   5  Prefactor     .11102E-08    1.8280        .51506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .18491E-05    44.948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5702        2.5187        .84855E-03   -1.5683    
   8  Prefactor     4.8270        18.992        .46093E-03   -1.5664    
   9  Prefactor      .0000        1.9525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        7.2892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2379        1.4874        .10112E-02   -1.5686    
  12  Prefactor     10.478        11.189        .30911E-03   -1.5643    
  13  norm           .0000        2.6037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.372        10.219        .30954E-03   -1.5644    
  15  Prefactor     6.4843        15.069        .38614E-03   -1.5657    
  16  norm          .75678        2.4701        .56526E-03   -1.5691    
  17  norm          12.935        10.413        .27786E-03   -1.5636    
  18  Prefactor     .26046E-05    21.456        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.228        36.718        .21308E-03   -1.5610    
  20  Prefactor      .0000        2.5688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0955        .20350        .91266E-01   -.89896    
  22  Prefactor     .98037        .68193E-01    .34175E-01   -.93387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8226e-06
Minuit parameter uncertainties:
  1  0.0202589
  2  0.000621436
  3  4.73751
  4  2.05787
  5  8.97685e-05
  6  0.0182335
  7  2.51875
  8  18.9921
  9  1.45467e-05
  10  1.82829e-05
  11  1.4874
  12  11.1888
  13  5.24597e-06
  14  10.2193
  15  15.0687
  16  2.47011
  17  10.413
  18  0.0149515
  19  36.7179
  20  8.90663e-06
  21  0.203649
  22  0.0681987
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.037e+01  1.022e+01  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.804e-01  6.820e-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.096e+00  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 350.975 42.183
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.97e-08 +/- 1.94e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 2.39e-05

TS (Fixed Index): 1.51
Ra Dec: 350.975 42.183
Photon Flux Upper Limit: 6.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/926598/likelihoodResults_699926401_700185601_4FGL_J2323.8+4210_daily_bin1777.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) = 12431.5825791
delta logL = 0.0219110076869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12431.5809809
delta logL = 0.0235092065941

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8129       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8964       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98046       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12431.58     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      264 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8089        10.442        .63929E-04   -.20522E-03
   2  alpha         1.8966        .56073        .14996E-01    .19696E-03
   3  Normalizat    1.0935        .20864        .40455E-03   -.12028E-04
   4  Prefactor     .98045        .74873E-01    .15100E-03    .54209E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.80892
  alpha      = 1.89664
  Normalizat = 1.09346
  Prefactor  = 0.980455
 **********
 **   18 **HESSE 
 **********

 FCN=   12431.58     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8089        10.186        .25572E-05   -1.5645    
   2  alpha         1.8966        .54731        .29991E-02   -.24375    
   3  Normalizat    1.0935        .20870        .16182E-04   -.89962    
   4  Prefactor     .98045        .74907E-01    .60399E-05   -.93384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39169e-12
Minuit parameter uncertainties:
  1  10.1859
  2  0.552067
  3  0.208862
  4  0.0749151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926598': 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) = 12431.5809808
delta logL = 0.0235093678948

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  9.809e+00  1.019e+01  0.000e+00  1.000e+06 ( 1.000e-13)
459        alpha:  1.897e+00  5.521e-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.805e-01  7.492e-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.093e+00  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 350.975 42.183
Photon Index (Free Index): 1.90 +/- 0.55
Photon Flux (Free Index): 2.26e-08 +/- 2.49e-08
Energy Flux (Free Index): 2.09e-05 +/- 2.52e-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/926598/cmap_HighResolution_699926401_700185601_4FGL_J2323.8+4210_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-05', comment='SUCCESS', photon_flux='1.97e-08', energy_flux2='2.09e-05', photon_flux_error='1.94e-08', dlogl='2.35e-02', energy_flux='2.43e-05', photon_flux2='2.26e-08', job_status='DONE', time_completed='2023-03-11 01:46:23.113111', photon_index_error2='0.55', photon_index2='1.90', ts='1.51', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='6.48e-08', energy_flux_error2='2.52e-05', EG='1.10', time_epoch_completed='1678527983.11', return_code='0', job_id='926598', GAL2='0.98', EG2='1.09', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='2.49e-08', ts2='1.55', photon_index='1.78' WHERE bin_id='1777' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 01:46:23 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 926598: <4FGL_J2323.8+4210_daily_bin1777> in cluster <slac> Done

Job <4FGL_J2323.8+4210_daily_bin1777> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Mar 11 01:30:21 2023
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 01:30:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 01:30:22 2023
Terminated at Sat Mar 11 01:46:24 2023
Results reported at Sat Mar 11 01:46:24 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin1777 350.975 42.1826 699926401 700185601 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 :                                   825.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

