/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 172 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin122
RA = 350.888, Dec = -3.29
tmin = 270950401, tmax = 271209601
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='807033', job_status='RUN', time_executed='2021-09-29 14:24:02.303754', time_epoch_executed='1632950642.3' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/807033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/807033/ft1_4FGL_J2323.5-0317_daily_bin122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/807033/ft2_4FGL_J2323.5-0317_daily_bin122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/807033/ft1_4FGL_J2323.5-0317_daily_bin122.fits outfile=/scratch/kocevski/807033/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin122.fits ra=350.888 dec=-3.29 rad=12.0 tmin=270950401.0 tmax=271209601.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 1.60
user 1.43
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/807033/ft1_filtered_4FGL_J2323.5-0317_daily_bin122.fits" evtable="EVENTS" scfile=/scratch/kocevski/807033/ft2_4FGL_J2323.5-0317_daily_bin122.fits sctable="SC_DATA" outfile=/scratch/kocevski/807033/ltcube_270950401_271209601_4FGL_J2323.5-0317_daily_bin122.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/807033/ft2_4FGL_J2323.5-0317_daily_bin122.fits
.....................!
real 12.38
user 12.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/807033/ft1_filtered_4FGL_J2323.5-0317_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/807033/ft2_4FGL_J2323.5-0317_daily_bin122.fits sctable="SC_DATA" expcube=/scratch/kocevski/807033/ltcube_270950401_271209601_4FGL_J2323.5-0317_daily_bin122.fits outfile=/scratch/kocevski/807033/expmap_270950401_271209601_4FGL_J2323.5-0317_daily_bin122.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/807033/ltcube_270950401_271209601_4FGL_J2323.5-0317_daily_bin122.fits
.....................!
real 190.39
user 185.47
sys 4.61

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/807033/ft1_filtered_4FGL_J2323.5-0317_daily_bin122.fits scfile=/scratch/kocevski/807033/ft2_4FGL_J2323.5-0317_daily_bin122.fits outfile=/scratch/kocevski/807033/cmap_270950401_271209601_4FGL_J2323.5-0317_daily_bin122.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/807033/ft1_filtered_4FGL_J2323.5-0317_daily_bin122.fits scfile=/scratch/kocevski/807033/ft2_4FGL_J2323.5-0317_daily_bin122.fits outfile=/scratch/kocevski/807033/cmap_HighResolution_270950401_271209601_4FGL_J2323.5-0317_daily_bin122.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/807033/ft1_filtered_4FGL_J2323.5-0317_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/807033/ft2_4FGL_J2323.5-0317_daily_bin122.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/807033/Model_4FGL_J2323.5-0317_daily_bin122.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/807033/ft1_filtered_4FGL_J2323.5-0317_daily_bin122.fits.....................!
real 58.31
user 56.95
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3771       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.7483       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.803       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.553       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11073E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9956       1.0000         .10000E-03   10000.    
    10 'norm      '    .57806       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8212       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33103E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.123       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3207       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.335       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.1341       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94819       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84088       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=   6240.592     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2896 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3775        7.2122        .46940E-07   -.11778E-04
   2  Prefactor     .10000E-03    18.247        .62549E-06** at limit **
   3  Prefactor     .10000E-03    8.9323        .78975E-07** at limit **
   4  Prefactor     .10000E-03    5.5337        .17187E-07** at limit **
   5  norm          6.7483        11.547        .74797E-07   -.15675E-05
   6  Prefactor     10.801        28.099        .28690E-06    .76637E-05
   7  Prefactor     29.554        19.242        .22028E-07    .14891E-04
   8  Prefactor     .10000E-03    143.53        .77429E-06** at limit **
   9  Prefactor     5.9865        6.0093       -.14531E-06   -.70802E-04
  10  norm          .57805        .71898       -.59758E-07   -.31554E-04
  11  norm          .10000E-03    2.0348       -.89067E-07** at limit **
  12  Prefactor     .10000E-03    9.2298        .53577E-07** at limit **
  13  Prefactor     .10000E-03    20.288       -.28673E-06** at limit **
  14  Prefactor     .10000E-03    58.210        .17367E-05** at limit **
  15  Prefactor     3.8285        11.217        .49651E-05    .97708E-05
  16  Prefactor     .10000E-03    90.992       -.28569E-05** at limit **
  17  norm          .10000E-03    14.293       -.18891E-06** at limit **
  18  Prefactor     16.092        41.096        .34559E-05    .11331E-04
  19  Prefactor     4.3187        4.5088       -.85706E-06   -.32899E-05
  20  Prefactor     .10000E-03    26.114       -.10996E-06** at limit **
  21  Prefactor     .10000E-03    11.636        .21136E-06** at limit **
  22  Prefactor     11.338        15.993        .27311E-07   -.24623E-05
  23  Prefactor     9.1342        7.1418        .32431E-08   -.14368E-04
  24  Normalizat    .94814        .18180       -.39928E-06    .12960E-03
  25  Prefactor     .84088        .12834        .77747E-07    .14262E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.37754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.74827
  Prefactor  = 10.8015
  Prefactor  = 29.5542
  Prefactor  = 0.0001
  Prefactor  = 5.98649
  norm       = 0.578053
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.82846
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 16.0916
  Prefactor  = 4.31867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3375
  Prefactor  = 9.13422
  Normalizat = 0.948142
  Prefactor  = 0.840879
 **********
 **   18 **HESSE 
 **********

 FCN=   6240.592     FROM HESSE     STATUS=OK           431 CALLS     3327 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3775        7.1954        .19251E-03   -1.5289    
   2  Prefactor     .10000E-03    18.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.9361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7483        11.544        .15446E-03   -1.5188    
   6  Prefactor     10.801        28.093        .12189E-03   -1.5051    
   7  Prefactor     29.554        19.248        .73699E-04   -1.4620    
   8  Prefactor     .10000E-03    145.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9865        6.0095        .16398E-03   -1.5219    
  10  norm          .57805        .68485        .70748E-03   -1.5556    
  11  norm          .10000E-03    2.0480        .11001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.3491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    58.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8285        11.268        .10324E-02   -1.5317    
  16  Prefactor     .10000E-03    92.445        .39438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.092        41.182        .99748E-04   -1.4905    
  19  Prefactor     4.3187        4.5107        .14200E-03   -1.5292    
  20  Prefactor     .10000E-03    26.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.338        16.027        .11899E-03   -1.5034    
  23  Prefactor     9.1342        7.1467        .13261E-03   -1.5103    
  24  Normalizat    .94814        .21140        .26049E-03   -.94789    
  25  Prefactor     .84088        .14959        .20293E-03   -.98239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79774e-09
Minuit parameter uncertainties:
  1  7.19683
  2  1.20289e-05
  3  2.09489e-06
  4  1.96769e-06
  5  11.5473
  6  28.1269
  7  19.2523
  8  0.000226426
  9  6.01009
  10  0.684856
  11  6.24902e-06
  12  2.04312e-05
  13  4.33155e-06
  14  4.69398e-05
  15  11.2739
  16  0.00100164
  17  1.36175e-05
  18  41.2551
  19  4.51105
  20  1.37117e-05
  21  1.00875e-05
  22  16.0331
  23  7.14738
  24  0.211584
  25  0.149659
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  5.781e-01  6.849e-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:  8.409e-01  1.497e-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.481e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/807033/likelihoodResults_270950401_271209601_4FGL_J2323.5-0317_daily_bin122.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) = 6240.55615258
delta logL = 0.0359863977083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6240.55547205
delta logL = 0.0366669330442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55808       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3862       1.0000          .0000       5.0000    
     3 'Normalizat'    .94285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84315       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=   6240.555     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55843        .68067        .66247E-03   -.59910E-03
   2  alpha         2.3857        .86086        .21024E-01   -.66004E-05
   3  Normalizat    .94299        .20054        .26109E-03    .25107E-03
   4  Prefactor     .84302        .14830        .20268E-03   -.78080E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.558429
  alpha      = 2.38574
  Normalizat = 0.942989
  Prefactor  = 0.843021
 **********
 **   18 **HESSE 
 **********

 FCN=   6240.555     FROM HESSE     STATUS=OK            27 CALLS      266 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55843        .65776        .26499E-04   -1.5559    
   2  alpha         2.3857        .83329        .84095E-03   -.45721E-01
   3  Normalizat    .94299        .20069        .10444E-04   -.94966    
   4  Prefactor     .84302        .14836        .81072E-05   -.98161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06318e-10
Minuit parameter uncertainties:
  1  0.657768
  2  0.849584
  3  0.200849
  4  0.148435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/807033': 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) = 6240.55547153
delta logL = 0.0366674508559

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  5.584e-01  6.578e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.386e+00  8.496e-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.430e-01  1.484e-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.430e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.39 +/- 0.85
Photon Flux (Free Index): 2.71e-08 +/- 3.37e-08
Energy Flux (Free Index): 8.60e-06 +/- 9.95e-06

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/807033/cmap_HighResolution_270950401_271209601_4FGL_J2323.5-0317_daily_bin122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-05', comment='SUCCESS', energy_flux2='8.60e-06', dlogl='3.67e-02', photon_flux2='2.71e-08', job_status='DONE', time_completed='2021-09-29 14:34:50.064366', photon_index_error2='0.85', photon_index2='2.39', ts='0.99', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='8.33e-08', energy_flux_error2='9.95e-06', EG='0.95', time_epoch_completed='1632951290.06', return_code='0', job_id='807033', GAL2='0.84', EG2='0.94', return_code2='0', photon_flux_error2='3.37e-08', ts2='1.07', photon_index='2.16' WHERE bin_id='122' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:34:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 807033: <4FGL_J2323.5-0317_daily_bin122> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin122> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:21:00 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:21:02 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:21:02 2021
Terminated at Wed Sep 29 14:34:50 2021
Results reported at Wed Sep 29 14:34:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin122 350.888 -3.29 270950401 271209601 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 :                                   647.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

