/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 51 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 = 7559
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin351
RA = 350.888, Dec = -3.29
tmin = 330307201, tmax = 330566401
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='808370', job_status='RUN', time_executed='2021-09-29 14:26:37.509247', time_epoch_executed='1632950797.51' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808370

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808370/ft1_4FGL_J2323.5-0317_daily_bin351.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808370/ft2_4FGL_J2323.5-0317_daily_bin351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808370/ft1_4FGL_J2323.5-0317_daily_bin351.fits outfile=/scratch/kocevski/808370/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin351.fits ra=350.888 dec=-3.29 rad=12.0 tmin=330307201.0 tmax=330566401.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.83
user 3.59
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808370/ft1_filtered_4FGL_J2323.5-0317_daily_bin351.fits" evtable="EVENTS" scfile=/scratch/kocevski/808370/ft2_4FGL_J2323.5-0317_daily_bin351.fits sctable="SC_DATA" outfile=/scratch/kocevski/808370/ltcube_330307201_330566401_4FGL_J2323.5-0317_daily_bin351.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/808370/ft2_4FGL_J2323.5-0317_daily_bin351.fits
.....................!
real 11.73
user 11.43
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808370/ft1_filtered_4FGL_J2323.5-0317_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/808370/ft2_4FGL_J2323.5-0317_daily_bin351.fits sctable="SC_DATA" expcube=/scratch/kocevski/808370/ltcube_330307201_330566401_4FGL_J2323.5-0317_daily_bin351.fits outfile=/scratch/kocevski/808370/expmap_330307201_330566401_4FGL_J2323.5-0317_daily_bin351.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/808370/ltcube_330307201_330566401_4FGL_J2323.5-0317_daily_bin351.fits
.....................!
real 189.77
user 185.51
sys 3.94

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/808370/ft1_filtered_4FGL_J2323.5-0317_daily_bin351.fits scfile=/scratch/kocevski/808370/ft2_4FGL_J2323.5-0317_daily_bin351.fits outfile=/scratch/kocevski/808370/cmap_330307201_330566401_4FGL_J2323.5-0317_daily_bin351.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/808370/ft1_filtered_4FGL_J2323.5-0317_daily_bin351.fits scfile=/scratch/kocevski/808370/ft2_4FGL_J2323.5-0317_daily_bin351.fits outfile=/scratch/kocevski/808370/cmap_HighResolution_330307201_330566401_4FGL_J2323.5-0317_daily_bin351.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/808370/ft1_filtered_4FGL_J2323.5-0317_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/808370/ft2_4FGL_J2323.5-0317_daily_bin351.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808370/Model_4FGL_J2323.5-0317_daily_bin351.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/808370/ft1_filtered_4FGL_J2323.5-0317_daily_bin351.fits.....................!
real 57.50
user 56.17
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8888       1.0000         .10000E-03   10000.    
     5 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.789       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.307       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    94.934       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1172       1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.886       1.0000         .10000E-03   10000.    
    17 'norm      '    6.2601       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10711E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    64.844       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .61775       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5310       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67590       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.

 FCN=   5505.472     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2912 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3076       -.40524E-07** at limit **
   2  Prefactor     .10000E-03    15.692       -.19745E-05** at limit **
   3  Prefactor     .10000E-03    13.894        .27617E-05** at limit **
   4  Prefactor     2.8879        8.8146       -.20371E-05   -.22843E-03
   5  norm          .10000E-03    12.752       -.16574E-05** at limit **
   6  Prefactor     .10000E-03    48.957        .37923E-05** at limit **
   7  Prefactor     25.801        30.032        .12635E-04    .65752E-04
   8  Prefactor     25.318        38.752        .39302E-05    .82669E-05
   9  Prefactor     .10000E-03    3.2427       -.16655E-06** at limit **
  10  norm          .10000E-03    .28502        .65317E-07** at limit **
  11  norm          .10000E-03    1.3650       -.39067E-07** at limit **
  12  Prefactor     .10000E-03    3.0439        .24817E-07** at limit **
  13  Prefactor     94.773        83.709       -.13111E-03    .16160E-04
  14  Prefactor     .10000E-03    62.125       -.11574E-04** at limit **
  15  Prefactor     8.1433        17.885        .17663E-04    .25107E-03
  16  Prefactor     58.884        33.753        .15740E-06    .36274E-04
  17  norm          6.2294        24.838       -.18612E-04    .35937E-04
  18  Prefactor     .10000E-03    143.16        .31178E-04** at limit **
  19  Prefactor     .10000E-03    2.5216        .68161E-08** at limit **
  20  Prefactor     64.850        50.240        .10069E-04    .92309E-04
  21  Prefactor     .10000E-03    10.268       -.88680E-07** at limit **
  22  Prefactor     .62714        9.6041       -.77613E-05    .91712E-03
  23  Prefactor     .10000E-03    3.0696       -.97813E-07** at limit **
  24  Normalizat    1.5305        .22479        .56504E-05    .17443E-03
  25  Prefactor     .67631        .15585        .26989E-05    .39375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.88786
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.801
  Prefactor  = 25.3179
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.7729
  Prefactor  = 0.0001
  Prefactor  = 8.14327
  Prefactor  = 58.8842
  norm       = 6.22943
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 64.8499
  Prefactor  = 0.0001
  Prefactor  = 0.627144
  Prefactor  = 0.0001
  Normalizat = 1.53049
  Prefactor  = 0.676312
 **********
 **   18 **HESSE 
 **********

 FCN=   5505.472     FROM HESSE     STATUS=OK           417 CALLS     3329 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3088        .11008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8879        8.8019        .23910E-03   -1.5368    
   5  norm          .10000E-03    12.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.801        30.069        .78884E-04   -1.4692    
   8  Prefactor     25.318        38.817        .79630E-04   -1.4701    
   9  Prefactor     .10000E-03    3.2448        .13037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .29030        .38630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3661        .84654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.0455        .12642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     94.773        83.794        .20625E-03   -1.3758    
  14  Prefactor     .10000E-03    62.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.1433        17.866        .14072E-03   -1.5137    
  16  Prefactor     58.884        33.753        .52282E-04   -1.4172    
  17  norm          6.2294        24.785        .16044E-03   -1.5209    
  18  Prefactor     .10000E-03    144.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5487        .11483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     64.850        50.330        .49837E-04   -1.4096    
  21  Prefactor     .10000E-03    10.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .62714        40.148        .44101E-02   -1.5550    
  23  Prefactor     .10000E-03    3.0886        .12695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5305        .26609        .24671E-03   -.76925    
  25  Prefactor     .67631        .18286        .25231E-03   -1.0446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60747e-08
Minuit parameter uncertainties:
  1  4.37458e-06
  2  1.53149e-05
  3  2.34767e-05
  4  8.80585
  5  0.000106523
  6  0.000305415
  7  30.0862
  8  38.856
  9  3.00058e-05
  10  3.43646e-06
  11  5.35352e-06
  12  3.7339e-06
  13  83.8986
  14  1.51842e-05
  15  17.8777
  16  33.7638
  17  24.8261
  18  0.00163008
  19  1.6522e-06
  20  50.3633
  21  3.44973e-05
  22  10.0419
  23  1.60129e-05
  24  0.266331
  25  0.183018
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  3.436e-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:  6.763e-01  1.830e-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.530e+00  2.663e-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: 5.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808370/likelihoodResults_330307201_330566401_4FGL_J2323.5-0317_daily_bin351.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) = 5505.47259329
delta logL = -0.000108359314254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5505.27217975
delta logL = 0.200305180227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23449E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70181       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=   5505.272     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      305 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23441E-01    .40126E-01    .17656E-04   -.83642E-03
   2  alpha         5.0000        3.8326        .10259    ** at limit **
   3  Normalizat    1.4748        .26664        .25038E-03   -.46859E-04
   4  Prefactor     .70181        .18500        .24808E-03   -.43810E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0234412
  alpha      = 5
  Normalizat = 1.47477
  Prefactor  = 0.701813
 **********
 **   18 **HESSE 
 **********

 FCN=   5505.272     FROM HESSE     STATUS=OK            23 CALLS      328 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23441E-01    .39735E-01    .70624E-06   -1.5677    
   2  alpha         5.0000        3.8358        .41037E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4748        .26680        .50076E-04   -.78490    
   4  Prefactor     .70181        .18515        .99233E-05   -1.0346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0394e-12
Minuit parameter uncertainties:
  1  0.0397355
  2  4.13092e-06
  3  0.267058
  4  0.185316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808370': 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) = 5505.27217973
delta logL = 0.200305203572

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.344e-02  3.974e-02  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  5.000e+00  4.131e-06  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:  7.018e-01  1.853e-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.475e+00  2.671e-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/808370/cmap_HighResolution_330307201_330566401_4FGL_J2323.5-0317_daily_bin351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', job_status='DONE', photon_flux_upper_limit='5.60e-08', time_completed='2021-09-29 14:37:35.834314', job_id='808370', GAL2='0.70', fit_tolerance='1e-08', EG2='1.47', EG='1.53', time_epoch_completed='1632951455.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.00e-01', ts2='0.45', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='351' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:37:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 808370: <4FGL_J2323.5-0317_daily_bin351> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin351> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:35 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:37 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:25:37 2021
Terminated at Wed Sep 29 14:37:36 2021
Results reported at Wed Sep 29 14:37:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin351 350.888 -3.29 330307201 330566401 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 :                                   636.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            721 sec.

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

