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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin976
RA = 350.888, Dec = -3.29
tmin = 492307201, tmax = 492566401
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='811247', job_status='RUN', time_executed='2021-09-29 14:36:48.923403', time_epoch_executed='1632951408.92' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811247

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811247/ft1_4FGL_J2323.5-0317_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811247/ft2_4FGL_J2323.5-0317_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811247/ft1_4FGL_J2323.5-0317_daily_bin976.fits outfile=/scratch/kocevski/811247/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin976.fits ra=350.888 dec=-3.29 rad=12.0 tmin=492307201.0 tmax=492566401.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.71
user 3.50
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/811247/ft2_4FGL_J2323.5-0317_daily_bin976.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/811247/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin976.fits evtable="EVENTS" outfile="/scratch/kocevski/811247/ft1_filtered_4FGL_J2323.5-0317_daily_bin976.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/811247/ft1_filtered_4FGL_J2323.5-0317_daily_bin976.fits" evtable="EVENTS" scfile=/scratch/kocevski/811247/ft2_4FGL_J2323.5-0317_daily_bin976.fits sctable="SC_DATA" outfile=/scratch/kocevski/811247/ltcube_492307201_492566401_4FGL_J2323.5-0317_daily_bin976.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/811247/ft2_4FGL_J2323.5-0317_daily_bin976.fits
.....................!
real 11.83
user 11.52
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811247/ft1_filtered_4FGL_J2323.5-0317_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/811247/ft2_4FGL_J2323.5-0317_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/811247/ltcube_492307201_492566401_4FGL_J2323.5-0317_daily_bin976.fits outfile=/scratch/kocevski/811247/expmap_492307201_492566401_4FGL_J2323.5-0317_daily_bin976.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/811247/ltcube_492307201_492566401_4FGL_J2323.5-0317_daily_bin976.fits
.....................!
real 191.38
user 185.89
sys 5.18

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/811247/ft1_filtered_4FGL_J2323.5-0317_daily_bin976.fits scfile=/scratch/kocevski/811247/ft2_4FGL_J2323.5-0317_daily_bin976.fits outfile=/scratch/kocevski/811247/cmap_492307201_492566401_4FGL_J2323.5-0317_daily_bin976.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.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811247/ft1_filtered_4FGL_J2323.5-0317_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/811247/ft2_4FGL_J2323.5-0317_daily_bin976.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811247/Model_4FGL_J2323.5-0317_daily_bin976.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/811247/ft1_filtered_4FGL_J2323.5-0317_daily_bin976.fits.....................!
real 66.26
user 64.89
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.362       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.0372       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.171       1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.307       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .29714       1.0000         .10000E-03   10000.    
    11 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.900       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .43886       1.0000         .10000E-03   10000.    
    17 'norm      '    .12279E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.458       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7165       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.4441       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0836       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86774       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=   7331.510     FROM MIGRAD    STATUS=CONVERGED   1013 CALLS     3391 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2654        .17204E-02** at limit **
   2  Prefactor     13.355        37.318        .10958E-03   -.35275E-05
   3  Prefactor     .10000E-03    17.326        .18142E-02** at limit **
   4  Prefactor     .10000E-03    2.5561        .13362E-02** at limit **
   5  norm          8.0356        13.007        .70713E-03   -.32293E-03
   6  Prefactor     14.168        37.666        .10640E-03    .10151E-04
   7  Prefactor     38.307        18.807        .64758E-04   -.31074E-04
   8  Prefactor     .10000E-03    14.955        .18142E-02** at limit **
   9  Prefactor     .10000E-03    2.6830        .13673E-02** at limit **
  10  norm          .29701        .59634        .95036E-03    .21104E-02
  11  norm          .10000E-03    2.0031        .11783E-02** at limit **
  12  Prefactor     .10029E-03    41.666        .40222E-02** at limit **
  13  Prefactor     .10000E-03    17.545        .18142E-02** at limit **
  14  Prefactor     .10000E-03    90.388        .18142E-02** at limit **
  15  Prefactor     17.894        13.387        .94665E-04    .53922E-04
  16  Prefactor     .35659        16.457        .10451        .53788E-03
  17  norm          .10000E-03    34.660        .18142E-02** at limit **
  18  Prefactor     31.433        49.373        .71438E-04   -.38066E-04
  19  Prefactor     3.7173        5.6489        .19061E-03   -.44136E-04
  20  Prefactor     .10000E-03    11.396        .18142E-02** at limit **
  21  Prefactor     .10000E-03    9.6125        .18142E-02** at limit **
  22  Prefactor     .10000E-03    8.4361        .18142E-02** at limit **
  23  Prefactor     5.4434        5.3907        .17222E-03   -.42579E-04
  24  Normalizat    1.0836        .20595        .26285E-03   -.13858E-03
  25  Prefactor     .86783        .14850        .21531E-03   -.11130E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.3552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.03565
  Prefactor  = 14.168
  Prefactor  = 38.3066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.297013
  norm       = 0.0001
  Prefactor  = 0.000100286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8943
  Prefactor  = 0.356591
  norm       = 0.000100001
  Prefactor  = 31.4334
  Prefactor  = 3.71728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.44337
  Normalizat = 1.08355
  Prefactor  = 0.867833
 **********
 **   18 **HESSE 
 **********

 FCN=   7331.510     FROM HESSE     STATUS=OK           413 CALLS     3804 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2664        .34409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.355        37.323        .43831E-05   -1.4977    
   3  Prefactor     .10000E-03    17.327        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5562        .26725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.0356        13.003        .28285E-04   -1.5141    
   6  Prefactor     14.168        37.655        .42560E-05   -1.4955    
   7  Prefactor     38.307        18.807        .12952E-04   -1.4469    
   8  Prefactor     .10000E-03    14.956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6832        .27346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .29701        .59539        .38014E-04   -1.5599    
  11  norm          .10000E-03    2.0034        .23567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10029E-03    42.464        .80444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    90.388        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.894        13.376        .37866E-05   -1.4862    
  16  Prefactor     .35659        16.236        .10558       -1.5589    
  17  norm          .10000E-03    34.666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.433        49.373        .14288E-04   -1.4586    
  19  Prefactor     3.7173        5.6448        .76245E-05   -1.5322    
  20  Prefactor     .10000E-03    11.396        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.6139        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.4378        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.4434        5.3905        .68886E-05   -1.5241    
  24  Normalizat    1.0836        .20611        .10514E-04   -.90282    
  25  Prefactor     .86783        .14861        .86126E-05   -.97274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22677e-09
Minuit parameter uncertainties:
  1  2.41423e-05
  2  37.3879
  3  1.56274e-05
  4  1.13442e-06
  5  13.0079
  6  37.7185
  7  18.81
  8  2.09934e-05
  9  1.04572e-05
  10  0.595401
  11  4.22859e-06
  12  0.00697269
  13  1.51558e-05
  14  3.86157e-05
  15  13.3781
  16  4.81302
  17  0.000368483
  18  49.4371
  19  5.64558
  20  2.04838e-05
  21  6.72218e-06
  22  2.30869e-05
  23  5.39093
  24  0.206261
  25  0.148683
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.084e+00  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/811247/likelihoodResults_492307201_492566401_4FGL_J2323.5-0317_daily_bin976.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) = 7331.36904645
delta logL = 0.140651149511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7331.36701186
delta logL = 0.14268574644

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31744       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7941       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0712       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87194       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=   7331.367     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      236 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31734        21.182        .15950E-01    .14223E-02
   2  alpha         2.7939        3.4849        .41517E-01    .42972E-04
   3  Normalizat    1.0709        .62393E-01    .59727E-01    .26809E-04
   4  Prefactor     .87212        .46764E-01    .44646E-01   -.13991E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.317341
  alpha      = 2.7939
  Normalizat = 1.07087
  Prefactor  = 0.872124
 **********
 **   18 **HESSE 
 **********

 FCN=   7331.367     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31734        .56011        .71997E-03   -1.5595    
   2  alpha         2.7939        1.2010        .16607E-02    .11783    
   3  Normalizat    1.0709        .19901        .26414E-03   -.90693    
   4  Prefactor     .87212        .14704        .21479E-03   -.97122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58386e-09
Minuit parameter uncertainties:
  1  0.56012
  2  1.25358
  3  0.199153
  4  0.147107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811247': 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) = 7331.36701003
delta logL = 0.142687569771

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.173e-01  5.601e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.794e+00  1.254e+00  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.721e-01  1.471e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.071e+00  1.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
Ra Dec: 350.888 -3.290

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/811247/cmap_HighResolution_492307201_492566401_4FGL_J2323.5-0317_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-05', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-09-29 14:49:54.238458', job_id='811247', GAL2='0.87', fit_tolerance='1e-08', EG2='1.07', EG='1.08', time_epoch_completed='1632952194.24', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.43e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='976' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:49:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 811247: <4FGL_J2323.5-0317_daily_bin976> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin976> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:35:47 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:35:49 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:35:49 2021
Terminated at Wed Sep 29 14:49:55 2021
Results reported at Wed Sep 29 14:49:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin976 350.888 -3.29 492307201 492566401 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 :                                   768.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            848 sec.

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

