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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin1128
RA = 350.916, Dec = -6.2953
tmin = 531705601, tmax = 531964801
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='819229', job_status='RUN', time_executed='2021-09-29 15:04:24.280867', time_epoch_executed='1632953064.28' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/819229

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/819229/ft1_4FGL_J2323.6-0617_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/819229/ft2_4FGL_J2323.6-0617_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/819229/ft1_4FGL_J2323.6-0617_daily_bin1128.fits outfile=/scratch/kocevski/819229/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin1128.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=531705601.0 tmax=531964801.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.97
user 3.77
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/819229/ft1_filtered_4FGL_J2323.6-0617_daily_bin1128.fits" evtable="EVENTS" scfile=/scratch/kocevski/819229/ft2_4FGL_J2323.6-0617_daily_bin1128.fits sctable="SC_DATA" outfile=/scratch/kocevski/819229/ltcube_531705601_531964801_4FGL_J2323.6-0617_daily_bin1128.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/819229/ft2_4FGL_J2323.6-0617_daily_bin1128.fits
.....................!
real 11.76
user 11.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/819229/ft1_filtered_4FGL_J2323.6-0617_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/819229/ft2_4FGL_J2323.6-0617_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/819229/ltcube_531705601_531964801_4FGL_J2323.6-0617_daily_bin1128.fits outfile=/scratch/kocevski/819229/expmap_531705601_531964801_4FGL_J2323.6-0617_daily_bin1128.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/819229/ltcube_531705601_531964801_4FGL_J2323.6-0617_daily_bin1128.fits
.....................!
real 191.45
user 185.80
sys 5.33

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/819229/ft1_filtered_4FGL_J2323.6-0617_daily_bin1128.fits scfile=/scratch/kocevski/819229/ft2_4FGL_J2323.6-0617_daily_bin1128.fits outfile=/scratch/kocevski/819229/cmap_531705601_531964801_4FGL_J2323.6-0617_daily_bin1128.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/819229/ft1_filtered_4FGL_J2323.6-0617_daily_bin1128.fits scfile=/scratch/kocevski/819229/ft2_4FGL_J2323.6-0617_daily_bin1128.fits outfile=/scratch/kocevski/819229/cmap_HighResolution_531705601_531964801_4FGL_J2323.6-0617_daily_bin1128.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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/819229/ft1_filtered_4FGL_J2323.6-0617_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/819229/ft2_4FGL_J2323.6-0617_daily_bin1128.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/819229/Model_4FGL_J2323.6-0617_daily_bin1128.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/819229/ft1_filtered_4FGL_J2323.6-0617_daily_bin1128.fits.....................!
real 47.26
user 45.96
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/819229/ft1_filtered_4FGL_J2323.6-0617_daily_bin1128.fits', '/scratch/kocevski/819229/ft2_4FGL_J2323.6-0617_daily_bin1128.fits', expMap='/scratch/kocevski/819229/expmap_531705601_531964801_4FGL_J2323.6-0617_daily_bin1128.fits', expCube='/scratch/kocevski/819229/ltcube_531705601_531964801_4FGL_J2323.6-0617_daily_bin1128.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/819229/Model_4FGL_J2323.6-0617_daily_bin1128.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/819229/ft1_filtered_4FGL_J2323.6-0617_daily_bin1128.fits
Spacecraft file(s): /scratch/kocevski/819229/ft2_4FGL_J2323.6-0617_daily_bin1128.fits
Exposure map: /scratch/kocevski/819229/expmap_531705601_531964801_4FGL_J2323.6-0617_daily_bin1128.fits
Exposure cube: /scratch/kocevski/819229/ltcube_531705601_531964801_4FGL_J2323.6-0617_daily_bin1128.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/819229/Model_4FGL_J2323.6-0617_daily_bin1128.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) = 4665.95391345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    76.866       1.0000         .10000E-03   10000.    
     4 'norm      '    12.615       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11474E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6144       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4579       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7975       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0429       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1685       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.7061       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.4165       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.746       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0094       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79168       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=   4665.873     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3737 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1602       -.21868E-07** at limit **
   2  Prefactor     .10000E-03    41.878        .43494E-06** at limit **
   3  Prefactor     76.984        79.873        .11018E-04    .53247E-03
   4  norm          12.608        6.4099       -.22715E-05    .55176E-03
   5  Prefactor     .10000E-03    85.406        .42930E-05** at limit **
   6  Prefactor     4.6147        7.0207        .18284E-05   -.11735E-03
   7  Prefactor     8.4561        16.384        .24502E-06   -.15774E-04
   8  norm          3.7970        9.3879        .93775E-05   -.26202E-03
   9  Prefactor     .10000E-03    13.629        .35800E-06** at limit **
  10  Prefactor     .10000E-03    22.067        .77245E-06** at limit **
  11  Prefactor     .10000E-03    11.527       -.34549E-06** at limit **
  12  Prefactor     .10000E-03    4.3011       -.33754E-07** at limit **
  13  norm          1.0429        .87527       -.37263E-07   -.24846E-03
  14  norm          2.1689        4.6432        .64256E-06   -.52320E-04
  15  Prefactor     .10000E-03    16.462       -.40610E-06** at limit **
  16  Prefactor     .10000E-03    30.077       -.63564E-06** at limit **
  17  Prefactor     .10000E-03    10.397        .25611E-06** at limit **
  18  Prefactor     .10000E-03    257.30       -.15473E-05** at limit **
  19  Prefactor     .10000E-03    6.0642       -.29229E-06** at limit **
  20  norm          .10000E-03    19.278       -.50800E-06** at limit **
  21  Prefactor     .10000E-03    18.824       -.22132E-06** at limit **
  22  Prefactor     5.7051        4.4675        .15939E-05   -.26383E-03
  23  Prefactor     .10000E-03    9.3673       -.52396E-07** at limit **
  24  norm          .10000E-03    .34615       -.27158E-07** at limit **
  25  norm          7.4186        7.7542        .46566E-06   -.30048E-05
  26  Prefactor     .10000E-03    5.2306       -.26927E-07** at limit **
  27  Prefactor     14.745        9.2515        .68458E-06   -.69746E-04
  28  Normalizat    1.0094        .22629       -.54884E-05    .83087E-04
  29  Prefactor     .79171        .16403        .20911E-05   -.21111E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 76.984
  norm       = 12.6077
  Prefactor  = 0.0001
  Prefactor  = 4.61467
  Prefactor  = 8.45608
  norm       = 3.79703
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.04295
  norm       = 2.16891
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.70507
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.41855
  Prefactor  = 0.0001
  Prefactor  = 14.7455
  Normalizat = 1.0094
  Prefactor  = 0.79171
 **********
 **   18 **HESSE 
 **********

 FCN=   4665.873     FROM HESSE     STATUS=OK           545 CALLS     4282 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1672        .13605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     76.984        83.471        .45801E-04   -1.3951    
   4  norm          12.608        6.7111        .51834E-04   -1.4998    
   5  Prefactor     .10000E-03    85.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.6147        7.0233        .93685E-03   -1.5278    
   7  Prefactor     8.4561        16.376        .13784E-03   -1.5126    
   8  norm          3.7970        9.5021        .10357E-02   -1.5318    
   9  Prefactor     .10000E-03    13.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3112        .13825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0429        .87233        .55755E-04   -1.5504    
  14  norm          2.1689        4.6128        .20707E-03   -1.5413    
  15  Prefactor     .10000E-03    16.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    257.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.0864        .16417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    19.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.7051        4.4680        .60829E-03   -1.5230    
  23  Prefactor     .10000E-03    9.3710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .40432        .73371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.4186        7.2931        .14727E-03   -1.5163    
  26  Prefactor     .10000E-03    5.2359        .15257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.745        9.2679        .52152E-03   -1.4940    
  28  Normalizat    1.0094        .26146        .26730E-03   -.92716    
  29  Prefactor     .79171        .19118        .22673E-03   -1.0003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53647e-09
Minuit parameter uncertainties:
  1  3.42824e-06
  2  0.000336097
  3  83.5987
  4  6.71146
  5  2.22654e-05
  6  7.02455
  7  16.385
  8  9.50587
  9  0.000215163
  10  0.000427709
  11  0.000165754
  12  8.44235e-09
  13  0.872343
  14  4.61355
  15  0.000200927
  16  0.000500917
  17  6.96412e-05
  18  0.0021791
  19  2.91657e-05
  20  6.59056e-05
  21  0.00011799
  22  4.4683
  23  1.92071e-05
  24  3.33519e-07
  25  7.29399
  26  5.62982e-06
  27  9.26883
  28  0.261795
  29  0.191339
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  2.169e+00  4.614e+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:  7.917e-01  1.913e-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.009e+00  2.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 350.916 -6.295
Photon Flux Upper Limit: 7.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/819229/likelihoodResults_531705601_531964801_4FGL_J2323.6-0617_daily_bin1128.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) = 4665.71648387
delta logL = 0.156771142319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4665.7061111
delta logL = 0.167143910587

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6961       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1875       1.0000          .0000       5.0000    
     3 'Normalizat'    .98592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80152       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4665.706     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6927        3.8556        .12508E-03   -.74528E-04
   2  alpha         3.1885        1.5737        .86630E-02   -.29331E-05
   3  Normalizat    .98591        .25309        .27007E-03   -.10524E-04
   4  Prefactor     .80153        .19032        .22541E-03   -.50940E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.69266
  alpha      = 3.18846
  Normalizat = 0.985909
  Prefactor  = 0.80153
 **********
 **   18 **HESSE 
 **********

 FCN=   4665.706     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6927        3.6343        .50034E-05   -1.5448    
   2  alpha         3.1885        1.4971        .34652E-03    .27899    
   3  Normalizat    .98591        .25321        .10803E-04   -.93504    
   4  Prefactor     .80153        .19042        .90164E-05   -.99672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70241e-12
Minuit parameter uncertainties:
  1  3.63475
  2  1.61619
  3  0.25352
  4  0.190578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/819229': 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) = 4665.70611064
delta logL = 0.167144368757

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.693e+00  3.635e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  3.188e+00  1.616e+00  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:  8.015e-01  1.906e-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.859e-01  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 350.916 -6.295

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/819229/cmap_HighResolution_531705601_531964801_4FGL_J2323.6-0617_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-05', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2021-09-29 15:17:18.140138', job_id='819229', GAL2='0.80', fit_tolerance='1e-08', EG2='0.99', EG='1.01', time_epoch_completed='1632953838.14', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.67e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1128' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:17:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 819229: <4FGL_J2323.6-0617_daily_bin1128> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin1128> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 15:00:40 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:00:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 15:00:42 2021
Terminated at Wed Sep 29 15:17:18 2021
Results reported at Wed Sep 29 15:17:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin1128 350.916 -6.2953 531705601 531964801 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 :                                   651.47 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             240.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            998 sec.

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

