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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin570
RA = 350.888, Dec = -3.29
tmin = 387072001, tmax = 387331201
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='809549', job_status='RUN', time_executed='2021-09-29 14:32:42.712757', time_epoch_executed='1632951162.71' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809549

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809549/ft1_4FGL_J2323.5-0317_daily_bin570.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809549/ft2_4FGL_J2323.5-0317_daily_bin570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809549/ft1_4FGL_J2323.5-0317_daily_bin570.fits outfile=/scratch/kocevski/809549/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin570.fits ra=350.888 dec=-3.29 rad=12.0 tmin=387072001.0 tmax=387331201.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.38
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809549/ft1_filtered_4FGL_J2323.5-0317_daily_bin570.fits" evtable="EVENTS" scfile=/scratch/kocevski/809549/ft2_4FGL_J2323.5-0317_daily_bin570.fits sctable="SC_DATA" outfile=/scratch/kocevski/809549/ltcube_387072001_387331201_4FGL_J2323.5-0317_daily_bin570.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/809549/ft2_4FGL_J2323.5-0317_daily_bin570.fits
.....................!
real 12.09
user 11.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809549/ft1_filtered_4FGL_J2323.5-0317_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/809549/ft2_4FGL_J2323.5-0317_daily_bin570.fits sctable="SC_DATA" expcube=/scratch/kocevski/809549/ltcube_387072001_387331201_4FGL_J2323.5-0317_daily_bin570.fits outfile=/scratch/kocevski/809549/expmap_387072001_387331201_4FGL_J2323.5-0317_daily_bin570.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/809549/ltcube_387072001_387331201_4FGL_J2323.5-0317_daily_bin570.fits
.....................!
real 191.00
user 185.53
sys 5.07

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/809549/ft1_filtered_4FGL_J2323.5-0317_daily_bin570.fits scfile=/scratch/kocevski/809549/ft2_4FGL_J2323.5-0317_daily_bin570.fits outfile=/scratch/kocevski/809549/cmap_387072001_387331201_4FGL_J2323.5-0317_daily_bin570.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809549/ft1_filtered_4FGL_J2323.5-0317_daily_bin570.fits scfile=/scratch/kocevski/809549/ft2_4FGL_J2323.5-0317_daily_bin570.fits outfile=/scratch/kocevski/809549/cmap_HighResolution_387072001_387331201_4FGL_J2323.5-0317_daily_bin570.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809549/ft1_filtered_4FGL_J2323.5-0317_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/809549/ft2_4FGL_J2323.5-0317_daily_bin570.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809549/Model_4FGL_J2323.5-0317_daily_bin570.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/809549/ft1_filtered_4FGL_J2323.5-0317_daily_bin570.fits.....................!
real 69.67
user 68.07
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.420       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4694       1.0000         .10000E-03   10000.    
     5 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2624       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2883       1.0000         .10000E-03   10000.    
    13 'Prefactor '    122.12       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.974       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7786       1.0000         .10000E-03   10000.    
    20 'Prefactor '    64.886       1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.897       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.9931       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11416E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96797       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98246       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=   7422.814     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2871 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.420        7.9811       -.10071E-06   -.15709E-04
   2  Prefactor     .10000E-03    13.861       -.11227E-04** at limit **
   3  Prefactor     .10000E-03    12.808        .11339E-04** at limit **
   4  Prefactor     1.4685        1.9614        .55454E-06   -.19553E-02
   5  norm          .10000E-03    8.7081       -.36360E-05** at limit **
   6  Prefactor     .10000E-03    38.163        .18256E-05** at limit **
   7  Prefactor     .10000E-03    9.0255        .10025E-05** at limit **
   8  Prefactor     .10000E-03    49.181        .13447E-04** at limit **
   9  Prefactor     .10000E-03    3.3220        .96556E-08** at limit **
  10  norm          2.2626        .96769       -.77585E-07   -.73077E-05
  11  norm          .10000E-03    2.3848       -.22843E-06** at limit **
  12  Prefactor     3.2837        10.348       -.16571E-05    .53230E-04
  13  Prefactor     122.12        62.613        .21069E-05    .20656E-04
  14  Prefactor     .10000E-03    54.067        .64146E-06** at limit **
  15  Prefactor     .10000E-03    3.1804        .53244E-07** at limit **
  16  Prefactor     .10000E-03    57.987       -.18975E-04** at limit **
  17  norm          .10000E-03    6.0290       -.18319E-06** at limit **
  18  Prefactor     36.972        62.669       -.19713E-05   -.11310E-04
  19  Prefactor     1.7795        2.8042       -.20983E-09   -.16330E-04
  20  Prefactor     64.877        45.798       -.67051E-05    .13747E-04
  21  Prefactor     45.898        27.347        .89108E-06    .51313E-04
  22  Prefactor     7.9952        14.983        .92912E-07   -.10565E-03
  23  Prefactor     .10000E-03    3.2615        .47773E-06** at limit **
  24  Normalizat    .96782        .18273        .81992E-06    .22940E-05
  25  Prefactor     .98255        .13196        .31088E-06    .94948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.4685
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.26263
  norm       = 0.0001
  Prefactor  = 3.28366
  Prefactor  = 122.12
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 36.9721
  Prefactor  = 1.7795
  Prefactor  = 64.8771
  Prefactor  = 45.8977
  Prefactor  = 7.99521
  Prefactor  = 0.000100002
  Normalizat = 0.967817
  Prefactor  = 0.982553
 **********
 **   18 **HESSE 
 **********

 FCN=   7422.814     FROM HESSE     STATUS=OK           423 CALLS     3294 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.420        7.9502        .12412E-03   -1.5062    
   2  Prefactor     .10000E-03    13.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4685        6.0071        .17728E-02   -1.5466    
   5  norm          .10000E-03    8.7803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    49.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3360        .15331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2626        .96614        .52711E-04   -1.5407    
  11  norm          .10000E-03    2.4033        .12987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2837        10.346        .22328E-03   -1.5346    
  13  Prefactor     122.12        62.623        .36420E-04   -1.3493    
  14  Prefactor     .10000E-03    54.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1842        .15000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    58.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.0352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.972        62.803        .65911E-04   -1.4491    
  19  Prefactor     1.7795        2.7743        .17317E-03   -1.5441    
  20  Prefactor     64.877        45.794        .49821E-04   -1.4095    
  21  Prefactor     45.898        27.355        .59182E-04   -1.4352    
  22  Prefactor     7.9952        15.032        .70909E-03   -1.5142    
  23  Prefactor     .10000E-03    7.4573        .30005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96782        .20988        .28537E-03   -.94117    
  25  Prefactor     .98255        .15271        .21259E-03   -.93313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.26656e-09
Minuit parameter uncertainties:
  1  7.95099
  2  4.70474e-05
  3  2.49275e-05
  4  5.94097
  5  1.80222e-05
  6  2.19579e-05
  7  4.75389e-06
  8  2.44477e-06
  9  4.7826e-06
  10  0.966146
  11  1.60904e-06
  12  10.3517
  13  62.6571
  14  8.02798e-06
  15  3.7229e-06
  16  0.000357523
  17  1.98643e-06
  18  62.9153
  19  2.77447
  20  45.8191
  21  27.3623
  22  15.0394
  23  0.000224813
  24  0.210056
  25  0.152781
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.263e+00  9.661e-01  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:  9.826e-01  1.528e-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.678e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.06
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 8.76e-08 +/- 3.74e-08
Energy Flux (Fixed Index): 3.59e-05 +/- 1.53e-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) = 7422.39314838
delta logL = 0.420369572644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7422.36432237
delta logL = 0.4491955868

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1070       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6150       1.0000          .0000       5.0000    
     3 'Normalizat'    .91315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0063       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=   7422.364     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      233 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1071        10.334        .71063E-02    .82316E-03
   2  alpha         2.6150        3.8068        .28928        .66280E-04
   3  Normalizat    .91318        .10703        .66168E-01    .65177E-04
   4  Prefactor     1.0063        .55967E-01    .43930E-01   -.64595E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10709
  alpha      = 2.615
  Normalizat = 0.913183
  Prefactor  = 1.0063
 **********
 **   18 **HESSE 
 **********

 FCN=   7422.364     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1071        .93596        .44185E-04   -1.5418    
   2  alpha         2.6150        .48474        .11242E-01    .46016E-01
   3  Normalizat    .91318        .21090        .29269E-03   -.95998    
   4  Prefactor     1.0063        .15373        .21018E-03   -.92520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67199e-11
Minuit parameter uncertainties:
  1  0.935969
  2  0.487837
  3  0.211094
  4  0.153797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809549': 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) = 7422.36432235
delta logL = 0.449195610726

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.107e+00  9.360e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.615e+00  4.878e-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.006e+00  1.538e-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.132e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.03
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.61 +/- 0.49
Photon Flux (Free Index): 1.32e-07 +/- 6.57e-08
Energy Flux (Free Index): 3.45e-05 +/- 1.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/809549/cmap_HighResolution_387072001_387331201_4FGL_J2323.5-0317_daily_bin570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.76e-08', energy_flux2='3.45e-05', photon_flux_error='3.74e-08', dlogl='4.49e-01', energy_flux='3.59e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-29 14:43:38.421175', photon_index_error2='0.49', photon_index2='2.61', ts='17.06', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='0.97', time_epoch_completed='1632951818.42', return_code='0', job_id='809549', GAL2='1.01', EG2='0.91', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='6.57e-08', ts2='18.03', photon_index='2.16' WHERE bin_id='570' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:43:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 809549: <4FGL_J2323.5-0317_daily_bin570> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin570> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:32 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:34 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:34 2021
Terminated at Wed Sep 29 14:43:39 2021
Results reported at Wed Sep 29 14:43:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin570 350.888 -3.29 387072001 387331201 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 :                                   653.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            787 sec.

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

