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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin1604
RA = 350.916, Dec = -6.2953
tmin = 655084801, tmax = 655344001
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='10761', job_status='RUN', time_executed='2021-10-08 00:27:50.711764', time_epoch_executed='1633678070.71' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10761

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10761/ft1_4FGL_J2323.6-0617_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10761/ft2_4FGL_J2323.6-0617_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10761/ft1_4FGL_J2323.6-0617_daily_bin1604.fits outfile=/scratch/kocevski/10761/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin1604.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=655084801.0 tmax=655344001.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 2.88
user 2.66
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10761/ft1_filtered_4FGL_J2323.6-0617_daily_bin1604.fits" evtable="EVENTS" scfile=/scratch/kocevski/10761/ft2_4FGL_J2323.6-0617_daily_bin1604.fits sctable="SC_DATA" outfile=/scratch/kocevski/10761/ltcube_655084801_655344001_4FGL_J2323.6-0617_daily_bin1604.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/10761/ft2_4FGL_J2323.6-0617_daily_bin1604.fits
.....................!
real 14.39
user 13.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10761/ft1_filtered_4FGL_J2323.6-0617_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/10761/ft2_4FGL_J2323.6-0617_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/10761/ltcube_655084801_655344001_4FGL_J2323.6-0617_daily_bin1604.fits outfile=/scratch/kocevski/10761/expmap_655084801_655344001_4FGL_J2323.6-0617_daily_bin1604.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/10761/ltcube_655084801_655344001_4FGL_J2323.6-0617_daily_bin1604.fits
.....................!
real 192.19
user 185.58
sys 5.54

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/10761/ft1_filtered_4FGL_J2323.6-0617_daily_bin1604.fits scfile=/scratch/kocevski/10761/ft2_4FGL_J2323.6-0617_daily_bin1604.fits outfile=/scratch/kocevski/10761/cmap_655084801_655344001_4FGL_J2323.6-0617_daily_bin1604.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10761/ft1_filtered_4FGL_J2323.6-0617_daily_bin1604.fits scfile=/scratch/kocevski/10761/ft2_4FGL_J2323.6-0617_daily_bin1604.fits outfile=/scratch/kocevski/10761/cmap_HighResolution_655084801_655344001_4FGL_J2323.6-0617_daily_bin1604.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10761/ft1_filtered_4FGL_J2323.6-0617_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/10761/ft2_4FGL_J2323.6-0617_daily_bin1604.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10761/Model_4FGL_J2323.6-0617_daily_bin1604.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/10761/ft1_filtered_4FGL_J2323.6-0617_daily_bin1604.fits......................!
real 25.34
user 24.00
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.255       1.0000         .10000E-03   10000.    
     4 'norm      '    .12227E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10923E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.413       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.780       1.0000         .10000E-03   10000.    
     8 'norm      '    59.620       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21837E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.738       1.0000         .10000E-03   10000.    
    13 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10640E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3226       1.0000         .10000E-03   10000.    
    16 'Prefactor '    116.10       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18822E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.001       1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    112.52       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10759E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.4774       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .64381       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0409       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=   1574.500     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3695 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.818        .12821E-06** at limit **
   2  Prefactor     .10000E-03    85.230       -.24494E-04** at limit **
   3  Prefactor     15.262        27.774        .98003E-06    .38938E-03
   4  norm          .10000E-03    3.2430       -.49599E-06** at limit **
   5  Prefactor     .10000E-03    93.265       -.27802E-04** at limit **
   6  Prefactor     14.409        23.701        .56741E-06    .16184E-03
   7  Prefactor     32.781        19.688        .34379E-07    .48275E-04
   8  norm          59.613        53.387       -.10610E-05    .10647E-04
   9  Prefactor     .10000E-03    221.03        .10481E-03** at limit **
  10  Prefactor     .10000E-03    544.29       -.13853E-03** at limit **
  11  Prefactor     .10000E-03    48.239        .47918E-04** at limit **
  12  Prefactor     45.747        38.694        .82338E-06    .34875E-03
  13  norm          .10000E-03    1.9844        .74927E-07** at limit **
  14  norm          .10000E-03    25.067       -.71070E-05** at limit **
  15  Prefactor     3.2494        7954.6       -.39161E-03   -.17513E-05
  16  Prefactor     116.10        123.90        .22902E-05   -.95420E-04
  17  Prefactor     .10000E-03    27.544        .14454E-04** at limit **
  18  Prefactor     .10000E-03    553.36       -.48860E-03** at limit **
  19  Prefactor     28.004        50.759        .60957E-05    .12529E-03
  20  norm          .10000E-03    104.93       -.15764E-04** at limit **
  21  Prefactor     112.53        163.42        .48782E-05    .43833E-04
  22  Prefactor     .10000E-03    10.588       -.15016E-06** at limit **
  23  Prefactor     .10000E-03    198.24        .11579E-03** at limit **
  24  norm          .10000E-03    .45683        .59166E-07** at limit **
  25  norm          9.4776        8.9571       -.29909E-05   -.28762E-04
  26  Prefactor     .10000E-03    39.447       -.35519E-04** at limit **
  27  Prefactor     .10000E-03    17.633        .68303E-06** at limit **
  28  Normalizat    .64328        .49595       -.62894E-05   -.88865E-04
  29  Prefactor     1.0414        .34851        .50584E-05    .56879E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2624
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4093
  Prefactor  = 32.7806
  norm       = 59.6135
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.7468
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.24941
  Prefactor  = 116.099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0036
  norm       = 0.0001
  Prefactor  = 112.525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.47764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.643283
  Prefactor  = 1.04136
 **********
 **   18 **HESSE 
 **********

 FCN=   1574.500     FROM HESSE     STATUS=OK           535 CALLS     4230 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.825        .14410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    85.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.262        22.377        .10255E-03   -1.4926    
   4  norm          .10000E-03    4.1522        .10885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    93.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.409        23.709        .10550E-03   -1.4949    
   7  Prefactor     32.781        19.703        .69988E-04   -1.4562    
   8  norm          59.613        53.426        .51961E-04   -1.4162    
   9  Prefactor     .10000E-03    221.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    545.03        .20148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    48.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.747        38.717        .59285E-04   -1.4354    
  13  norm          .10000E-03    1.9930        .54483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    25.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2494        8014.9        .22207E-03   -1.5347    
  16  Prefactor     116.10        125.06        .37341E-04   -1.3549    
  17  Prefactor     .10000E-03    27.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    552.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.004        50.547        .75710E-04   -1.4649    
  20  norm          .10000E-03    104.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     112.53        163.40        .37923E-04   -1.3582    
  22  Prefactor     .10000E-03    10.589        .12607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    198.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .46389        .52132E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.4776        8.9244        .11078E-03   -1.5092    
  26  Prefactor     .10000E-03    39.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    17.676        .16275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .64328        .57294        .18459E-02   -1.0618    
  29  Prefactor     1.0414        .40795        .22263E-03   -.91363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17296e-09
Minuit parameter uncertainties:
  1  1.23349e-06
  2  2.10436e-06
  3  22.3891
  4  3.72581e-05
  5  3.27713e-05
  6  23.7248
  7  19.7064
  8  53.4688
  9  0.00179805
  10  0.000370158
  11  0.000111822
  12  38.7386
  13  1.06953e-05
  14  9.00199e-06
  15  327.111
  16  125.344
  17  5.03384e-05
  18  5.99859e-05
  19  50.6239
  20  1.71989e-05
  21  164.056
  22  7.6897e-06
  23  0.000203662
  24  6.75691e-06
  25  8.9256
  26  1.01194e-06
  27  4.11327e-06
  28  0.578362
  29  0.409174
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  9.002e-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:  1.041e+00  4.092e-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:  6.433e-01  5.784e-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: 2.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10761/likelihoodResults_655084801_655344001_4FGL_J2323.6-0617_daily_bin1604.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) = 1574.50058106
delta logL = -0.000189160985656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1574.42208315
delta logL = 0.0783087466359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4580       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8517       1.0000          .0000       5.0000    
     3 'Normalizat'    .57023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0684       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=   1574.422     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      315 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4604        27.643        .14455E-03   -.39001E-03
   2  alpha         3.8520        4.3881        .23550E-01   -.22512E-04
   3  Normalizat    .57032        .54828        .38995E-03    .20029E-03
   4  Prefactor     1.0683        .40504        .21974E-03    .33099E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.46045
  alpha      = 3.852
  Normalizat = 0.57032
  Prefactor  = 1.06828
 **********
 **   18 **HESSE 
 **********

 FCN=   1574.422     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4604        11.969        .57821E-05   -1.5394    
   2  alpha         3.8520        3.9535        .94200E-03    .57139    
   3  Normalizat    .57032        .54925        .77991E-04   -1.0926    
   4  Prefactor     1.0683        .40350        .43949E-04   -.90487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08327e-09
Minuit parameter uncertainties:
  1  10.8569
  2  2.61312
  3  0.554619
  4  0.404659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10761': 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) = 1574.42208292
delta logL = 0.0783089850106

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  2.460e+00  1.086e+01  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  3.852e+00  2.613e+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:  1.068e+00  4.047e-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:  5.703e-01  5.546e-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/10761/cmap_HighResolution_655084801_655344001_4FGL_J2323.6-0617_daily_bin1604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-04', job_status='DONE', photon_flux_upper_limit='2.96e-07', time_completed='2021-10-08 00:34:55.301318', job_id='10761', GAL2='1.07', fit_tolerance='1e-08', EG2='0.57', EG='0.64', time_epoch_completed='1633678495.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='7.83e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1604' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:34:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 10761: <4FGL_J2323.6-0617_daily_bin1604> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin1604> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Oct  8 00:25:24 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:25:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:25:33 2021
Terminated at Fri Oct  8 00:34:55 2021
Results reported at Fri Oct  8 00:34:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin1604 350.916 -6.2953 655084801 655344001 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 :                                   426.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             219.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            571 sec.

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

