/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 157 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 = 7498
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2323.6-0617_daily_bin731
RA = 350.916, Dec = -6.2953
tmin = 428803201, tmax = 429062401
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='817594', job_status='RUN', time_executed='2021-09-29 14:58:10.919686', time_epoch_executed='1632952690.92' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817594

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817594/ft1_4FGL_J2323.6-0617_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817594/ft2_4FGL_J2323.6-0617_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817594/ft1_4FGL_J2323.6-0617_daily_bin731.fits outfile=/scratch/kocevski/817594/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin731.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=428803201.0 tmax=429062401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.50
user 6.23
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/817594/ft2_4FGL_J2323.6-0617_daily_bin731.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/817594/ft2_4FGL_J2323.6-0617_daily_bin731.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/817594/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/817594/ft1_filtered_4FGL_J2323.6-0617_daily_bin731.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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817594/ft1_filtered_4FGL_J2323.6-0617_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/817594/ft2_4FGL_J2323.6-0617_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/817594/ltcube_428803201_429062401_4FGL_J2323.6-0617_daily_bin731.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/817594/ft2_4FGL_J2323.6-0617_daily_bin731.fits
.....................!
real 11.98
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817594/ft1_filtered_4FGL_J2323.6-0617_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/817594/ft2_4FGL_J2323.6-0617_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/817594/ltcube_428803201_429062401_4FGL_J2323.6-0617_daily_bin731.fits outfile=/scratch/kocevski/817594/expmap_428803201_429062401_4FGL_J2323.6-0617_daily_bin731.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/817594/ltcube_428803201_429062401_4FGL_J2323.6-0617_daily_bin731.fits
.....................!
real 192.76
user 187.37
sys 5.00

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 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J2323.6-0617 @ 350.916 -6.2953

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/817594/ft1_filtered_4FGL_J2323.6-0617_daily_bin731.fits scfile=/scratch/kocevski/817594/ft2_4FGL_J2323.6-0617_daily_bin731.fits outfile=/scratch/kocevski/817594/cmap_428803201_429062401_4FGL_J2323.6-0617_daily_bin731.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.916 yref=-6.2953 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/817594/ft1_filtered_4FGL_J2323.6-0617_daily_bin731.fits scfile=/scratch/kocevski/817594/ft2_4FGL_J2323.6-0617_daily_bin731.fits outfile=/scratch/kocevski/817594/cmap_HighResolution_428803201_429062401_4FGL_J2323.6-0617_daily_bin731.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.916 yref=-6.2953 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/817594/ft1_filtered_4FGL_J2323.6-0617_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/817594/ft2_4FGL_J2323.6-0617_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/817594/Model_4FGL_J2323.6-0617_daily_bin731.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/817594/ft1_filtered_4FGL_J2323.6-0617_daily_bin731.fits.....................!
real 33.14
user 31.84
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/817594/ft1_filtered_4FGL_J2323.6-0617_daily_bin731.fits', '/scratch/kocevski/817594/ft2_4FGL_J2323.6-0617_daily_bin731.fits', expMap='/scratch/kocevski/817594/expmap_428803201_429062401_4FGL_J2323.6-0617_daily_bin731.fits', expCube='/scratch/kocevski/817594/ltcube_428803201_429062401_4FGL_J2323.6-0617_daily_bin731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/817594/Model_4FGL_J2323.6-0617_daily_bin731.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.6-0617'

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.612e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/817594/ft1_filtered_4FGL_J2323.6-0617_daily_bin731.fits
Spacecraft file(s): /scratch/kocevski/817594/ft2_4FGL_J2323.6-0617_daily_bin731.fits
Exposure map: /scratch/kocevski/817594/expmap_428803201_429062401_4FGL_J2323.6-0617_daily_bin731.fits
Exposure cube: /scratch/kocevski/817594/ltcube_428803201_429062401_4FGL_J2323.6-0617_daily_bin731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/817594/Model_4FGL_J2323.6-0617_daily_bin731.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) = 2990.2394612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.535       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.444       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    60.847       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.063       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.825       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6363       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16254       1.0000         .10000E-03   10000.    
    13 'norm      '    .10393E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.4994       1.0000         .10000E-03   10000.    
    15 'Prefactor '    83.789       1.0000         .10000E-03   10000.    
    16 'Prefactor '    98.088       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    444.91       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.885       1.0000         .10000E-03   10000.    
    24 'norm      '    .81453       1.0000         .10000E-03   10000.    
    25 'norm      '    5.1878       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .35181E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99476       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .61702       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2990.165     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     3869 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.541        14.997       -.82321E-07   -.13792E-03
   2  Prefactor     16.453        49.764        .13419E-05    .11026E-04
   3  Prefactor     .10000E-03    21.104        .22437E-05** at limit **
   4  norm          .10000E-03    1.1783        .18450E-05** at limit **
   5  Prefactor     60.893        37.531       -.26604E-05   -.66563E-03
   6  Prefactor     10.069        16.118       -.99922E-07   -.15887E-03
   7  Prefactor     .10000E-03    6.6543        .10426E-06** at limit **
   8  norm          .10000E-03    5.6099       -.35140E-07** at limit **
   9  Prefactor     .10000E-03    8.1735        .23545E-07** at limit **
  10  Prefactor     44.152        81.434       -.25219E-05   -.19891E-04
  11  Prefactor     4.6549        26.964       -.25222E-06   -.20933E-04
  12  Prefactor     .95665E-01    18.857        .80613E-06    .14850E-03
  13  norm          .10000E-03    .72220       -.14015E-06** at limit **
  14  norm          6.5022        6.1836       -.10405E-06   -.30490E-04
  15  Prefactor     83.837        82.355        .56118E-05    .17640E-03
  16  Prefactor     98.120        68.164        .33419E-05    .16056E-03
  17  Prefactor     .10000E-03    9.8937        .59535E-06** at limit **
  18  Prefactor     444.85        321.11       -.18528E-05   -.29352E-04
  19  Prefactor     .10000E-03    7.6342        .51232E-07** at limit **
  20  norm          .10000E-03    10.065        .17835E-07** at limit **
  21  Prefactor     .10000E-03    24.721       -.13105E-06** at limit **
  22  Prefactor     .10000E-03    2.3474       -.12190E-06** at limit **
  23  Prefactor     32.887        40.025        .14653E-05    .75936E-04
  24  norm          .81468        .78104       -.21764E-06    .60860E-03
  25  norm          5.1885        7.7245        .21750E-05   -.25337E-03
  26  Prefactor     .19784        12.451        .32199E-06   -.26554E-05
  27  Prefactor     .10000E-03    3.6790       -.17541E-06** at limit **
  28  Normalizat    .99451        .25432       -.41312E-05   -.11131E-03
  29  Prefactor     .61683        .18412        .23121E-05   -.27256E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.5412
  Prefactor  = 16.4527
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 60.8935
  Prefactor  = 10.0694
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.1523
  Prefactor  = 4.65491
  Prefactor  = 0.0956647
  norm       = 0.0001
  norm       = 6.50223
  Prefactor  = 83.8374
  Prefactor  = 98.1201
  Prefactor  = 0.0001
  Prefactor  = 444.853
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.8866
  norm       = 0.814679
  norm       = 5.18854
  Prefactor  = 0.197839
  Prefactor  = 0.0001
  Normalizat = 0.994509
  Prefactor  = 0.616832
 **********
 **   18 **HESSE 
 **********

 FCN=   2990.165     FROM HESSE     STATUS=OK           557 CALLS     4426 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.541        15.048        .82569E-04   -1.4737    
   2  Prefactor     16.453        49.774        .98767E-04   -1.4897    
   3  Prefactor     .10000E-03    21.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.8496        .10295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     60.893        38.140        .51438E-04   -1.4146    
   6  Prefactor     10.069        16.116        .12632E-03   -1.5073    
   7  Prefactor     .10000E-03    6.6711        .13778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.6140        .12650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.1770        .15270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     44.152        85.469        .60559E-04   -1.4378    
  11  Prefactor     4.6549        26.955        .18692E-03   -1.5276    
  12  Prefactor     .95665E-01    23.112        .56026E-01   -1.5646    
  13  norm          .10000E-03    1.1681        .88102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5022        6.1755        .12614E-03   -1.5198    
  15  Prefactor     83.837        83.516        .21942E-03   -1.3874    
  16  Prefactor     98.120        68.778        .20294E-03   -1.3724    
  17  Prefactor     .10000E-03    9.8845        .16781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     444.85        317.37        .97001E-04   -1.1458    
  19  Prefactor     .10000E-03    7.6520        .14749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.068        .16945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.3603        .81715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.887        40.061        .69876E-04   -1.4560    
  24  norm          .81468        .80597        .38373E-04   -1.5527    
  25  norm          5.1885        8.0217        .74161E-03   -1.5252    
  26  Prefactor     .19784        186.35        .37014E-02   -1.5619    
  27  Prefactor     .10000E-03    3.6937        .10237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .99451        .28556        .23761E-03   -.93215    
  29  Prefactor     .61683        .20889        .23044E-03   -1.0688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66729e-08
Minuit parameter uncertainties:
  1  15.0508
  2  49.9003
  3  1.69191e-05
  4  0.00012561
  5  38.1558
  6  16.1228
  7  6.21383e-06
  8  4.48385e-06
  9  3.14563e-07
  10  85.7078
  11  22.418
  12  2.97347
  13  2.82425e-05
  14  6.17614
  15  83.6336
  16  68.8339
  17  2.97091e-05
  18  318.636
  19  2.52223e-06
  20  3.0299e-06
  21  2.78672e-06
  22  6.37188e-06
  23  40.0937
  24  0.805982
  25  8.02338
  26  12.1788
  27  8.85901e-06
  28  0.286003
  29  0.209155
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  6.502e+00  6.176e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  6.168e-01  2.092e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  9.945e-01  2.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.94
Ra Dec: 350.916 -6.295
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.43e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.27e-05

TS (Fixed Index): 2.94
Ra Dec: 350.916 -6.295
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/817594/likelihoodResults_428803201_429062401_4FGL_J2323.6-0617_daily_bin731.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) = 2989.11048537
delta logL = 1.05488323841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2989.10658051
delta logL = 1.05878809909

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2882       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1460       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60359       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2989.107     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      199 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2882        5.3264        .40019E-02    .28277E-02
   2  alpha         1.1458        .54434        .32071       -.12696E-04
   3  Normalizat    1.0183        .22898        .43616E-01    .66700E-05
   4  Prefactor     .60370        .17926        .41103E-01    .11283E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.28817
  alpha      = 1.14581
  Normalizat = 1.01834
  Prefactor  = 0.603702
 **********
 **   18 **HESSE 
 **********

 FCN=   2989.107     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2882        6.1848        .11158E-03   -1.5206    
   2  alpha         1.1458        .64756        .13772E-01   -.57243    
   3  Normalizat    1.0183        .26015        .23501E-03   -.92419    
   4  Prefactor     .60370        .20368        .23236E-03   -1.0743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03047e-09
Minuit parameter uncertainties:
  1  6.18539
  2  0.658272
  3  0.260478
  4  0.203931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817594': 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) = 2989.10657934
delta logL = 1.05878926083

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  6.288e+00  6.185e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  1.146e+00  6.583e-01  0.000e+00  5.000e+00 ( 1.000e+00)
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  6.037e-01  2.039e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.018e+00  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.07
Ra Dec: 350.916 -6.295
Photon Index (Free Index): 1.15 +/- 0.66
Photon Flux (Free Index): 1.71e-08 +/- 1.63e-08
Energy Flux (Free Index): 3.82e-05 +/- 4.67e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/817594/cmap_HighResolution_428803201_429062401_4FGL_J2323.6-0617_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-05', comment='SUCCESS', photon_flux='3.43e-08', energy_flux2='3.82e-05', photon_flux_error='3.26e-08', dlogl='1.06e+00', energy_flux='1.34e-05', photon_flux2='1.71e-08', job_status='DONE', time_completed='2021-09-29 15:07:26.004517', photon_index_error2='0.66', photon_index2='1.15', ts='2.94', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='4.67e-05', EG='0.99', time_epoch_completed='1632953246.0', return_code='0', job_id='817594', GAL2='0.60', EG2='1.02', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='1.63e-08', ts2='5.07', photon_index='2.24' WHERE bin_id='731' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:07:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 817594: <4FGL_J2323.6-0617_daily_bin731> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin731> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:55:23 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:55:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 14:55:25 2021
Terminated at Wed Sep 29 15:07:26 2021
Results reported at Wed Sep 29 15:07:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin731 350.916 -6.2953 428803201 429062401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.6-0617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   551.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            723 sec.

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

