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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin704
RA = 350.888, Dec = -3.29
tmin = 421804801, tmax = 422064001
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='810844', job_status='RUN', time_executed='2021-09-29 14:36:18.502906', time_epoch_executed='1632951378.5' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810844

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810844/ft1_4FGL_J2323.5-0317_daily_bin704.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810844/ft2_4FGL_J2323.5-0317_daily_bin704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810844/ft1_4FGL_J2323.5-0317_daily_bin704.fits outfile=/scratch/kocevski/810844/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin704.fits ra=350.888 dec=-3.29 rad=12.0 tmin=421804801.0 tmax=422064001.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.55
user 3.35
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/810844/ft2_4FGL_J2323.5-0317_daily_bin704.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/810844/ft2_4FGL_J2323.5-0317_daily_bin704.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/810844/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin704.fits evtable="EVENTS" outfile="/scratch/kocevski/810844/ft1_filtered_4FGL_J2323.5-0317_daily_bin704.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810844/ft1_filtered_4FGL_J2323.5-0317_daily_bin704.fits" evtable="EVENTS" scfile=/scratch/kocevski/810844/ft2_4FGL_J2323.5-0317_daily_bin704.fits sctable="SC_DATA" outfile=/scratch/kocevski/810844/ltcube_421804801_422064001_4FGL_J2323.5-0317_daily_bin704.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/810844/ft2_4FGL_J2323.5-0317_daily_bin704.fits
.....................!
real 12.22
user 11.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810844/ft1_filtered_4FGL_J2323.5-0317_daily_bin704.fits evtable="EVENTS" scfile=/scratch/kocevski/810844/ft2_4FGL_J2323.5-0317_daily_bin704.fits sctable="SC_DATA" expcube=/scratch/kocevski/810844/ltcube_421804801_422064001_4FGL_J2323.5-0317_daily_bin704.fits outfile=/scratch/kocevski/810844/expmap_421804801_422064001_4FGL_J2323.5-0317_daily_bin704.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/810844/ltcube_421804801_422064001_4FGL_J2323.5-0317_daily_bin704.fits
.....................!
real 189.92
user 185.39
sys 4.18

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2323.5-0317 @ 350.888 -3.29

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/810844/ft1_filtered_4FGL_J2323.5-0317_daily_bin704.fits scfile=/scratch/kocevski/810844/ft2_4FGL_J2323.5-0317_daily_bin704.fits outfile=/scratch/kocevski/810844/cmap_421804801_422064001_4FGL_J2323.5-0317_daily_bin704.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.888 yref=-3.29 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810844/ft1_filtered_4FGL_J2323.5-0317_daily_bin704.fits scfile=/scratch/kocevski/810844/ft2_4FGL_J2323.5-0317_daily_bin704.fits outfile=/scratch/kocevski/810844/cmap_HighResolution_421804801_422064001_4FGL_J2323.5-0317_daily_bin704.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.888 yref=-3.29 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810844/ft1_filtered_4FGL_J2323.5-0317_daily_bin704.fits evtable="EVENTS" scfile=/scratch/kocevski/810844/ft2_4FGL_J2323.5-0317_daily_bin704.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810844/Model_4FGL_J2323.5-0317_daily_bin704.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/810844/ft1_filtered_4FGL_J2323.5-0317_daily_bin704.fits.....................!
real 55.22
user 53.95
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/810844/ft1_filtered_4FGL_J2323.5-0317_daily_bin704.fits', '/scratch/kocevski/810844/ft2_4FGL_J2323.5-0317_daily_bin704.fits', expMap='/scratch/kocevski/810844/expmap_421804801_422064001_4FGL_J2323.5-0317_daily_bin704.fits', expCube='/scratch/kocevski/810844/ltcube_421804801_422064001_4FGL_J2323.5-0317_daily_bin704.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/810844/Model_4FGL_J2323.5-0317_daily_bin704.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.5-0317'

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.648e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/810844/ft1_filtered_4FGL_J2323.5-0317_daily_bin704.fits
Spacecraft file(s): /scratch/kocevski/810844/ft2_4FGL_J2323.5-0317_daily_bin704.fits
Exposure map: /scratch/kocevski/810844/expmap_421804801_422064001_4FGL_J2323.5-0317_daily_bin704.fits
Exposure cube: /scratch/kocevski/810844/ltcube_421804801_422064001_4FGL_J2323.5-0317_daily_bin704.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/810844/Model_4FGL_J2323.5-0317_daily_bin704.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) = 5584.41862174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6522       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6248       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.001       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.758       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .19919       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9270       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.220       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.228       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2876       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .65368       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2079       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0517       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8948       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4104       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89665       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0354       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5584.358     FROM MIGRAD    STATUS=FAILED      1016 CALLS     3787 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3401        .13330E-02** at limit **
   2  Prefactor     .10000E-03    18.004        .18142E-02** at limit **
   3  Prefactor     .10000E-03    46.730        .18142E-02** at limit **
   4  Prefactor     .10000E-03    6.7779        .18142E-02** at limit **
   5  norm          4.6535        13.062        .18659E-03    .15598E-04
   6  Prefactor     8.6248        21.121        .68246E-03    .63085E-04
   7  Prefactor     20.000        16.640        .89558E-04    .43541E-04
   8  Prefactor     15.747        49.111        .10090E-03    .10794E-03
   9  Prefactor     .10000E-03    7.1569        .18142E-02** at limit **
  10  norm          .20016        1.5760        .12442E-02    .57821E-02
  11  norm          .10000E-03    2.4164        .11314E-02** at limit **
  12  Prefactor     2.9268        8.5581        .23744E-03    .11635E-04
  13  Prefactor     .10000E-03    17.083        .18142E-02** at limit **
  14  Prefactor     58.164        203.48        .52578E-04   -.20368E-04
  15  Prefactor     27.226        19.507        .76774E-04    .19754E-03
  16  Prefactor     4.2885        25.492        .97283E-03    .11658E-03
  17  norm          .10000E-03    13.484        .18142E-02** at limit **
  18  Prefactor     .58648        50.815        .15748        .14230E-03
  19  Prefactor     2.2098        6.5740        .12217E-02    .21278E-02
  20  Prefactor     3.0560        48.607        .23224E-03    .14490E-04
  21  Prefactor     1.8964        35.526        .30223E-03   -.25391E-04
  22  Prefactor     2.4114        18.888        .26369E-03   -.16685E-04
  23  Prefactor     .10000E-03    4.4679        .15375E-02** at limit **
  24  Normalizat    .89665        .23789        .28410E-03    .28452E-03
  25  Prefactor     1.0354        .17041        .19978E-03    .85026E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5584.358     FROM SIMPLEX   STATUS=UNCHANGED   1377 CALLS     5164 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3401        .16867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.004        .64260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    46.730        .10725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7779        .25369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6535        13.062        .86367E-06   -1.5276    
   6  Prefactor     8.6248        21.121        .84960E-06   -1.5121    
   7  Prefactor     20.000        16.640        .82814E-06   -1.4813    
   8  Prefactor     15.747        49.111        .85057E-06   -1.4914    
   9  Prefactor     .10000E-03    7.1569        .28485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .20016        1.5760        .88952E-06   -1.5619    
  11  norm          .10000E-03    2.4164        .17383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9268        8.5581        .85830E-06   -1.5366    
  13  Prefactor     .10000E-03    17.083        .46787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     58.164        203.48        .79883E-06   -1.4181    
  15  Prefactor     27.226        19.507        .81083E-06   -1.4664    
  16  Prefactor     4.2885        25.492        .85145E-06   -1.5294    
  17  norm          .10000E-03    13.484        .46683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .58648        50.815        .82184E-06   -1.5555    
  19  Prefactor     2.2098        6.5740        .85010E-06   -1.5411    
  20  Prefactor     3.0560        48.607        .79442E-06   -1.5358    
  21  Prefactor     1.8964        35.526        .76419E-06   -1.5433    
  22  Prefactor     2.4114        18.888        .85199E-06   -1.5397    
  23  Prefactor     .10000E-03    4.4679        .29029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89665        .23789        .55551E-06   -.96578    
  25  Prefactor     1.0354        .17041        .52019E-06   -.91558    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5584.358     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     5584 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3402        .26660E-03** at limit **
   2  Prefactor     .10000E-03    18.004        .36285E-03** at limit **
   3  Prefactor     .10000E-03    46.742        .36285E-03** at limit **
   4  Prefactor     .10000E-03    6.7788        .36285E-03** at limit **
   5  norm          4.6535        13.060        .74636E-05    .60928E-06
   6  Prefactor     8.6247        21.119        .27298E-04    .81626E-06
   7  Prefactor     20.000        16.638        .35823E-05    .63471E-06
   8  Prefactor     15.746        49.104        .20179E-04    .24789E-05
   9  Prefactor     .10000E-03    7.1579        .36285E-03** at limit **
  10  norm          .20016        1.5554        .24884E-03    .27869E-04
  11  norm          .10000E-03    2.4166        .22628E-03** at limit **
  12  Prefactor     2.9268        8.5561        .94976E-05    .47880E-06
  13  Prefactor     .10000E-03    17.083        .36285E-03** at limit **
  14  Prefactor     58.167        203.12        .10516E-04    .12973E-05
  15  Prefactor     27.226        19.357        .30710E-05    .31097E-04
  16  Prefactor     4.2883        25.466        .38913E-04    .29215E-06
  17  norm          .10000E-03    13.484        .36285E-03** at limit **
  18  Prefactor     .58648        49.955        .15960        .13217E-03
  19  Prefactor     2.2092        6.5162        .48867E-04   -.18612E-04
  20  Prefactor     3.0560        48.585        .92897E-05    .73428E-06
  21  Prefactor     1.8964        35.513        .12089E-04    .37616E-06
  22  Prefactor     2.4115        18.876        .10547E-04    .23713E-05
  23  Prefactor     .10000E-03    4.4687        .30750E-03** at limit **
  24  Normalizat    .89665        .23787        .11364E-04    .12205E-04
  25  Prefactor     1.0354        .17052        .39956E-04    .13088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.65346
  Prefactor  = 8.62473
  Prefactor  = 19.9999
  Prefactor  = 15.7465
  Prefactor  = 0.0001
  norm       = 0.20016
  norm       = 0.0001
  Prefactor  = 2.92685
  Prefactor  = 0.0001
  Prefactor  = 58.1672
  Prefactor  = 27.2264
  Prefactor  = 4.28835
  norm       = 0.0001
  Prefactor  = 0.586482
  Prefactor  = 2.20919
  Prefactor  = 3.05602
  Prefactor  = 1.89645
  Prefactor  = 2.41148
  Prefactor  = 0.0001
  Normalizat = 0.896654
  Prefactor  = 1.0354
 **********
 **   18 **HESSE 
 **********

 FCN=   5584.358     FROM HESSE     STATUS=OK           413 CALLS     5997 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3402        .53321E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.004        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    46.743        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7788        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6535        13.052        .14927E-05   -1.5276    
   6  Prefactor     8.6247        21.119        .27298E-04   -1.5121    
   7  Prefactor     20.000        16.674        .71647E-06   -1.4813    
   8  Prefactor     15.746        49.106        .40359E-05   -1.4914    
   9  Prefactor     .10000E-03    7.1580        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .20016        1.5498        .99537E-05   -1.5619    
  11  norm          .10000E-03    2.4166        .45257E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9268        8.5562        .18995E-05   -1.5366    
  13  Prefactor     .10000E-03    17.083        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     58.167        202.10        .21031E-05   -1.4181    
  15  Prefactor     27.226        19.333        .61420E-06   -1.4664    
  16  Prefactor     4.2883        25.577        .15565E-05   -1.5294    
  17  norm          .10000E-03    13.484        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .58648        50.124        .15917       -1.5555    
  19  Prefactor     2.2092        6.5064        .19547E-05   -1.5411    
  20  Prefactor     3.0560        48.919        .18579E-05   -1.5358    
  21  Prefactor     1.8964        35.462        .24178E-05   -1.5433    
  22  Prefactor     2.4115        18.819        .21095E-05   -1.5397    
  23  Prefactor     .10000E-03    4.4687        .61501E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89665        .23759        .22728E-05   -.96578    
  25  Prefactor     1.0354        .17033        .79912E-05   -.91559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54033e-10
Minuit parameter uncertainties:
  1  2.71935e-08
  2  9.89419e-08
  3  8.3361e-07
  4  3.09182e-07
  5  13.0599
  6  21.1369
  7  16.6778
  8  49.2325
  9  3.2336e-06
  10  1.11368
  11  2.84567e-07
  12  8.55976
  13  3.15826e-07
  14  204.554
  15  19.3378
  16  20.959
  17  5.06645e-06
  18  10.8522
  19  6.50848
  20  24.4771
  21  16.4122
  22  13.4789
  23  4.78742e-07
  24  0.23787
  25  0.170417
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.002e-01  1.114e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.035e+00  1.704e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  8.967e-01  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/810844/likelihoodResults_421804801_422064001_4FGL_J2323.5-0317_daily_bin704.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) = 5583.26513645
delta logL = 1.09277184782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5583.14579288
delta logL = 1.21211542154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53409E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .78433       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0882       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+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=   5583.146     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      291 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53413E-01    .50569E-01    .12065E-03    .76424E-02
   2  alpha         5.0000        3.1639        .50000    ** at limit **
   3  Normalizat    .78437        .23253        .30114E-03    .34354E-04
   4  Prefactor     1.0881        .16997        .19531E-03    .17152E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0534133
  alpha      = 5
  Normalizat = 0.78437
  Prefactor  = 1.08807
 **********
 **   18 **HESSE 
 **********

 FCN=   5583.146     FROM HESSE     STATUS=OK            31 CALLS      322 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53413E-01    .48643E-01    .48261E-05   -1.5662    
   2  alpha         5.0000        3.1195        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .78437        .23299        .12046E-04   -1.0065    
   4  Prefactor     1.0881        .17019        .39062E-04   -.89849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01226e-10
Minuit parameter uncertainties:
  1  0.0486431
  2  0.000170784
  3  0.233287
  4  0.170277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810844': 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) = 5583.14579146
delta logL = 1.2121168393

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  5.341e-02  4.864e-02  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  5.000e+00  1.708e-04  0.000e+00  5.000e+00 ( 1.000e+00)
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.088e+00  1.703e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  7.844e-01  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.69
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.00e-07 +/- 9.07e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.23e-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/810844/cmap_HighResolution_421804801_422064001_4FGL_J2323.5-0317_daily_bin704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.29e-05', comment='SUCCESS', energy_flux2='1.36e-05', dlogl='1.21e+00', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-29 14:49:44.523284', photon_index_error2='0.00', photon_index2='5.00', ts='0.04', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.23e-05', EG='0.90', time_epoch_completed='1632952184.52', return_code='0', job_id='810844', GAL2='1.09', EG2='0.78', return_code2='0', photon_flux_error2='9.07e-08', ts2='2.69', photon_index='2.16' WHERE bin_id='704' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:49:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 810844: <4FGL_J2323.5-0317_daily_bin704> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin704> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:35:14 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:35:16 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:35:16 2021
Terminated at Wed Sep 29 14:49:45 2021
Results reported at Wed Sep 29 14:49:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin704 350.888 -3.29 421804801 422064001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.5-0317 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   798.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

