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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin603
RA = 350.888, Dec = -3.29
tmin = 395625601, tmax = 395884801
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='809595', job_status='RUN', time_executed='2021-09-29 14:32:16.657662', time_epoch_executed='1632951136.66' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809595

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809595/ft1_4FGL_J2323.5-0317_daily_bin603.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809595/ft2_4FGL_J2323.5-0317_daily_bin603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809595/ft1_4FGL_J2323.5-0317_daily_bin603.fits outfile=/scratch/kocevski/809595/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin603.fits ra=350.888 dec=-3.29 rad=12.0 tmin=395625601.0 tmax=395884801.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 4.52
user 4.28
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809595/ft2_4FGL_J2323.5-0317_daily_bin603.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/809595/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin603.fits evtable="EVENTS" outfile="/scratch/kocevski/809595/ft1_filtered_4FGL_J2323.5-0317_daily_bin603.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/809595/ft1_filtered_4FGL_J2323.5-0317_daily_bin603.fits" evtable="EVENTS" scfile=/scratch/kocevski/809595/ft2_4FGL_J2323.5-0317_daily_bin603.fits sctable="SC_DATA" outfile=/scratch/kocevski/809595/ltcube_395625601_395884801_4FGL_J2323.5-0317_daily_bin603.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/809595/ft2_4FGL_J2323.5-0317_daily_bin603.fits
.....................!
real 12.96
user 12.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809595/ft1_filtered_4FGL_J2323.5-0317_daily_bin603.fits evtable="EVENTS" scfile=/scratch/kocevski/809595/ft2_4FGL_J2323.5-0317_daily_bin603.fits sctable="SC_DATA" expcube=/scratch/kocevski/809595/ltcube_395625601_395884801_4FGL_J2323.5-0317_daily_bin603.fits outfile=/scratch/kocevski/809595/expmap_395625601_395884801_4FGL_J2323.5-0317_daily_bin603.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/809595/ltcube_395625601_395884801_4FGL_J2323.5-0317_daily_bin603.fits
.....................!
real 192.87
user 187.61
sys 4.85

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/809595/ft1_filtered_4FGL_J2323.5-0317_daily_bin603.fits scfile=/scratch/kocevski/809595/ft2_4FGL_J2323.5-0317_daily_bin603.fits outfile=/scratch/kocevski/809595/cmap_395625601_395884801_4FGL_J2323.5-0317_daily_bin603.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809595/ft1_filtered_4FGL_J2323.5-0317_daily_bin603.fits scfile=/scratch/kocevski/809595/ft2_4FGL_J2323.5-0317_daily_bin603.fits outfile=/scratch/kocevski/809595/cmap_HighResolution_395625601_395884801_4FGL_J2323.5-0317_daily_bin603.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809595/ft1_filtered_4FGL_J2323.5-0317_daily_bin603.fits evtable="EVENTS" scfile=/scratch/kocevski/809595/ft2_4FGL_J2323.5-0317_daily_bin603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809595/Model_4FGL_J2323.5-0317_daily_bin603.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/809595/ft1_filtered_4FGL_J2323.5-0317_daily_bin603.fits....................!
real 55.14
user 53.75
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9262       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.111       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .20556E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0536       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.186       1.0000         .10000E-03   10000.    
     8 'Prefactor '    116.61       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11583E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0814       1.0000         .10000E-03   10000.    
    11 'norm      '    .11264E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28552E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.112       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.624       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.452       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94518       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86070       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=   5449.792     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2893 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9302        9.4673        .12411E-07   -.68882E-04
   2  Prefactor     19.127        40.635       -.94401E-05   -.17040E-05
   3  Prefactor     .10000E-03    31.699        .69102E-05** at limit **
   4  Prefactor     .10000E-03    5.4446       -.35727E-07** at limit **
   5  norm          .10068E-03    6.8986       -.22012E-05** at limit **
   6  Prefactor     .99636        19.554       -.64985E-06    .22848E-03
   7  Prefactor     23.215        25.810       -.12985E-04    .73349E-04
   8  Prefactor     116.70        63.047        .15925E-04    .45729E-04
   9  Prefactor     .10000E-03    7.0084       -.77327E-06** at limit **
  10  norm          3.0817        1.2644       -.87569E-07    .32729E-03
  11  norm          .10000E-03    7.4248       -.78598E-06** at limit **
  12  Prefactor     .10000E-03    12.736        .15449E-06** at limit **
  13  Prefactor     .10000E-03    20.655        .15655E-05** at limit **
  14  Prefactor     .10000E-03    693.97        .14499E-04** at limit **
  15  Prefactor     16.115        12.557       -.24691E-06   -.10218E-04
  16  Prefactor     .10000E-03    15.717       -.45330E-06** at limit **
  17  norm          .10000E-03    7.8216        .33147E-07** at limit **
  18  Prefactor     .10000E-03    27.769       -.85355E-05** at limit **
  19  Prefactor     .10000E-03    2.3968       -.22910E-07** at limit **
  20  Prefactor     44.633        47.685        .44540E-05   -.17808E-04
  21  Prefactor     .10000E-03    31.593        .67346E-05** at limit **
  22  Prefactor     .10000E-03    9.3236       -.28074E-07** at limit **
  23  Prefactor     11.450        7.9920       -.35515E-07   -.40628E-04
  24  Normalizat    .94530        .21568       -.20972E-05    .27665E-03
  25  Prefactor     .86071        .14557        .19141E-05    .10420E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.93019
  Prefactor  = 19.1272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100682
  Prefactor  = 0.996357
  Prefactor  = 23.2152
  Prefactor  = 116.695
  Prefactor  = 0.000100001
  norm       = 3.08173
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1146
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.6331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4498
  Normalizat = 0.945296
  Prefactor  = 0.86071
 **********
 **   18 **HESSE 
 **********

 FCN=   5449.792     FROM HESSE     STATUS=OK           425 CALLS     3318 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9302        9.4555        .14242E-03   -1.5145    
   2  Prefactor     19.127        40.599        .91619E-04   -1.4833    
   3  Prefactor     .10000E-03    31.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4550        .16823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10068E-03    43.647        .36997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .99636        186.57        .62406E-02   -1.5508    
   7  Prefactor     23.215        25.824        .83187E-04   -1.4744    
   8  Prefactor     116.70        63.303        .18630E-03   -1.3543    
   9  Prefactor     .10000E-03    7.0543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0817        1.2622        .50011E-04   -1.5357    
  11  norm          .10000E-03    7.6356        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    696.45        .19881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.115        12.543        .99781E-04   -1.4905    
  16  Prefactor     .10000E-03    15.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.8230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.4155        .11137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     44.633        47.802        .60017E-04   -1.4371    
  21  Prefactor     .10000E-03    31.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.3713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.450        8.0001        .11838E-03   -1.5031    
  24  Normalizat    .94530        .24907        .28245E-03   -.94886    
  25  Prefactor     .86071        .16947        .21138E-03   -.97528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06439e-08
Minuit parameter uncertainties:
  1  9.45728
  2  40.6573
  3  5.7345e-05
  4  8.67482e-06
  5  0.0109169
  6  27.3536
  7  25.836
  8  63.3401
  9  0.00020566
  10  1.26222
  11  0.000209676
  12  1.30515e-05
  13  3.9269e-05
  14  0.000325881
  15  12.5446
  16  5.35317e-06
  17  5.58253e-09
  18  7.32384e-05
  19  3.47601e-06
  20  47.8432
  21  0.000133772
  22  1.65392e-06
  23  8.00082
  24  0.24938
  25  0.169578
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.082e+00  1.262e+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:  8.607e-01  1.696e-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:  9.453e-01  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.18
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 4.88e-08
Energy Flux (Fixed Index): 4.89e-05 +/- 2.00e-05

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) = 5449.7303154
delta logL = 0.0617747750621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5449.72391416
delta logL = 0.0681760158004

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9533       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9908       1.0000          .0000       5.0000    
     3 'Normalizat'    .96664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85326       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.

 FCN=   5449.724     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9532        1.3500        .59078E-02    .41614E-04
   2  alpha         1.9907        .42062        .27840       -.13926E-04
   3  Normalizat    .96667        .20421        .45748E-01    .13968E-04
   4  Prefactor     .85324        .14454        .44406E-01    .80746E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.95316
  alpha      = 1.99071
  Normalizat = 0.966669
  Prefactor  = 0.853238
 **********
 **   18 **HESSE 
 **********

 FCN=   5449.724     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9532        1.3490        .51513E-04   -1.5364    
   2  alpha         1.9907        .46017        .11124E-01   -.20515    
   3  Normalizat    .96667        .23676        .27985E-03   -.94156    
   4  Prefactor     .85324        .16635        .21232E-03   -.97795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94411e-13
Minuit parameter uncertainties:
  1  1.34904
  2  0.462926
  3  0.237018
  4  0.166453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809595': 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) = 5449.72391413
delta logL = 0.0681760492253

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.953e+00  1.349e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.991e+00  4.629e-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:  8.532e-01  1.665e-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:  9.667e-01  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.32
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.99 +/- 0.46
Photon Flux (Free Index): 9.85e-08 +/- 6.83e-08
Energy Flux (Free Index): 5.15e-05 +/- 2.39e-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/809595/cmap_HighResolution_395625601_395884801_4FGL_J2323.5-0317_daily_bin603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='5.15e-05', photon_flux_error='4.88e-08', dlogl='6.82e-02', energy_flux='4.89e-05', photon_flux2='9.85e-08', job_status='DONE', time_completed='2021-09-29 14:41:47.750770', photon_index_error2='0.46', photon_index2='1.99', ts='23.18', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.39e-05', EG='0.95', time_epoch_completed='1632951707.75', return_code='0', job_id='809595', GAL2='0.85', EG2='0.97', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='6.83e-08', ts2='23.32', photon_index='2.16' WHERE bin_id='603' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:41:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 809595: <4FGL_J2323.5-0317_daily_bin603> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin603> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:35 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:38 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:30:38 2021
Terminated at Wed Sep 29 14:41:48 2021
Results reported at Wed Sep 29 14:41:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin603 350.888 -3.29 395625601 395884801 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 :                                   568.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             314.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            673 sec.

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

