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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin343
RA = 350.888, Dec = -3.29
tmin = 328233601, tmax = 328492801
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='808359', job_status='RUN', time_executed='2021-09-29 14:29:44.287494', time_epoch_executed='1632950984.29' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808359

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808359/ft1_4FGL_J2323.5-0317_daily_bin343.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808359/ft2_4FGL_J2323.5-0317_daily_bin343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808359/ft1_4FGL_J2323.5-0317_daily_bin343.fits outfile=/scratch/kocevski/808359/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin343.fits ra=350.888 dec=-3.29 rad=12.0 tmin=328233601.0 tmax=328492801.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.90
user 3.68
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808359/ft1_filtered_4FGL_J2323.5-0317_daily_bin343.fits" evtable="EVENTS" scfile=/scratch/kocevski/808359/ft2_4FGL_J2323.5-0317_daily_bin343.fits sctable="SC_DATA" outfile=/scratch/kocevski/808359/ltcube_328233601_328492801_4FGL_J2323.5-0317_daily_bin343.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/808359/ft2_4FGL_J2323.5-0317_daily_bin343.fits
.....................!
real 11.65
user 11.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808359/ft1_filtered_4FGL_J2323.5-0317_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/808359/ft2_4FGL_J2323.5-0317_daily_bin343.fits sctable="SC_DATA" expcube=/scratch/kocevski/808359/ltcube_328233601_328492801_4FGL_J2323.5-0317_daily_bin343.fits outfile=/scratch/kocevski/808359/expmap_328233601_328492801_4FGL_J2323.5-0317_daily_bin343.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/808359/ltcube_328233601_328492801_4FGL_J2323.5-0317_daily_bin343.fits
.....................!
real 192.24
user 186.64
sys 5.25

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/808359/ft1_filtered_4FGL_J2323.5-0317_daily_bin343.fits scfile=/scratch/kocevski/808359/ft2_4FGL_J2323.5-0317_daily_bin343.fits outfile=/scratch/kocevski/808359/cmap_328233601_328492801_4FGL_J2323.5-0317_daily_bin343.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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808359/ft1_filtered_4FGL_J2323.5-0317_daily_bin343.fits scfile=/scratch/kocevski/808359/ft2_4FGL_J2323.5-0317_daily_bin343.fits outfile=/scratch/kocevski/808359/cmap_HighResolution_328233601_328492801_4FGL_J2323.5-0317_daily_bin343.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39311E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8549       1.0000         .10000E-03   10000.    
     5 'norm      '    11.522       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .50169E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .51597       1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7623       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.311       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1282       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.145       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.094       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.285       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.0075       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87879       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90433       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=   7123.893     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2899 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10038E-03    15.101        .71915E-05** at limit **
   2  Prefactor     .10000E-03    18.500       -.11085E-05** at limit **
   3  Prefactor     .10000E-03    11.638        .53495E-06** at limit **
   4  Prefactor     3.8567        5.4621        .29443E-05    .10880E-02
   5  norm          11.522        10.239        .66862E-06    .19016E-03
   6  Prefactor     .10000E-03    52.802        .65339E-06** at limit **
   7  Prefactor     .10000E-03    6.9995        .14296E-05** at limit **
   8  Prefactor     .10000E-03    17.752        .77614E-06** at limit **
   9  Prefactor     .10000E-03    4.2962        .19202E-05** at limit **
  10  norm          .51604        .63801        .92189E-07    .51846E-03
  11  norm          .10000E-03    4.4730       -.59976E-07** at limit **
  12  Prefactor     9.7620        7.9230       -.16427E-07   -.33708E-04
  13  Prefactor     .10000E-03    7.7095       -.24536E-07** at limit **
  14  Prefactor     58.310        81.562        .12073E-05    .52007E-04
  15  Prefactor     .10000E-03    6.3609       -.53477E-06** at limit **
  16  Prefactor     7.1266        24.225        .71844E-06    .68929E-05
  17  norm          .10000E-03    7.9785       -.99175E-06** at limit **
  18  Prefactor     14.141        31.119        .13973E-05    .27751E-04
  19  Prefactor     .10000E-03    1.1149        .11403E-07** at limit **
  20  Prefactor     22.093        27.249        .34065E-06    .34982E-04
  21  Prefactor     12.284        21.352        .19635E-06    .60034E-05
  22  Prefactor     .10000E-03    3.9756       -.10423E-07** at limit **
  23  Prefactor     7.0074        6.0224        .10006E-05    .43654E-03
  24  Normalizat    .87878        .15892       -.24134E-06   -.61512E-04
  25  Prefactor     .90433        .12033       -.29144E-06   -.31198E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.85673
  norm       = 11.5218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.516041
  norm       = 0.0001
  Prefactor  = 9.76201
  Prefactor  = 0.0001
  Prefactor  = 58.3099
  Prefactor  = 0.0001
  Prefactor  = 7.12657
  norm       = 0.0001
  Prefactor  = 14.1406
  Prefactor  = 0.0001
  Prefactor  = 22.0932
  Prefactor  = 12.2844
  Prefactor  = 0.0001
  Prefactor  = 7.0074
  Normalizat = 0.878782
  Prefactor  = 0.904325
 **********
 **   18 **HESSE 
 **********

 FCN=   7123.893     FROM HESSE     STATUS=OK           431 CALLS     3330 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10038E-03    51.818        .37898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8567        5.8657        .10277E-02   -1.5315    
   5  norm          11.522        10.285        .59011E-03   -1.5029    
   6  Prefactor     .10000E-03    53.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.891        .31554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .51604        .60439        .71382E-03   -1.5564    
  11  norm          .10000E-03    4.6543        .34765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.7620        7.9165        .12825E-03   -1.5083    
  13  Prefactor     .10000E-03    7.7100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     58.310        81.620        .52538E-04   -1.4179    
  15  Prefactor     .10000E-03    6.4553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.1266        24.192        .15025E-03   -1.5174    
  17  norm          .10000E-03    7.9942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.141        31.135        .10650E-03   -1.4956    
  19  Prefactor     .10000E-03    1.1270        .86975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.093        27.246        .85216E-04   -1.4768    
  21  Prefactor     12.284        21.332        .11429E-03   -1.5007    
  22  Prefactor     .10000E-03    3.9863        .16435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.0074        6.0476        .75773E-03   -1.5178    
  24  Normalizat    .87878        .18416        .25979E-03   -.97210    
  25  Prefactor     .90433        .14092        .19563E-03   -.95990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.06714e-09
Minuit parameter uncertainties:
  1  0.00888302
  2  6.37904e-05
  3  1.78794e-05
  4  5.86655
  5  10.2864
  6  6.30374e-05
  7  2.99637e-05
  8  2.66222e-05
  9  2.2226e-05
  10  0.604396
  11  2.06423e-05
  12  7.91734
  13  1.36297e-06
  14  81.7767
  15  1.02658e-05
  16  24.2253
  17  1.72113e-05
  18  31.1711
  19  7.60715e-07
  20  27.2612
  21  21.3456
  22  7.31521e-07
  23  6.0481
  24  0.184289
  25  0.140974
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  5.160e-01  6.044e-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.043e-01  1.410e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  8.788e-01  1.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.00e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 8.18e-06 +/- 9.58e-06

TS (Fixed Index): 1.03
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 7.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808359/likelihoodResults_328233601_328492801_4FGL_J2323.5-0317_daily_bin343.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) = 7123.89279247
delta logL = 0.000533353333594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7123.89277844
delta logL = 0.000547381623619

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51615       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1906       1.0000          .0000       5.0000    
     3 'Normalizat'    .87802       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90465       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=   7123.893     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51609        21.572        .11337E-01    .13510E-02
   2  alpha         2.1904        2.8166        .41557        .27416E-05
   3  Normalizat    .87802        .50952E-01    .44620E-01    .17953E-04
   4  Prefactor     .90465        .41380E-01    .45064E-01    .63423E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.516086
  alpha      = 2.19044
  Normalizat = 0.878023
  Prefactor  = 0.904648
 **********
 **   18 **HESSE 
 **********

 FCN=   7123.893     FROM HESSE     STATUS=OK            35 CALLS      236 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51609        .60346        .71011E-03   -1.5564    
   2  alpha         2.1904        .89906        .24066E-01   -.12414    
   3  Normalizat    .87802        .18251        .25989E-03   -.97237    
   4  Prefactor     .90465        .13920        .19560E-03   -.95979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83986e-11
Minuit parameter uncertainties:
  1  0.603469
  2  0.920001
  3  0.182643
  4  0.139259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808359': 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) = 7123.89277841
delta logL = 0.000547413204913

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  5.161e-01  6.035e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.190e+00  9.200e-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:  9.046e-01  1.393e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  8.780e-01  1.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.19 +/- 0.92
Photon Flux (Free Index): 2.06e-08 +/- 2.86e-08
Energy Flux (Free Index): 8.10e-06 +/- 9.94e-06

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/808359/cmap_HighResolution_328233601_328492801_4FGL_J2323.5-0317_daily_bin343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-05', comment='SUCCESS', photon_flux='2.00e-08', energy_flux2='8.10e-06', photon_flux_error='2.34e-08', dlogl='5.47e-04', energy_flux='8.18e-06', photon_flux2='2.06e-08', job_status='DONE', time_completed='2021-09-29 14:41:42.405157', photon_index_error2='0.92', photon_index2='2.19', ts='1.03', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='7.47e-08', energy_flux_error2='9.94e-06', EG='0.88', time_epoch_completed='1632951702.41', return_code='0', job_id='808359', GAL2='0.90', EG2='0.88', return_code2='0', energy_flux_error='9.58e-06', photon_flux_error2='2.86e-08', ts2='1.03', photon_index='2.16' WHERE bin_id='343' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:41:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 808359: <4FGL_J2323.5-0317_daily_bin343> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin343 350.888 -3.29 328233601 328492801 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 :                                   717.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            969 sec.

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

