/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 174 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 = 7559
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.6-0617_daily_bin351
RA = 350.916, Dec = -6.2953
tmin = 330307201, tmax = 330566401
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='815991', job_status='RUN', time_executed='2021-09-29 14:53:28.099831', time_epoch_executed='1632952408.1' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815991

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815991/ft1_4FGL_J2323.6-0617_daily_bin351.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815991/ft2_4FGL_J2323.6-0617_daily_bin351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815991/ft1_4FGL_J2323.6-0617_daily_bin351.fits outfile=/scratch/kocevski/815991/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin351.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=330307201.0 tmax=330566401.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.83
user 3.58
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/815991/ft1_filtered_4FGL_J2323.6-0617_daily_bin351.fits" evtable="EVENTS" scfile=/scratch/kocevski/815991/ft2_4FGL_J2323.6-0617_daily_bin351.fits sctable="SC_DATA" outfile=/scratch/kocevski/815991/ltcube_330307201_330566401_4FGL_J2323.6-0617_daily_bin351.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/815991/ft2_4FGL_J2323.6-0617_daily_bin351.fits
.....................!
real 11.93
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815991/ft1_filtered_4FGL_J2323.6-0617_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/815991/ft2_4FGL_J2323.6-0617_daily_bin351.fits sctable="SC_DATA" expcube=/scratch/kocevski/815991/ltcube_330307201_330566401_4FGL_J2323.6-0617_daily_bin351.fits outfile=/scratch/kocevski/815991/expmap_330307201_330566401_4FGL_J2323.6-0617_daily_bin351.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/815991/ltcube_330307201_330566401_4FGL_J2323.6-0617_daily_bin351.fits
.....................!
real 190.58
user 184.82
sys 5.22

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/815991/ft1_filtered_4FGL_J2323.6-0617_daily_bin351.fits scfile=/scratch/kocevski/815991/ft2_4FGL_J2323.6-0617_daily_bin351.fits outfile=/scratch/kocevski/815991/cmap_330307201_330566401_4FGL_J2323.6-0617_daily_bin351.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.58
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/815991/ft1_filtered_4FGL_J2323.6-0617_daily_bin351.fits scfile=/scratch/kocevski/815991/ft2_4FGL_J2323.6-0617_daily_bin351.fits outfile=/scratch/kocevski/815991/cmap_HighResolution_330307201_330566401_4FGL_J2323.6-0617_daily_bin351.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/815991/ft1_filtered_4FGL_J2323.6-0617_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/815991/ft2_4FGL_J2323.6-0617_daily_bin351.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/815991/Model_4FGL_J2323.6-0617_daily_bin351.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/815991/ft1_filtered_4FGL_J2323.6-0617_daily_bin351.fits.....................!
real 54.59
user 53.09
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.084       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9668       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.490       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.725       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7518       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    107.68       1.0000         .10000E-03   10000.    
    16 'Prefactor '    69.911       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.779       1.0000         .10000E-03   10000.    
    20 'norm      '    3.9496       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .68102E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    61.923       1.0000         .10000E-03   10000.    
    24 'norm      '    4.9517       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.6285       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3597       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .73430       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=   5388.379     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3767 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3336        .14654E-07** at limit **
   2  Prefactor     .10000E-03    14.454        .75363E-06** at limit **
   3  Prefactor     23.050        15.751       -.15891E-05   -.62943E-04
   4  norm          .10000E-03    1.1040       -.14236E-05** at limit **
   5  Prefactor     .10000E-03    13.791       -.83148E-06** at limit **
   6  Prefactor     3.9661        9.2994       -.84304E-06   -.74205E-06
   7  Prefactor     .10000E-03    6.3283       -.11433E-07** at limit **
   8  norm          .10000E-03    19.409       -.15567E-06** at limit **
   9  Prefactor     34.485        31.610        .29173E-06   -.65433E-06
  10  Prefactor     30.724        41.505       -.90419E-06    .41410E-05
  11  Prefactor     2.7500        30.451       -.56841E-06    .51744E-05
  12  Prefactor     .10000E-03    3.3789        .10899E-06** at limit **
  13  norm          .10000E-03    .30189        .55978E-07** at limit **
  14  norm          .10000E-03    1.4098        .26475E-07** at limit **
  15  Prefactor     107.74        87.986       -.43822E-05   -.16055E-04
  16  Prefactor     69.916        61.408       -.76988E-07   -.33975E-05
  17  Prefactor     .10000E-03    14.894        .18954E-06** at limit **
  18  Prefactor     .10000E-03    63.631       -.25820E-05** at limit **
  19  Prefactor     11.776        18.892        .34085E-06    .17348E-04
  20  norm          3.9511        37.759        .19882E-06    .10590E-04
  21  Prefactor     .10220E-03    60.668       -.43650E-05** at limit **
  22  Prefactor     .10000E-03    2.8789        .67789E-07** at limit **
  23  Prefactor     61.922        48.469        .11106E-05    .13637E-05
  24  norm          4.9517        1.1687        .49640E-08   -.33072E-04
  25  norm          .10000E-03    10.083        .46566E-07** at limit **
  26  Prefactor     1.6278        16.685        .35731E-06    .29549E-04
  27  Prefactor     .10000E-03    3.7531        .34769E-07** at limit **
  28  Normalizat    1.3598        .22613       -.37265E-06   -.20721E-04
  29  Prefactor     .73423        .16422       -.15639E-06   -.11728E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0501
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.96614
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.4854
  Prefactor  = 30.7236
  Prefactor  = 2.75
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 107.736
  Prefactor  = 69.916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7756
  norm       = 3.95115
  Prefactor  = 0.0001022
  Prefactor  = 0.0001
  Prefactor  = 61.9221
  norm       = 4.95169
  norm       = 0.0001
  Prefactor  = 1.62781
  Prefactor  = 0.0001
  Normalizat = 1.35977
  Prefactor  = 0.734227
 **********
 **   18 **HESSE 
 **********

 FCN=   5388.379     FROM HESSE     STATUS=OK           561 CALLS     4328 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3351        .10951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.050        15.775        .83371E-04   -1.4747    
   4  norm          .10000E-03    1.1074        .11800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9661        9.2779        .20252E-03   -1.5310    
   7  Prefactor     .10000E-03    6.3482        .18035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    19.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.485        31.657        .68235E-04   -1.4533    
  10  Prefactor     30.724        41.593        .72284E-04   -1.4599    
  11  Prefactor     2.7500        30.399        .24540E-03   -1.5376    
  12  Prefactor     .10000E-03    3.3833        .13169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .30862        .39354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4111        .85114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     107.74        87.801        .19378E-03   -1.3628    
  16  Prefactor     69.916        61.387        .48009E-04   -1.4034    
  17  Prefactor     .10000E-03    14.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    63.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.776        18.576        .11672E-03   -1.5022    
  20  norm          3.9511        36.394        .20297E-03   -1.5310    
  21  Prefactor     .10220E-03    51.548        .15695       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.9153        .12133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     61.922        48.539        .50991E-04   -1.4133    
  24  norm          4.9517        1.1694        .36792E-04   -1.5263    
  25  norm          .10000E-03    10.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.6278        16.768        .33144E-03   -1.5453    
  27  Prefactor     .10000E-03    3.7903        .13885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3598        .26936        .25625E-03   -.81799    
  29  Prefactor     .73423        .19298        .25387E-03   -1.0220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30697e-10
Minuit parameter uncertainties:
  1  8.01497e-07
  2  7.88808e-06
  3  15.7782
  4  8.73628e-06
  5  1.12897e-07
  6  9.28128
  7  2.71767e-06
  8  6.12401e-05
  9  31.6724
  10  41.6325
  11  18.2979
  12  1.45358e-05
  13  2.12276e-06
  14  2.51128e-06
  15  87.9068
  16  61.4427
  17  2.05227e-05
  18  2.89505e-05
  19  18.5855
  20  24.0021
  21  0.0213146
  22  6.69276e-06
  23  48.5702
  24  1.16937
  25  1.05734e-05
  26  10.4525
  27  4.17931e-06
  28  0.269638
  29  0.193156
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  2.511e-06  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.342e-01  1.932e-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.360e+00  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/815991/likelihoodResults_330307201_330566401_4FGL_J2323.6-0617_daily_bin351.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): 102
logL (Free Index) = 5388.38165534
delta logL = -0.00301325229248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5388.37864205
delta logL = 4.08690539189e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2333       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73423       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5388.379     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      226 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    200.84        .85247E-02** at limit **
   2  alpha         1.8629        2.5554        .82903E-01    .69938E-08
   3  Normalizat    1.3598        .78855E-01    .25625E-03    .36956E-04
   4  Prefactor     .73423        .59658E-01    .25387E-03    .45230E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.86289
  Normalizat = 1.35977
  Prefactor  = 0.734227
 **********
 **   18 **HESSE 
 **********

 FCN=   5388.379     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4859        .87365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8629        4.0319        .33161E-02   -.25769    
   3  Normalizat    1.3598        .25026        .10250E-04   -.81799    
   4  Prefactor     .73423        .18938        .10155E-04   -1.0220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90601e-12
Minuit parameter uncertainties:
  1  4.1882e-07
  2  192.454
  3  0.250488
  4  0.189549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815991': 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) = 5388.37864031
delta logL = 1.77933179657e-06

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  4.188e-07  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  1.863e+00  1.925e+02  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:  7.342e-01  1.895e-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.360e+00  2.505e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/815991/cmap_HighResolution_330307201_330566401_4FGL_J2323.6-0617_daily_bin351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-05', job_status='DONE', photon_flux_upper_limit='4.20e-08', time_completed='2021-09-29 15:05:24.335919', job_id='815991', GAL2='0.73', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1632953124.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.78e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='351' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:05:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 815991: <4FGL_J2323.6-0617_daily_bin351> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin351> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:50:21 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:50:23 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:50:23 2021
Terminated at Wed Sep 29 15:05:25 2021
Results reported at Wed Sep 29 15:05:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin351 350.916 -6.2953 330307201 330566401 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 :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

