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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin886
RA = 350.916, Dec = -6.2953
tmin = 468979201, tmax = 469238401
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='817819', job_status='RUN', time_executed='2021-09-29 14:58:19.735111', time_epoch_executed='1632952699.74' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='886'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817819/ft1_4FGL_J2323.6-0617_daily_bin886.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817819/ft2_4FGL_J2323.6-0617_daily_bin886.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817819/ft1_4FGL_J2323.6-0617_daily_bin886.fits outfile=/scratch/kocevski/817819/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin886.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=468979201.0 tmax=469238401.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.38
user 3.19
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817819/ft1_filtered_4FGL_J2323.6-0617_daily_bin886.fits" evtable="EVENTS" scfile=/scratch/kocevski/817819/ft2_4FGL_J2323.6-0617_daily_bin886.fits sctable="SC_DATA" outfile=/scratch/kocevski/817819/ltcube_468979201_469238401_4FGL_J2323.6-0617_daily_bin886.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/817819/ft2_4FGL_J2323.6-0617_daily_bin886.fits
.....................!
real 11.87
user 11.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817819/ft1_filtered_4FGL_J2323.6-0617_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/817819/ft2_4FGL_J2323.6-0617_daily_bin886.fits sctable="SC_DATA" expcube=/scratch/kocevski/817819/ltcube_468979201_469238401_4FGL_J2323.6-0617_daily_bin886.fits outfile=/scratch/kocevski/817819/expmap_468979201_469238401_4FGL_J2323.6-0617_daily_bin886.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/817819/ltcube_468979201_469238401_4FGL_J2323.6-0617_daily_bin886.fits
.....................!
real 190.77
user 185.08
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/817819/ft1_filtered_4FGL_J2323.6-0617_daily_bin886.fits scfile=/scratch/kocevski/817819/ft2_4FGL_J2323.6-0617_daily_bin886.fits outfile=/scratch/kocevski/817819/cmap_468979201_469238401_4FGL_J2323.6-0617_daily_bin886.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/817819/ft1_filtered_4FGL_J2323.6-0617_daily_bin886.fits scfile=/scratch/kocevski/817819/ft2_4FGL_J2323.6-0617_daily_bin886.fits outfile=/scratch/kocevski/817819/cmap_HighResolution_468979201_469238401_4FGL_J2323.6-0617_daily_bin886.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/817819/ft1_filtered_4FGL_J2323.6-0617_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/817819/ft2_4FGL_J2323.6-0617_daily_bin886.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/817819/Model_4FGL_J2323.6-0617_daily_bin886.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/817819/ft1_filtered_4FGL_J2323.6-0617_daily_bin886.fits.....................!
real 49.71
user 48.32
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.320       1.0000         .10000E-03   10000.    
     4 'norm      '    .10870E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.655       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4647       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8222       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1107       1.0000         .10000E-03   10000.    
    14 'norm      '    .40870       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6233       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1181       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.824       1.0000         .10000E-03   10000.    
    24 'norm      '    2.3521       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    46.003       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.086       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78213       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96748       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=   5215.407     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3687 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3341        .99668E-08** at limit **
   2  Prefactor     .10000E-03    77.961        .12587E-05** at limit **
   3  Prefactor     21.294        19.034        .64186E-06   -.19519E-03
   4  norm          .10000E-03    1.1683        .58154E-07** at limit **
   5  Prefactor     .10001E-03    44.330        .70849E-05** at limit **
   6  Prefactor     19.654        12.267        .61238E-07   -.53955E-04
   7  Prefactor     .10000E-03    6.4654        .75457E-06** at limit **
   8  norm          .10000E-03    27.079       -.35044E-05** at limit **
   9  Prefactor     4.4642        13.872        .64590E-05   -.19255E-03
  10  Prefactor     .10000E-03    25.594       -.13534E-05** at limit **
  11  Prefactor     2.8227        29.135        .21747E-06   -.10818E-04
  12  Prefactor     .10000E-03    5.0392        .13445E-07** at limit **
  13  norm          2.1107        1.0763       -.34984E-08    .19293E-03
  14  norm          .40252        3.2464       -.29772E-06    .24683E-03
  15  Prefactor     .10000E-03    22.709        .31756E-05** at limit **
  16  Prefactor     .10000E-03    34.918       -.18348E-05** at limit **
  17  Prefactor     5.6236        12.386        .37224E-05   -.17431E-03
  18  Prefactor     .10001E-03    86.321       -.64580E-05** at limit **
  19  Prefactor     .10000E-03    5.5429        .11246E-06** at limit **
  20  norm          .10000E-03    10.721       -.92584E-07** at limit **
  21  Prefactor     .10000E-03    24.996       -.33011E-06** at limit **
  22  Prefactor     3.1189        4.1272        .21646E-06   -.56457E-05
  23  Prefactor     26.807        33.532       -.16366E-05   -.14141E-03
  24  norm          2.3521        .77910       -.37995E-07    .27267E-03
  25  norm          .10000E-03    6.1802       -.67772E-06** at limit **
  26  Prefactor     46.003        22.626        .19391E-06   -.88180E-05
  27  Prefactor     22.087        10.406        .99515E-07   -.12819E-04
  28  Normalizat    .78222        .20797       -.11280E-05    .33416E-04
  29  Prefactor     .96739        .15428       -.33148E-06    .21105E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.2943
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 19.6545
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 4.46415
  Prefactor  = 0.0001
  Prefactor  = 2.82265
  Prefactor  = 0.0001
  norm       = 2.11072
  norm       = 0.402517
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 5.62357
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.11886
  Prefactor  = 26.8073
  norm       = 2.35206
  norm       = 0.0001
  Prefactor  = 46.0033
  Prefactor  = 22.0865
  Normalizat = 0.782225
  Prefactor  = 0.967394
 **********
 **   18 **HESSE 
 **********

 FCN=   5215.407     FROM HESSE     STATUS=OK           549 CALLS     4236 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    78.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.294        15.830        .86746E-04   -1.4785    
   4  norm          .10000E-03    1.5069        .12560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    46.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.654        12.269        .90343E-04   -1.4821    
   7  Prefactor     .10000E-03    6.5268        .17961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    28.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4642        14.223        .95282E-03   -1.5285    
  10  Prefactor     .10000E-03    25.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8227        29.115        .24210E-03   -1.5372    
  12  Prefactor     .10000E-03    5.0630        .15817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1107        1.0740        .28397E-04   -1.5417    
  14  norm          .40252        13.116        .24638E-02   -1.5581    
  15  Prefactor     .10000E-03    23.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    35.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6236        12.556        .84703E-03   -1.5234    
  18  Prefactor     .10001E-03    88.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5571        .16594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.1189        4.1137        .15939E-03   -1.5355    
  23  Prefactor     26.807        33.852        .77350E-04   -1.4672    
  24  norm          2.3521        .77708        .35367E-04   -1.5401    
  25  norm          .10000E-03    6.2584        .17502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     46.003        22.665        .59115E-04   -1.4350    
  27  Prefactor     22.087        10.453        .85231E-04   -1.4768    
  28  Normalizat    .78222        .24460        .29855E-03   -1.0073    
  29  Prefactor     .96739        .18241        .20970E-03   -.93824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75339e-09
Minuit parameter uncertainties:
  1  1.12462e-06
  2  0.000322901
  3  15.8334
  4  5.25698e-05
  5  0.00127633
  6  12.271
  7  5.29402e-05
  8  0.000477309
  9  14.2337
  10  0.000200378
  11  18.1418
  12  9.70008e-06
  13  1.07397
  14  4.59596
  15  0.000482105
  16  0.00036929
  17  12.5616
  18  0.00187752
  19  1.38582e-05
  20  4.37842e-06
  21  4.72422e-05
  22  4.11404
  23  33.8767
  24  0.777083
  25  4.38331e-05
  26  22.6693
  27  10.4534
  28  0.244943
  29  0.182524
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  4.025e-01  4.596e+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:  9.674e-01  1.825e-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:  7.822e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/817819/likelihoodResults_468979201_469238401_4FGL_J2323.6-0617_daily_bin886.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) = 5215.39667699
delta logL = 0.00999136132305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5215.39505675
delta logL = 0.0116116043446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61058       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6695       1.0000          .0000       5.0000    
     3 'Normalizat'    .77974       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96759       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=   5215.395     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      256 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60887        7.8406        .30965E-03   -.10054E-02
   2  alpha         2.6698        3.7354        .64039E-01   -.45225E-04
   3  Normalizat    .77984        .23136        .29896E-03   -.77081E-04
   4  Prefactor     .96756        .17996        .20968E-03   -.14805E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.608867
  alpha      = 2.66984
  Normalizat = 0.779835
  Prefactor  = 0.96756
 **********
 **   18 **HESSE 
 **********

 FCN=   5215.395     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60887        5.8273        .12386E-04   -1.5552    
   2  alpha         2.6698        3.6369        .25616E-02    .67987E-01
   3  Normalizat    .77984        .23157        .11959E-04   -1.0082    
   4  Prefactor     .96756        .17995        .41936E-04   -.93819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37736e-09
Minuit parameter uncertainties:
  1  3.76741
  2  2.66424
  3  0.231867
  4  0.180064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817819': 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) = 5215.39505652
delta logL = 0.0116118284832

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  6.089e-01  3.767e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.670e+00  2.664e+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:  9.676e-01  1.801e-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:  7.798e-01  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/817819/cmap_HighResolution_468979201_469238401_4FGL_J2323.6-0617_daily_bin886.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-05', job_status='DONE', photon_flux_upper_limit='7.26e-08', time_completed='2021-09-29 15:09:34.648415', job_id='817819', GAL2='0.97', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632953374.65', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.16e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='886' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:09:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 817819: <4FGL_J2323.6-0617_daily_bin886> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin886> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:55:41 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:55:44 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:44 2021
Terminated at Wed Sep 29 15:09:35 2021
Results reported at Wed Sep 29 15:09:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin886 350.916 -6.2953 468979201 469238401 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 :                                   670.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            834 sec.

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

