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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin734
RA = 350.888, Dec = -3.29
tmin = 429580801, tmax = 429840001
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='810887', job_status='RUN', time_executed='2021-09-29 14:36:15.042514', time_epoch_executed='1632951375.04' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810887

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810887/ft1_4FGL_J2323.5-0317_daily_bin734.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810887/ft2_4FGL_J2323.5-0317_daily_bin734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810887/ft1_4FGL_J2323.5-0317_daily_bin734.fits outfile=/scratch/kocevski/810887/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin734.fits ra=350.888 dec=-3.29 rad=12.0 tmin=429580801.0 tmax=429840001.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.25
user 5.99
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/810887/ft2_4FGL_J2323.5-0317_daily_bin734.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/810887/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin734.fits evtable="EVENTS" outfile="/scratch/kocevski/810887/ft1_filtered_4FGL_J2323.5-0317_daily_bin734.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810887/ft1_filtered_4FGL_J2323.5-0317_daily_bin734.fits" evtable="EVENTS" scfile=/scratch/kocevski/810887/ft2_4FGL_J2323.5-0317_daily_bin734.fits sctable="SC_DATA" outfile=/scratch/kocevski/810887/ltcube_429580801_429840001_4FGL_J2323.5-0317_daily_bin734.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/810887/ft2_4FGL_J2323.5-0317_daily_bin734.fits
.....................!
real 12.07
user 11.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810887/ft1_filtered_4FGL_J2323.5-0317_daily_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/810887/ft2_4FGL_J2323.5-0317_daily_bin734.fits sctable="SC_DATA" expcube=/scratch/kocevski/810887/ltcube_429580801_429840001_4FGL_J2323.5-0317_daily_bin734.fits outfile=/scratch/kocevski/810887/expmap_429580801_429840001_4FGL_J2323.5-0317_daily_bin734.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/810887/ltcube_429580801_429840001_4FGL_J2323.5-0317_daily_bin734.fits
.....................!
real 190.48
user 185.21
sys 4.88

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/810887/ft1_filtered_4FGL_J2323.5-0317_daily_bin734.fits scfile=/scratch/kocevski/810887/ft2_4FGL_J2323.5-0317_daily_bin734.fits outfile=/scratch/kocevski/810887/cmap_429580801_429840001_4FGL_J2323.5-0317_daily_bin734.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810887/ft1_filtered_4FGL_J2323.5-0317_daily_bin734.fits scfile=/scratch/kocevski/810887/ft2_4FGL_J2323.5-0317_daily_bin734.fits outfile=/scratch/kocevski/810887/cmap_HighResolution_429580801_429840001_4FGL_J2323.5-0317_daily_bin734.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810887/ft1_filtered_4FGL_J2323.5-0317_daily_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/810887/ft2_4FGL_J2323.5-0317_daily_bin734.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810887/Model_4FGL_J2323.5-0317_daily_bin734.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/810887/ft1_filtered_4FGL_J2323.5-0317_daily_bin734.fits.....................!
real 42.76
user 41.47
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/810887/ft1_filtered_4FGL_J2323.5-0317_daily_bin734.fits', '/scratch/kocevski/810887/ft2_4FGL_J2323.5-0317_daily_bin734.fits', expMap='/scratch/kocevski/810887/expmap_429580801_429840001_4FGL_J2323.5-0317_daily_bin734.fits', expCube='/scratch/kocevski/810887/ltcube_429580801_429840001_4FGL_J2323.5-0317_daily_bin734.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/810887/Model_4FGL_J2323.5-0317_daily_bin734.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/810887/ft1_filtered_4FGL_J2323.5-0317_daily_bin734.fits
Spacecraft file(s): /scratch/kocevski/810887/ft2_4FGL_J2323.5-0317_daily_bin734.fits
Exposure map: /scratch/kocevski/810887/expmap_429580801_429840001_4FGL_J2323.5-0317_daily_bin734.fits
Exposure cube: /scratch/kocevski/810887/ltcube_429580801_429840001_4FGL_J2323.5-0317_daily_bin734.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/810887/Model_4FGL_J2323.5-0317_daily_bin734.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) = 4002.16917756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.055       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5234       1.0000         .10000E-03   10000.    
     5 'norm      '    .74949E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19038E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.456       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.383       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25492E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.488       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10546E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7673       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0034       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6709       1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.321       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0319       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1835       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=   4002.108     FROM MIGRAD    STATUS=CONVERGED   1046 CALLS     3805 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9607        .16269E-02** at limit **
   2  Prefactor     25.014        48.585        .80029E-04    .13780E-04
   3  Prefactor     .10000E-03    18.622        .18142E-02** at limit **
   4  Prefactor     3.5203        11.950        .10768E-02    .48829E-05
   5  norm          .10042E-03    12.669        .64924E-01** at limit **
   6  Prefactor     .10000E-03    83.749        .15158    ** at limit **
   7  Prefactor     .10000E-03    14.052        .18142E-02** at limit **
   8  Prefactor     13.443        46.972        .10919E-03    .10151E-04
   9  Prefactor     .10000E-03    4.4446        .13014E-02** at limit **
  10  norm          .10000E-03    .96671        .94803E-03** at limit **
  11  norm          .10000E-03    3.3077        .11211E-02** at limit **
  12  Prefactor     .10000E-03    7.8969        .17343E-02** at limit **
  13  Prefactor     24.369        65.960        .81122E-04    .11071E-04
  14  Prefactor     .10000E-03    181.75        .21457E-02** at limit **
  15  Prefactor     22.493        22.384        .84465E-04    .10290E-03
  16  Prefactor     .10000E-03    12.420        .18142E-02** at limit **
  17  norm          .10000E-03    14.643        .18142E-02** at limit **
  18  Prefactor     .10000E-03    94.434        .18142E-02** at limit **
  19  Prefactor     2.7612        7.5603        .21937E-03    .17504E-03
  20  Prefactor     .10000E-03    35.711        .18142E-02** at limit **
  21  Prefactor     5.9865        43.399        .16388E-03   -.23240E-05
  22  Prefactor     5.6661        20.262        .16868E-03   -.12907E-04
  23  Prefactor     30.319        13.387        .72763E-04    .87496E-05
  24  Normalizat    1.0318        .31307        .30323E-03    .60756E-04
  25  Prefactor     1.1838        .23263        .21656E-03    .11333E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.0135
  Prefactor  = 0.0001
  Prefactor  = 3.52026
  norm       = 0.000100419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4431
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3695
  Prefactor  = 0.000100001
  Prefactor  = 22.4928
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.76119
  Prefactor  = 0.0001
  Prefactor  = 5.98645
  Prefactor  = 5.66606
  Prefactor  = 30.319
  Normalizat = 1.03176
  Prefactor  = 1.18384
 **********
 **   18 **HESSE 
 **********

 FCN=   4002.108     FROM HESSE     STATUS=OK           423 CALLS     4228 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9615        .32538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.014        48.580        .32012E-05   -1.4707    
   3  Prefactor     .10000E-03    18.622        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5203        11.948        .43073E-04   -1.5333    
   5  norm          .10042E-03    11.737        .69039E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    86.609        .14837       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.053        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.443        46.980        .43678E-05   -1.4975    
   9  Prefactor     .10000E-03    4.4447        .26029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .96770        .18961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.3079        .22422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.8976        .34686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.369        65.932        .32449E-05   -1.4720    
  14  Prefactor     .10000E-03    181.75        .42914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.493        22.365        .33786E-05   -1.4759    
  16  Prefactor     .10000E-03    12.420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.643        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    94.442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7612        7.5527        .87748E-05   -1.5376    
  20  Prefactor     .10000E-03    35.712        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.9865        43.401        .65551E-05   -1.5219    
  22  Prefactor     5.6661        20.260        .67473E-05   -1.5232    
  23  Prefactor     30.319        13.387        .29105E-05   -1.4606    
  24  Normalizat    1.0318        .31330        .12129E-04   -.91974    
  25  Prefactor     1.1838        .23279        .43313E-04   -.86830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31549e-10
Minuit parameter uncertainties:
  1  4.73679e-05
  2  48.6574
  3  1.02814e-05
  4  11.9559
  5  0.00443487
  6  0.000379232
  7  3.6014e-05
  8  47.1094
  9  3.66198e-05
  10  5.1751e-06
  11  6.89855e-06
  12  5.63413e-06
  13  66.1304
  14  0.00099088
  15  22.3731
  16  3.19981e-06
  17  4.99725e-05
  18  0.000106305
  19  7.55534
  20  5.7824e-05
  21  32.2705
  22  20.2848
  23  13.388
  24  0.313861
  25  0.232996
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  5.175e-06  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.184e+00  2.330e-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:  1.032e+00  3.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/810887/likelihoodResults_429580801_429840001_4FGL_J2323.5-0317_daily_bin734.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) = 4002.11277566
delta logL = -0.00490038583393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4002.10787726
delta logL = -1.98932002604e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10988E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1193       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1840       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4002.108     FROM MIGRAD    STATUS=FAILED       122 CALLS      281 TOTAL
                     EDM=   .58E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    329.52        .11468E-02** at limit **
   2  alpha         1.4411        2.8746        .50000       -.11936E-04
   3  Normalizat    1.0318        .72077E-01    .30323E-03   -.36218E-04
   4  Prefactor     1.1838        .55175E-01    .21656E-03   -.22284E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4002.108     FROM SIMPLEX   STATUS=UNCHANGED    201 CALLS      482 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    329.52        .35447E-03** at limit **
   2  alpha         1.4411        2.8746        .13641E-05   -.11936E-04
   3  Normalizat    1.0318        .72077E-01    .95667E-08   -.36218E-04
   4  Prefactor     1.1838        .55175E-01    .95290E-09   -.22284E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4002.108     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      525 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.685         .0000    ** at limit **
   2  alpha         1.4410        2.8932         .0000       -.11997E-04
   3  Normalizat    1.0318        .29822         .0000       -.36461E-04
   4  Prefactor     1.1838        .22781         .0000       -.22573E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.44097
  Normalizat = 1.03176
  Prefactor  = 1.18384
 **********
 **   18 **HESSE 
 **********

 FCN=   4002.108     FROM HESSE     STATUS=OK            27 CALLS      552 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7858        .45872E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4410        2.6017        .50000       -.43743    
   3  Normalizat    1.0318        .29832        .24258E-05   -.91974    
   4  Prefactor     1.1838        .22786        .17325E-05   -.86830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50063e-08
Minuit parameter uncertainties:
  1  2.24811e-05
  2  48.0196
  3  0.298807
  4  0.22805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810887': 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) = 4002.10783725
delta logL = 3.80279207093e-05

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  2.248e-05  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.441e+00  4.802e+01  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.184e+00  2.281e-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:  1.032e+00  2.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.888 -3.290

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/810887/cmap_HighResolution_429580801_429840001_4FGL_J2323.5-0317_daily_bin734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-05', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-29 14:46:30.109230', job_id='810887', GAL2='1.18', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632951990.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='3.80e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='734' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:46:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 810887: <4FGL_J2323.5-0317_daily_bin734> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin734 350.888 -3.29 429580801 429840001 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 :                                   604.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            672 sec.

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

