/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 229 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.6-0617_daily_bin207
RA = 350.916, Dec = -6.2953
tmin = 292982401, tmax = 293241601
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='814663', job_status='RUN', time_executed='2021-09-29 14:49:56.378047', time_epoch_executed='1632952196.38' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814663

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814663/ft1_4FGL_J2323.6-0617_daily_bin207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814663/ft2_4FGL_J2323.6-0617_daily_bin207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814663/ft1_4FGL_J2323.6-0617_daily_bin207.fits outfile=/scratch/kocevski/814663/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin207.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=292982401.0 tmax=293241601.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.70
user 3.40
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814663/ft1_filtered_4FGL_J2323.6-0617_daily_bin207.fits" evtable="EVENTS" scfile=/scratch/kocevski/814663/ft2_4FGL_J2323.6-0617_daily_bin207.fits sctable="SC_DATA" outfile=/scratch/kocevski/814663/ltcube_292982401_293241601_4FGL_J2323.6-0617_daily_bin207.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/814663/ft2_4FGL_J2323.6-0617_daily_bin207.fits
.....................!
real 11.87
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814663/ft1_filtered_4FGL_J2323.6-0617_daily_bin207.fits evtable="EVENTS" scfile=/scratch/kocevski/814663/ft2_4FGL_J2323.6-0617_daily_bin207.fits sctable="SC_DATA" expcube=/scratch/kocevski/814663/ltcube_292982401_293241601_4FGL_J2323.6-0617_daily_bin207.fits outfile=/scratch/kocevski/814663/expmap_292982401_293241601_4FGL_J2323.6-0617_daily_bin207.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/814663/ltcube_292982401_293241601_4FGL_J2323.6-0617_daily_bin207.fits
.....................!
real 196.43
user 191.96
sys 4.11

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/814663/ft1_filtered_4FGL_J2323.6-0617_daily_bin207.fits scfile=/scratch/kocevski/814663/ft2_4FGL_J2323.6-0617_daily_bin207.fits outfile=/scratch/kocevski/814663/cmap_292982401_293241601_4FGL_J2323.6-0617_daily_bin207.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814663/ft1_filtered_4FGL_J2323.6-0617_daily_bin207.fits scfile=/scratch/kocevski/814663/ft2_4FGL_J2323.6-0617_daily_bin207.fits outfile=/scratch/kocevski/814663/cmap_HighResolution_292982401_293241601_4FGL_J2323.6-0617_daily_bin207.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/814663/ft1_filtered_4FGL_J2323.6-0617_daily_bin207.fits evtable="EVENTS" scfile=/scratch/kocevski/814663/ft2_4FGL_J2323.6-0617_daily_bin207.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/814663/Model_4FGL_J2323.6-0617_daily_bin207.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/814663/ft1_filtered_4FGL_J2323.6-0617_daily_bin207.fits.....................!
real 48.97
user 47.67
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6093       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10706E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.532       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.045       1.0000         .10000E-03   10000.    
     8 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43183       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14937E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .78281       1.0000         .10000E-03   10000.    
    14 'norm      '    8.5589       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11468E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.5494       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13688E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .88514E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.0936       1.0000         .10000E-03   10000.    
    25 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4245       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .75879       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=   4898.176     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     3764 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6107        8.9543       -.82806E-06   -.34217E-04
   2  Prefactor     .10000E-03    37.099       -.15759E-04** at limit **
   3  Prefactor     .10000E-03    45.257        .20880E-04** at limit **
   4  norm          .10000E-03    .76141       -.27871E-06** at limit **
   5  Prefactor     .10000E-03    20.459       -.30484E-05** at limit **
   6  Prefactor     15.528        12.469       -.10508E-06   -.53203E-04
   7  Prefactor     29.025        20.252       -.29323E-06   -.11900E-03
   8  norm          .10000E-03    4.2564       -.99285E-08** at limit **
   9  Prefactor     .12128        23.696       -.16696E-05    .10692E-03
  10  Prefactor     .10000E-03    45.920        .19657E-04** at limit **
  11  Prefactor     .10000E-03    133.55        .32291E-04** at limit **
  12  Prefactor     .10000E-03    5.9307       -.54500E-08** at limit **
  13  norm          .78291        .77483       -.32311E-08   -.11476E-03
  14  norm          8.5578        5.6848        .29027E-07   -.66363E-04
  15  Prefactor     .10000E-03    17.913        .15962E-05** at limit **
  16  Prefactor     .10000E-03    31.657        .18908E-04** at limit **
  17  Prefactor     .10000E-03    9.5219        .32781E-07** at limit **
  18  Prefactor     .10000E-03    76.029       -.28850E-04** at limit **
  19  Prefactor     .10000E-03    14.111       -.13930E-06** at limit **
  20  norm          4.5342        24.539       -.58156E-06   -.52257E-04
  21  Prefactor     .10000E-03    39.065       -.13396E-04** at limit **
  22  Prefactor     .10000E-03    4.2796        .16994E-06** at limit **
  23  Prefactor     .10000E-03    30.101        .64196E-07** at limit **
  24  norm          4.0933        1.1367       -.10503E-07   -.23233E-03
  25  norm          .10000E-03    4.6411       -.90186E-09** at limit **
  26  Prefactor     .10000E-03    36.588       -.15531E-04** at limit **
  27  Prefactor     .10000E-03    10.951        .27034E-07** at limit **
  28  Normalizat    1.4243        .22935        .18357E-06   -.79345E-06
  29  Prefactor     .75913        .17323        .84405E-08   -.13619E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.61067
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5278
  Prefactor  = 29.0254
  norm       = 0.0001
  Prefactor  = 0.121283
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.782905
  norm       = 8.55777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.53424
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.09334
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42425
  Prefactor  = 0.759129
 **********
 **   18 **HESSE 
 **********

 FCN=   4898.176     FROM HESSE     STATUS=OK           563 CALLS     4327 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6107        8.9499        .16962E-03   -1.5234    
   2  Prefactor     .10000E-03    37.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    46.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6633        .11742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.528        12.462        .10163E-03   -1.4920    
   7  Prefactor     29.025        20.206        .74340E-04   -1.4630    
   8  norm          .10000E-03    4.2626        .14101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12128        33.344        .89069E-01   -1.5638    
  10  Prefactor     .10000E-03    46.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    136.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9905        .16639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .78291        .74384        .58910E-03   -1.5531    
  14  norm          8.5578        5.6783        .13154E-03   -1.5123    
  15  Prefactor     .10000E-03    17.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.5290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    76.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.5342        19.309        .18874E-03   -1.5282    
  21  Prefactor     .10000E-03    39.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.0429        .24779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    37.079        .11098       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.0933        1.1378        .37996E-04   -1.5303    
  25  norm          .10000E-03    4.6503        .14713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    37.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.349        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4243        .27252        .24966E-03   -.79930    
  29  Prefactor     .75913        .20550        .24943E-03   -1.0125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82859e-10
Minuit parameter uncertainties:
  1  8.95203
  2  2.63195e-05
  3  0.000478195
  4  3.8807e-05
  5  3.66228e-05
  6  12.4644
  7  20.2104
  8  4.84306e-07
  9  4.02255
  10  5.85287e-05
  11  0.00121459
  12  8.87306e-06
  13  0.743846
  14  5.6787
  15  2.02976e-06
  16  1.33664e-05
  17  5.84265e-06
  18  3.62177e-06
  19  2.15388e-05
  20  18.7239
  21  7.42173e-06
  22  4.57867e-05
  23  1.06938e-07
  24  1.13781
  25  8.78142e-07
  26  0.00017307
  27  1.06955e-05
  28  0.272801
  29  0.205703
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  8.558e+00  5.679e+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.591e-01  2.057e-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.424e+00  2.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.41
Ra Dec: 350.916 -6.295
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 4.51e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.17e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4898.09815023
delta logL = 0.0779562950984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4898.09563256
delta logL = 0.08047396238

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2407       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9909       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4321       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75563       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=   4898.096     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      262 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2410        6.2524        .13184E-03   -.10582E-02
   2  alpha         1.9911        .60742        .15088E-01   -.10287E-03
   3  Normalizat    1.4320        .26798        .24910E-03    .57495E-04
   4  Prefactor     .75567        .20327        .24995E-03    .52351E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.24097
  alpha      = 1.99107
  Normalizat = 1.43199
  Prefactor  = 0.755668
 **********
 **   18 **HESSE 
 **********

 FCN=   4898.096     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2410        6.2296        .26368E-04   -1.5100    
   2  alpha         1.9911        .60523        .60353E-03   -.20500    
   3  Normalizat    1.4320        .26822        .49821E-04   -.79708    
   4  Prefactor     .75567        .20347        .99981E-05   -1.0138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0163e-09
Minuit parameter uncertainties:
  1  6.23007
  2  0.611578
  3  0.268488
  4  0.203674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814663': 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) = 4898.0956325
delta logL = 0.0804740232115

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  9.241e+00  6.230e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  1.991e+00  6.116e-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:  7.557e-01  2.037e-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.432e+00  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.57
Ra Dec: 350.916 -6.295
Photon Index (Free Index): 1.99 +/- 0.61
Photon Flux (Free Index): 3.79e-08 +/- 3.11e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.45e-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/814663/cmap_HighResolution_292982401_293241601_4FGL_J2323.6-0617_daily_bin207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.51e-08', energy_flux2='1.97e-05', photon_flux_error='3.00e-08', dlogl='8.05e-02', energy_flux='1.76e-05', photon_flux2='3.79e-08', job_status='DONE', time_completed='2021-09-29 15:00:08.379339', photon_index_error2='0.61', photon_index2='1.99', ts='6.41', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.42', time_epoch_completed='1632952808.38', return_code='0', job_id='814663', GAL2='0.76', EG2='1.43', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='3.11e-08', ts2='6.57', photon_index='2.24' WHERE bin_id='207' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:00:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 814663: <4FGL_J2323.6-0617_daily_bin207> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin207> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 14:45:56 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:45:58 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:45:58 2021
Terminated at Wed Sep 29 15:00:09 2021
Results reported at Wed Sep 29 15:00:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin207 350.916 -6.2953 292982401 293241601 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 :                                   604.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            853 sec.

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

