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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin733
RA = 350.916, Dec = -6.2953
tmin = 429321601, tmax = 429580801
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='817597', job_status='RUN', time_executed='2021-09-29 14:59:24.251799', time_epoch_executed='1632952764.25' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817597/ft1_4FGL_J2323.6-0617_daily_bin733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817597/ft2_4FGL_J2323.6-0617_daily_bin733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817597/ft1_4FGL_J2323.6-0617_daily_bin733.fits outfile=/scratch/kocevski/817597/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin733.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=429321601.0 tmax=429580801.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 6.44
user 6.17
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817597/ft1_filtered_4FGL_J2323.6-0617_daily_bin733.fits" evtable="EVENTS" scfile=/scratch/kocevski/817597/ft2_4FGL_J2323.6-0617_daily_bin733.fits sctable="SC_DATA" outfile=/scratch/kocevski/817597/ltcube_429321601_429580801_4FGL_J2323.6-0617_daily_bin733.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/817597/ft2_4FGL_J2323.6-0617_daily_bin733.fits
.....................!
real 12.13
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817597/ft1_filtered_4FGL_J2323.6-0617_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/817597/ft2_4FGL_J2323.6-0617_daily_bin733.fits sctable="SC_DATA" expcube=/scratch/kocevski/817597/ltcube_429321601_429580801_4FGL_J2323.6-0617_daily_bin733.fits outfile=/scratch/kocevski/817597/expmap_429321601_429580801_4FGL_J2323.6-0617_daily_bin733.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/817597/ltcube_429321601_429580801_4FGL_J2323.6-0617_daily_bin733.fits
.....................!
real 193.52
user 188.54
sys 4.66

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/817597/ft1_filtered_4FGL_J2323.6-0617_daily_bin733.fits scfile=/scratch/kocevski/817597/ft2_4FGL_J2323.6-0617_daily_bin733.fits outfile=/scratch/kocevski/817597/cmap_429321601_429580801_4FGL_J2323.6-0617_daily_bin733.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/817597/ft1_filtered_4FGL_J2323.6-0617_daily_bin733.fits scfile=/scratch/kocevski/817597/ft2_4FGL_J2323.6-0617_daily_bin733.fits outfile=/scratch/kocevski/817597/cmap_HighResolution_429321601_429580801_4FGL_J2323.6-0617_daily_bin733.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/817597/ft1_filtered_4FGL_J2323.6-0617_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/817597/ft2_4FGL_J2323.6-0617_daily_bin733.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/817597/Model_4FGL_J2323.6-0617_daily_bin733.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/817597/ft1_filtered_4FGL_J2323.6-0617_daily_bin733.fits.....................!
real 36.15
user 34.74
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1646       1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11033E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5308       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10507E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.833       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .51450       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.032       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.095       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10647E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1670       1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7365       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    16.125       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .75911       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1623       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=   3365.916     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     4212 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.960        .10425E-04** at limit **
   2  Prefactor     .10000E-03    59.537       -.89128E-05** at limit **
   3  Prefactor     5.1678        13.234        .25014E-05   -.28377E-03
   4  norm          .10000E-03    1.1078        .31105E-07** at limit **
   5  Prefactor     .10000E-03    64.371        .19056E-04** at limit **
   6  Prefactor     3.5310        9.6347        .86102E-06   -.18194E-03
   7  Prefactor     .10000E-03    5.5558        .13229E-07** at limit **
   8  norm          .10000E-03    19.751        .22424E-05** at limit **
   9  Prefactor     .10000E-03    16.256       -.10067E-04** at limit **
  10  Prefactor     11.849        39.443        .16524E-04   -.39298E-04
  11  Prefactor     .10000E-03    19.087       -.20692E-05** at limit **
  12  Prefactor     .10000E-03    5.2298       -.53080E-06** at limit **
  13  norm          .51461        1.2222       -.79625E-06   -.19338E-02
  14  norm          .10000E-03    1.9832        .90815E-08** at limit **
  15  Prefactor     19.119        87.737        .16274E-03    .11683E-04
  16  Prefactor     .10000E-03    27.263       -.13377E-04** at limit **
  17  Prefactor     13.096        15.966        .12383E-05   -.42436E-03
  18  Prefactor     .10000E-03    126.17        .27765E-05** at limit **
  19  Prefactor     7.1676        8.1502       -.16141E-05   -.36442E-04
  20  norm          .10000E-03    11.833       -.55892E-05** at limit **
  21  Prefactor     6.7819        162.80        .12626E-03   -.16047E-04
  22  Prefactor     .10000E-03    1.5711       -.95475E-08** at limit **
  23  Prefactor     .10000E-03    21.692        .81166E-05** at limit **
  24  norm          .10000E-03    .30680        .80083E-07** at limit **
  25  norm          16.125        7.5691        .56079E-06   -.25579E-03
  26  Prefactor     .10000E-03    10.403        .80864E-06** at limit **
  27  Prefactor     .10000E-03    8.8933        .43179E-05** at limit **
  28  Normalizat    .75917        .24508       -.15216E-04   -.41666E-03
  29  Prefactor     1.1621        .19617       -.21167E-05   -.72584E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.16776
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.53101
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.8487
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.514606
  norm       = 0.0001
  Prefactor  = 19.1191
  Prefactor  = 0.0001
  Prefactor  = 13.0956
  Prefactor  = 0.0001
  Prefactor  = 7.16761
  norm       = 0.0001
  Prefactor  = 6.78191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.1251
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.759173
  Prefactor  = 1.16213
 **********
 **   18 **HESSE 
 **********

 FCN=   3365.916     FROM HESSE     STATUS=OK           545 CALLS     4757 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    59.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1678        11.478        .17690E-03   -1.5253    
   4  norm          .10000E-03    1.4910        .10291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    65.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5310        9.6084        .21513E-03   -1.5332    
   7  Prefactor     .10000E-03    5.5643        .13356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    19.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.849        39.344        .11646E-03   -1.5019    
  11  Prefactor     .10000E-03    19.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2332        .12932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .51461        1.1935        .92575E-04   -1.5565    
  14  norm          .10000E-03    1.9841        .79782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.119        87.621        .91809E-04   -1.4833    
  16  Prefactor     .10000E-03    27.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.096        15.978        .55344E-03   -1.4984    
  18  Prefactor     .10000E-03    126.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.1676        8.1368        .14984E-03   -1.5172    
  20  norm          .10000E-03    11.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.7819        162.08        .15460E-03   -1.5187    
  22  Prefactor     .10000E-03    1.5771        .71006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .37256        .60867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          16.125        7.3577        .99741E-04   -1.4905    
  26  Prefactor     .10000E-03    10.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    24.192        .32844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .75917        .28009        .28401E-03   -1.0160    
  29  Prefactor     1.1621        .22823        .19548E-03   -.87505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25293e-09
Minuit parameter uncertainties:
  1  7.56096e-05
  2  0.000265513
  3  11.4824
  4  2.19627e-06
  5  0.000426971
  6  9.6126
  7  2.40138e-05
  8  0.000200629
  9  8.87367e-05
  10  39.4307
  11  7.88142e-05
  12  0.000117739
  13  1.19354
  14  1.55818e-05
  15  82.0582
  16  6.96743e-05
  17  15.9827
  18  4.86546e-05
  19  8.13804
  20  3.06888e-05
  21  66.5125
  22  7.01948e-06
  23  0.000153936
  24  4.45249e-06
  25  7.35808
  26  5.76614e-05
  27  0.000428667
  28  0.28062
  29  0.228426
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  1.558e-05  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.162e+00  2.284e-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.592e-01  2.806e-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: 5.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/817597/likelihoodResults_429321601_429580801_4FGL_J2323.6-0617_daily_bin733.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) = 3365.91823085
delta logL = -0.00214251135003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3365.91608939
delta logL = -1.04283026303e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7636       1.0000          .0000       5.0000    
     3 'Normalizat'    .75987       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1615       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=   3365.916     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      216 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    53.576        .90712E-02** at limit **
   2  alpha         1.7635        4.0363        .43672        .37821E-06
   3  Normalizat    .75917        .29637E-01    .64201E-01    .18253E-06
   4  Prefactor     1.1621        .24846E-01    .35611E-01    .47468E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.76346
  Normalizat = 0.759172
  Prefactor  = 1.16213
 **********
 **   18 **HESSE 
 **********

 FCN=   3365.916     FROM HESSE     STATUS=OK            29 CALLS      245 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2019        .84677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7635        3.3801        .17469       -.29905    
   3  Normalizat    .75917        .26850        .28402E-03   -1.0160    
   4  Prefactor     1.1621        .22565        .19548E-03   -.87505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83673e-09
Minuit parameter uncertainties:
  1  2.72323e-06
  2  273.353
  3  0.26897
  4  0.225839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817597': 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) = 3365.91608552
delta logL = 2.82028122456e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.162e+00  2.258e-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.592e-01  2.690e-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/817597/cmap_HighResolution_429321601_429580801_4FGL_J2323.6-0617_daily_bin733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-05', job_status='DONE', photon_flux_upper_limit='5.89e-08', time_completed='2021-09-29 15:09:12.713397', job_id='817597', GAL2='1.16', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632953352.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.82e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='733' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:09:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 817597: <4FGL_J2323.6-0617_daily_bin733> in cluster <slac> Done

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

Your job looked like:

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

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

