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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin420
RA = 350.916, Dec = -6.2953
tmin = 348192001, tmax = 348451201
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='816099', job_status='RUN', time_executed='2021-09-29 14:54:01.939821', time_epoch_executed='1632952441.94' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816099/ft1_4FGL_J2323.6-0617_daily_bin420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816099/ft2_4FGL_J2323.6-0617_daily_bin420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816099/ft1_4FGL_J2323.6-0617_daily_bin420.fits outfile=/scratch/kocevski/816099/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin420.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=348192001.0 tmax=348451201.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.40
user 3.20
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/816099/ft2_4FGL_J2323.6-0617_daily_bin420.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/816099/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin420.fits evtable="EVENTS" outfile="/scratch/kocevski/816099/ft1_filtered_4FGL_J2323.6-0617_daily_bin420.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816099/ft1_filtered_4FGL_J2323.6-0617_daily_bin420.fits" evtable="EVENTS" scfile=/scratch/kocevski/816099/ft2_4FGL_J2323.6-0617_daily_bin420.fits sctable="SC_DATA" outfile=/scratch/kocevski/816099/ltcube_348192001_348451201_4FGL_J2323.6-0617_daily_bin420.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/816099/ft2_4FGL_J2323.6-0617_daily_bin420.fits
.....................!
real 11.79
user 11.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816099/ft1_filtered_4FGL_J2323.6-0617_daily_bin420.fits evtable="EVENTS" scfile=/scratch/kocevski/816099/ft2_4FGL_J2323.6-0617_daily_bin420.fits sctable="SC_DATA" expcube=/scratch/kocevski/816099/ltcube_348192001_348451201_4FGL_J2323.6-0617_daily_bin420.fits outfile=/scratch/kocevski/816099/expmap_348192001_348451201_4FGL_J2323.6-0617_daily_bin420.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/816099/ltcube_348192001_348451201_4FGL_J2323.6-0617_daily_bin420.fits
.....................!
real 190.91
user 185.27
sys 5.17

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/816099/ft1_filtered_4FGL_J2323.6-0617_daily_bin420.fits scfile=/scratch/kocevski/816099/ft2_4FGL_J2323.6-0617_daily_bin420.fits outfile=/scratch/kocevski/816099/cmap_348192001_348451201_4FGL_J2323.6-0617_daily_bin420.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816099/ft1_filtered_4FGL_J2323.6-0617_daily_bin420.fits scfile=/scratch/kocevski/816099/ft2_4FGL_J2323.6-0617_daily_bin420.fits outfile=/scratch/kocevski/816099/cmap_HighResolution_348192001_348451201_4FGL_J2323.6-0617_daily_bin420.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/816099/ft1_filtered_4FGL_J2323.6-0617_daily_bin420.fits evtable="EVENTS" scfile=/scratch/kocevski/816099/ft2_4FGL_J2323.6-0617_daily_bin420.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/816099/Model_4FGL_J2323.6-0617_daily_bin420.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/816099/ft1_filtered_4FGL_J2323.6-0617_daily_bin420.fits.....................!
real 48.19
user 46.76
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6579       1.0000         .10000E-03   10000.    
     2 'Prefactor '    83.490       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7243       1.0000         .10000E-03   10000.    
     4 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.611       1.0000         .10000E-03   10000.    
     8 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11588E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6032       1.0000         .10000E-03   10000.    
    14 'norm      '    2.4583       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19180E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13355E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .31593E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0793       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10894E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .41054E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    7.9907       1.0000         .10000E-03   10000.    
    25 'norm      '    15.067       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.962       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.4980       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3390       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .61624       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=   4734.580     FROM MIGRAD    STATUS=CONVERGED   1317 CALLS     4373 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6569        7.3477        .16888E-03   -.61664E-04
   2  Prefactor     83.528        68.755        .21981E-03    .13499E-04
   3  Prefactor     7.7718        16.445        .14428E-03   -.94711E-04
   4  norm          .10000E-03    .93995        .10439E-02** at limit **
   5  Prefactor     .10000E-03    50.328        .18142E-02** at limit **
   6  Prefactor     .10000E-03    8.6115        .18142E-02** at limit **
   7  Prefactor     11.612        11.873        .11757E-03   -.42547E-05
   8  norm          .10000E-03    13.224        .18142E-02** at limit **
   9  Prefactor     .10000E-03    11.517        .18142E-02** at limit **
  10  Prefactor     .10000E-03    90.111        .18142E-02** at limit **
  11  Prefactor     .10000E-03    11.938        .18142E-02** at limit **
  12  Prefactor     .10000E-03    5.9920        .16412E-02** at limit **
  13  norm          1.6030        1.2208        .62175E-04    .70068E-03
  14  norm          2.4584        4.8953        .20760E-03   -.38991E-03
  15  Prefactor     .10000E-03    32.075        .18142E-02** at limit **
  16  Prefactor     .10000E-03    131.21        .18142E-02** at limit **
  17  Prefactor     .10000E-03    25.848        .91166E-01** at limit **
  18  Prefactor     .10000E-03    188.18        .21368E-02** at limit **
  19  Prefactor     7.0804        11.604        .15077E-03    .49058E-03
  20  norm          .10001E-03    46.941        .36285E-03** at limit **
  21  Prefactor     .10000E-03    93.592        .18142E-02** at limit **
  22  Prefactor     .10000E-03    3.1691        .23514E-03** at limit **
  23  Prefactor     .10000E-03    205.79        .62085E-02** at limit **
  24  norm          7.9909        1.6146        .35165E-04   -.17140E-02
  25  norm          15.066        10.746        .10318E-03   -.16846E-03
  26  Prefactor     13.961        15.067        .10719E-03    .73285E-04
  27  Prefactor     7.4977        9.3908        .14646E-03   -.17022E-03
  28  Normalizat    1.3390        .26059        .24777E-03    .44256E-03
  29  Prefactor     .61626        .18550        .25905E-03    .52992E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.65689
  Prefactor  = 83.5284
  Prefactor  = 7.77183
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6118
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.60305
  norm       = 2.45843
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 7.08035
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 7.99093
  norm       = 15.0656
  Prefactor  = 13.9606
  Prefactor  = 7.49769
  Normalizat = 1.33899
  Prefactor  = 0.616264
 **********
 **   18 **HESSE 
 **********

 FCN=   4734.580     FROM HESSE     STATUS=OK           533 CALLS     4906 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6569        7.3473        .67551E-05   -1.5232    
   2  Prefactor     83.528        68.749        .87923E-05   -1.3878    
   3  Prefactor     7.7718        16.436        .57713E-05   -1.5150    
   4  norm          .10000E-03    .93999        .20878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    50.340        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.6132        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.612        11.872        .47027E-05   -1.5026    
   8  norm          .10000E-03    13.229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    90.135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9925        .32824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6030        1.2206        .24870E-05   -1.5455    
  14  norm          2.4584        4.8949        .83039E-05   -1.5394    
  15  Prefactor     .10000E-03    32.077        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    131.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.104        .95696E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    188.19        .42736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0804        11.602        .60308E-05   -1.5176    
  20  norm          .10001E-03    46.942        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    93.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.1691        .47027E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    214.49        .24834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.9909        1.6146        .70329E-05   -1.5143    
  25  norm          15.066        10.747        .41273E-05   -1.4931    
  26  Prefactor     13.961        15.067        .42878E-05   -1.4961    
  27  Prefactor     7.4977        9.3904        .58585E-05   -1.5160    
  28  Normalizat    1.3390        .26078        .49554E-04   -.82410    
  29  Prefactor     .61626        .18563        .51810E-04   -1.0691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62102e-09
Minuit parameter uncertainties:
  1  7.34849
  2  68.8141
  3  16.4455
  4  6.09322e-06
  5  7.16565e-05
  6  8.8379e-06
  7  11.8749
  8  7.75685e-05
  9  3.12605e-05
  10  0.000891476
  11  1.26174e-05
  12  6.60677e-05
  13  1.22066
  14  4.89572
  15  1.6383e-06
  16  0.00104947
  17  0.000413149
  18  0.000437642
  19  11.6056
  20  0.00125668
  21  0.000264757
  22  6.78925e-05
  23  0.00207262
  24  1.61457
  25  10.7481
  26  15.0708
  27  9.39229
  28  0.261037
  29  0.185816
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  6.163e-01  1.858e-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.339e+00  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/816099/likelihoodResults_348192001_348451201_4FGL_J2323.6-0617_daily_bin420.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) = 4734.01741971
delta logL = 0.563062790447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4734.00288903
delta logL = 0.577593472421

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4734.003     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9196        43.653        .74904E-02    .33877E-03
   2  alpha         3.5807        4.0963        .44825        .32743E-04
   3  Normalizat    1.2827        .68060E-01    .57018E-01   -.67166E-05
   4  Prefactor     .63831        .47673E-01    .41574E-01    .68953E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.91964
  alpha      = 3.58067
  Normalizat = 1.28266
  Prefactor  = 0.63831
 **********
 **   18 **HESSE 
 **********

 FCN=   4734.003     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9196        3.5810        .89203E-04   -1.5431    
   2  alpha         3.5807        1.2430        .17391E-01    .44700    
   3  Normalizat    1.2827        .25975        .25213E-03   -.84086    
   4  Prefactor     .63831        .18757        .25470E-03   -1.0600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5006e-09
Minuit parameter uncertainties:
  1  3.58141
  2  1.31653
  3  0.260012
  4  0.187755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816099': 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) = 4734.00288828
delta logL = 0.577594217461

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.920e+00  3.581e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  3.581e+00  1.317e+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:  6.383e-01  1.878e-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.283e+00  2.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 350.916 -6.295
Photon Index (Free Index): 3.58 +/- 1.32
Photon Flux (Free Index): 6.42e-08 +/- 7.09e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.16e-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/816099/cmap_HighResolution_348192001_348451201_4FGL_J2323.6-0617_daily_bin420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-05', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='5.78e-01', photon_flux2='6.42e-08', job_status='DONE', time_completed='2021-09-29 15:05:31.948420', photon_index_error2='1.32', photon_index2='3.58', ts='0.33', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='8.73e-08', energy_flux_error2='1.16e-05', EG='1.34', time_epoch_completed='1632953131.95', return_code='0', job_id='816099', GAL2='0.64', EG2='1.28', return_code2='0', photon_flux_error2='7.09e-08', ts2='1.52', photon_index='2.24' WHERE bin_id='420' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:05:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 816099: <4FGL_J2323.6-0617_daily_bin420> in cluster <slac> Done

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

Your job looked like:

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

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

