/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 172 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7498
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2323.6-0617_daily_bin662
RA = 350.916, Dec = -6.2953
tmin = 410918401, tmax = 411177601
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='817495', job_status='RUN', time_executed='2021-09-29 14:58:17.645882', time_epoch_executed='1632952697.65' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817495

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817495/ft1_4FGL_J2323.6-0617_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817495/ft2_4FGL_J2323.6-0617_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817495/ft1_4FGL_J2323.6-0617_daily_bin662.fits outfile=/scratch/kocevski/817495/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin662.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=410918401.0 tmax=411177601.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.92
user 6.64
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817495/ft1_filtered_4FGL_J2323.6-0617_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/817495/ft2_4FGL_J2323.6-0617_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/817495/ltcube_410918401_411177601_4FGL_J2323.6-0617_daily_bin662.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/817495/ft2_4FGL_J2323.6-0617_daily_bin662.fits
.....................!
real 12.03
user 11.68
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817495/ft1_filtered_4FGL_J2323.6-0617_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/817495/ft2_4FGL_J2323.6-0617_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/817495/ltcube_410918401_411177601_4FGL_J2323.6-0617_daily_bin662.fits outfile=/scratch/kocevski/817495/expmap_410918401_411177601_4FGL_J2323.6-0617_daily_bin662.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/817495/ltcube_410918401_411177601_4FGL_J2323.6-0617_daily_bin662.fits
.....................!
real 191.23
user 185.86
sys 5.02

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/817495/ft1_filtered_4FGL_J2323.6-0617_daily_bin662.fits scfile=/scratch/kocevski/817495/ft2_4FGL_J2323.6-0617_daily_bin662.fits outfile=/scratch/kocevski/817495/cmap_410918401_411177601_4FGL_J2323.6-0617_daily_bin662.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/817495/ft1_filtered_4FGL_J2323.6-0617_daily_bin662.fits scfile=/scratch/kocevski/817495/ft2_4FGL_J2323.6-0617_daily_bin662.fits outfile=/scratch/kocevski/817495/cmap_HighResolution_410918401_411177601_4FGL_J2323.6-0617_daily_bin662.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.58
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/817495/ft1_filtered_4FGL_J2323.6-0617_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/817495/ft2_4FGL_J2323.6-0617_daily_bin662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/817495/Model_4FGL_J2323.6-0617_daily_bin662.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/817495/ft1_filtered_4FGL_J2323.6-0617_daily_bin662.fits.....................!
real 39.39
user 38.02
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.082       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10638E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10398E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.329       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.127       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7077       1.0000         .10000E-03   10000.    
     8 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12210E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .71805       1.0000         .10000E-03   10000.    
    14 'norm      '    9.9836       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.266       1.0000         .10000E-03   10000.    
    16 'Prefactor '    95.230       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14602E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .74482E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.312       1.0000         .10000E-03   10000.    
    20 'norm      '    .32342E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.725       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.0895       1.0000         .10000E-03   10000.    
    25 'norm      '    6.8458       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.131       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .70240       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0277       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=   3634.922     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3721 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.079        14.687        .30650E-06   -.21032E-04
   2  Prefactor     .10000E-03    22.409        .33116E-06** at limit **
   3  Prefactor     .10000E-03    46.953        .89741E-06** at limit **
   4  norm          .10000E-03    1.0643        .31753E-06** at limit **
   5  Prefactor     17.312        24.416       -.80035E-06   -.11309E-03
   6  Prefactor     10.126        11.779        .26923E-07   -.40353E-04
   7  Prefactor     4.7079        12.090        .69538E-05   -.12026E-03
   8  norm          .10000E-03    9.3155        .68851E-07** at limit **
   9  Prefactor     .10000E-03    8.5072       -.22455E-06** at limit **
  10  Prefactor     .10000E-03    26.223        .18264E-06** at limit **
  11  Prefactor     .10014E-03    22.992        .13266E-05** at limit **
  12  Prefactor     .10000E-03    9.7144        .18810E-06** at limit **
  13  norm          .72218        1.3735        .94996E-07    .40808E-04
  14  norm          9.9873        8.1811        .75969E-07   -.28321E-04
  15  Prefactor     21.164        72.504       -.17714E-05   -.86082E-04
  16  Prefactor     95.238        68.274       -.95210E-06   -.18047E-04
  17  Prefactor     .10000E-03    17.291        .49246E-06** at limit **
  18  Prefactor     .10000E-03    223.55       -.28621E-06** at limit **
  19  Prefactor     24.309        24.446        .28195E-06   -.27083E-04
  20  norm          .10000E-03    76.541        .14884E-05** at limit **
  21  Prefactor     .10000E-03    30.018       -.24178E-06** at limit **
  22  Prefactor     12.729        9.1605        .49114E-07   -.45152E-04
  23  Prefactor     .10000E-03    14.255       -.14211E-06** at limit **
  24  norm          1.0896        .71599        .17879E-07   -.18744E-04
  25  norm          6.8442        7.4684        .18432E-06   -.15081E-04
  26  Prefactor     14.132        14.549        .98875E-07   -.18453E-05
  27  Prefactor     .10000E-03    8.9752        .51443E-06** at limit **
  28  Normalizat    .70238        .24615       -.21272E-05   -.84200E-04
  29  Prefactor     1.0277        .18914        .33490E-06   -.18244E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.312
  Prefactor  = 10.1259
  Prefactor  = 4.7079
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100141
  Prefactor  = 0.0001
  norm       = 0.722176
  norm       = 9.98732
  Prefactor  = 21.1645
  Prefactor  = 95.2379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3089
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7294
  Prefactor  = 0.0001
  norm       = 1.08957
  norm       = 6.8442
  Prefactor  = 14.1319
  Prefactor  = 0.0001
  Normalizat = 0.702382
  Prefactor  = 1.02769
 **********
 **   18 **HESSE 
 **********

 FCN=   3634.922     FROM HESSE     STATUS=OK           551 CALLS     4272 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.079        14.697        .89378E-04   -1.4811    
   2  Prefactor     .10000E-03    22.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    48.224        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7392        .11333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.312        23.324        .96212E-04   -1.4876    
   6  Prefactor     10.126        11.772        .12591E-03   -1.5071    
   7  Prefactor     4.7079        12.077        .92731E-03   -1.5274    
   8  norm          .10000E-03    9.3397        .17971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.5120        .17175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10014E-03    178.70        .54994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.7786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .72218        1.3138        .87489E-04   -1.5538    
  14  norm          9.9873        8.1458        .12682E-03   -1.5076    
  15  Prefactor     21.164        72.528        .86856E-04   -1.4788    
  16  Prefactor     95.238        67.751        .41187E-04   -1.3753    
  17  Prefactor     .10000E-03    17.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    223.56        .20944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.309        24.300        .81240E-04   -1.4721    
  20  norm          .10000E-03    77.040        .21358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    30.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.729        9.1799        .11229E-03   -1.4994    
  23  Prefactor     .10000E-03    14.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.0896        .72394        .36921E-04   -1.5499    
  25  norm          6.8442        7.5354        .15235E-03   -1.5185    
  26  Prefactor     14.132        14.547        .10655E-03   -1.4956    
  27  Prefactor     .10000E-03    9.1356        .17624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .70238        .28077        .30163E-03   -1.0380    
  29  Prefactor     1.0277        .21710        .20738E-03   -.91812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18882e-09
Minuit parameter uncertainties:
  1  14.6993
  2  0.000137333
  3  0.000112354
  4  3.96548e-05
  5  23.3363
  6  11.7749
  7  12.0828
  8  6.7161e-06
  9  4.47703e-06
  10  3.11821e-05
  11  0.0100854
  12  9.72599e-06
  13  1.31389
  14  8.14667
  15  72.8322
  16  67.806
  17  4.22334e-05
  18  0.000588463
  19  24.3098
  20  3.80692e-06
  21  0.00017945
  22  9.18096
  23  2.73714e-05
  24  0.723942
  25  7.5364
  26  14.5511
  27  2.37796e-05
  28  0.281344
  29  0.217285
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  9.987e+00  8.147e+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:  1.028e+00  2.173e-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.024e-01  2.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.43
Ra Dec: 350.916 -6.295
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 5.27e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.68e-05

TS (Fixed Index): 3.43
Ra Dec: 350.916 -6.295
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/817495/likelihoodResults_410918401_411177601_4FGL_J2323.6-0617_daily_bin662.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) = 3633.64818885
delta logL = 1.27339844508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3633.64349241
delta logL = 1.27809488326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7124       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5109       1.0000          .0000       5.0000    
     3 'Normalizat'    .59502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0769       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=   3633.643     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      268 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7122        6.2579        .66957E-04    .70938E-03
   2  alpha         3.5110        .90940        .90406E-02    .47358E-04
   3  Normalizat    .59515        .27184        .32514E-03   -.40892E-04
   4  Prefactor     1.0769        .21827        .20285E-03   -.30607E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.71216
  alpha      = 3.51097
  Normalizat = 0.595153
  Prefactor  = 1.07687
 **********
 **   18 **HESSE 
 **********

 FCN=   3633.643     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7122        5.3950        .26783E-05   -1.5274    
   2  alpha         3.5110        .78898        .36162E-03    .41631    
   3  Normalizat    .59515        .27132        .13006E-04   -1.0819    
   4  Prefactor     1.0769        .21795        .40569E-04   -.90209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.58084e-11
Minuit parameter uncertainties:
  1  5.3956
  2  0.805546
  3  0.271929
  4  0.21813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817495': 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) = 3633.64349194
delta logL = 1.27809534703

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.077e+00  2.181e-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.952e-01  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.18
Ra Dec: 350.916 -6.295
Photon Index (Free Index): 3.51 +/- 0.81
Photon Flux (Free Index): 1.41e-07 +/- 8.50e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.43e-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/817495/cmap_HighResolution_410918401_411177601_4FGL_J2323.6-0617_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-05', comment='SUCCESS', photon_flux='5.27e-08', energy_flux2='2.60e-05', photon_flux_error='4.30e-08', dlogl='1.28e+00', energy_flux='2.06e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-29 15:08:16.045183', photon_index_error2='0.81', photon_index2='3.51', ts='3.43', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.43e-05', EG='0.70', time_epoch_completed='1632953296.05', return_code='0', job_id='817495', GAL2='1.08', EG2='0.60', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='8.50e-08', ts2='6.18', photon_index='2.24' WHERE bin_id='662' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:08:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 817495: <4FGL_J2323.6-0617_daily_bin662> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin662 350.916 -6.2953 410918401 411177601 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 :                                   592.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

