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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin965
RA = 350.888, Dec = -3.29
tmin = 489456001, tmax = 489715201
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='811231', job_status='RUN', time_executed='2021-09-29 14:36:07.507962', time_epoch_executed='1632951367.51' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='965'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811231/ft1_4FGL_J2323.5-0317_daily_bin965.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811231/ft2_4FGL_J2323.5-0317_daily_bin965.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811231/ft1_4FGL_J2323.5-0317_daily_bin965.fits outfile=/scratch/kocevski/811231/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin965.fits ra=350.888 dec=-3.29 rad=12.0 tmin=489456001.0 tmax=489715201.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 5.12
user 4.88
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811231/ft1_filtered_4FGL_J2323.5-0317_daily_bin965.fits" evtable="EVENTS" scfile=/scratch/kocevski/811231/ft2_4FGL_J2323.5-0317_daily_bin965.fits sctable="SC_DATA" outfile=/scratch/kocevski/811231/ltcube_489456001_489715201_4FGL_J2323.5-0317_daily_bin965.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/811231/ft2_4FGL_J2323.5-0317_daily_bin965.fits
.....................!
real 11.81
user 11.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811231/ft1_filtered_4FGL_J2323.5-0317_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/811231/ft2_4FGL_J2323.5-0317_daily_bin965.fits sctable="SC_DATA" expcube=/scratch/kocevski/811231/ltcube_489456001_489715201_4FGL_J2323.5-0317_daily_bin965.fits outfile=/scratch/kocevski/811231/expmap_489456001_489715201_4FGL_J2323.5-0317_daily_bin965.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/811231/ltcube_489456001_489715201_4FGL_J2323.5-0317_daily_bin965.fits
.....................!
real 191.18
user 185.53
sys 5.33

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/811231/ft1_filtered_4FGL_J2323.5-0317_daily_bin965.fits scfile=/scratch/kocevski/811231/ft2_4FGL_J2323.5-0317_daily_bin965.fits outfile=/scratch/kocevski/811231/cmap_489456001_489715201_4FGL_J2323.5-0317_daily_bin965.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/811231/ft1_filtered_4FGL_J2323.5-0317_daily_bin965.fits scfile=/scratch/kocevski/811231/ft2_4FGL_J2323.5-0317_daily_bin965.fits outfile=/scratch/kocevski/811231/cmap_HighResolution_489456001_489715201_4FGL_J2323.5-0317_daily_bin965.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.57
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/811231/ft1_filtered_4FGL_J2323.5-0317_daily_bin965.fits', '/scratch/kocevski/811231/ft2_4FGL_J2323.5-0317_daily_bin965.fits', expMap='/scratch/kocevski/811231/expmap_489456001_489715201_4FGL_J2323.5-0317_daily_bin965.fits', expCube='/scratch/kocevski/811231/ltcube_489456001_489715201_4FGL_J2323.5-0317_daily_bin965.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/811231/Model_4FGL_J2323.5-0317_daily_bin965.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/811231/ft1_filtered_4FGL_J2323.5-0317_daily_bin965.fits
Spacecraft file(s): /scratch/kocevski/811231/ft2_4FGL_J2323.5-0317_daily_bin965.fits
Exposure map: /scratch/kocevski/811231/expmap_489456001_489715201_4FGL_J2323.5-0317_daily_bin965.fits
Exposure cube: /scratch/kocevski/811231/ltcube_489456001_489715201_4FGL_J2323.5-0317_daily_bin965.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/811231/Model_4FGL_J2323.5-0317_daily_bin965.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5815.47473509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.655       1.0000         .10000E-03   10000.    
     5 'norm      '    6.0415       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.711       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9682       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.931       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13503E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .14795E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8496       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    81.268       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81759       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95327       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=   5815.381     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2503 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.283        .10826E-05** at limit **
   2  Prefactor     .10000E-03    19.420       -.11529E-06** at limit **
   3  Prefactor     .10000E-03    7.5758        .14033E-07** at limit **
   4  Prefactor     11.655        8.8397        .41600E-07   -.98393E-06
   5  norm          6.0416        6.2964        .17190E-07   -.56186E-06
   6  Prefactor     .10000E-03    31.611        .53786E-06** at limit **
   7  Prefactor     .10000E-03    8.9097       -.16304E-07** at limit **
   8  Prefactor     18.692        30.517        .23064E-06    .10660E-04
   9  Prefactor     .10000E-03    6.8358        .69893E-07** at limit **
  10  norm          .10000E-03    .28144        .60205E-08** at limit **
  11  norm          .10000E-03    3.3705        .42227E-07** at limit **
  12  Prefactor     3.9706        6.6178        .38300E-05    .22305E-04
  13  Prefactor     12.931        25.499       -.74145E-07    .15245E-04
  14  Prefactor     .10002E-03    78.067        .28720E-05** at limit **
  15  Prefactor     .10000E-03    12.938       -.74014E-06** at limit **
  16  Prefactor     .10001E-03    54.675       -.32532E-05** at limit **
  17  norm          .10275E-03    21.584       -.29745E-05** at limit **
  18  Prefactor     .10000E-03    25.653        .26536E-06** at limit **
  19  Prefactor     1.8408        4.4288        .41367E-06    .71786E-03
  20  Prefactor     .10000E-03    11.219        .14891E-06** at limit **
  21  Prefactor     81.274        32.781       -.19345E-06    .95747E-05
  22  Prefactor     .10000E-03    20.445       -.42954E-06** at limit **
  23  Prefactor     .10000E-03    3.6024        .52384E-07** at limit **
  24  Normalizat    .81763        .17951       -.50867E-06    .12681E-03
  25  Prefactor     .95325        .13191       -.14539E-06    .16763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6554
  norm       = 6.04162
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.6916
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.97056
  Prefactor  = 12.9313
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 0.000102749
  Prefactor  = 0.0001
  Prefactor  = 1.84083
  Prefactor  = 0.0001
  Prefactor  = 81.2739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.817626
  Prefactor  = 0.953247
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.381     FROM HESSE     STATUS=OK           425 CALLS     2928 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.707        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.5794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.655        8.8412        .11734E-03   -1.5025    
   5  norm          6.0416        6.2971        .16335E-03   -1.5216    
   6  Prefactor     .10000E-03    31.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.9309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.692        30.523        .92592E-04   -1.4843    
   9  Prefactor     .10000E-03    6.9221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .29151        .78868E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.4311        .13661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9706        6.6268        .10124E-02   -1.5309    
  13  Prefactor     12.931        25.493        .11139E-03   -1.4989    
  14  Prefactor     .10002E-03    78.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    55.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10275E-03    23.819        .92175E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8408        4.4129        .20329E-03   -1.5437    
  20  Prefactor     .10000E-03    11.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     81.274        32.775        .44553E-04   -1.3902    
  22  Prefactor     .10000E-03    20.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.6278        .14133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .81763        .20857        .27357E-03   -.99418    
  25  Prefactor     .95325        .15400        .19238E-03   -.94305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7727e-09
Minuit parameter uncertainties:
  1  0.000264445
  2  6.55375e-05
  3  2.82649e-06
  4  8.84215
  5  6.29775
  6  0.000294217
  7  4.27866e-06
  8  30.5487
  9  4.80918e-06
  10  7.39586e-07
  11  3.38801e-06
  12  6.62801
  13  25.5147
  14  0.00256853
  15  0.000147434
  16  0.00180569
  17  0.0161918
  18  0.000125772
  19  4.41372
  20  5.61711e-05
  21  32.7825
  22  0.000158296
  23  2.39388e-06
  24  0.208775
  25  0.154067
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  7.396e-07  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.532e-01  1.541e-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.176e-01  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/811231/likelihoodResults_489456001_489715201_4FGL_J2323.5-0317_daily_bin965.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) = 5815.38150788
delta logL = -0.000624782534032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5815.27297516
delta logL = 0.107907933665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12434E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9998       1.0000          .0000       5.0000    
     3 'Normalizat'    .78781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96662       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=   5815.273     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      346 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12381E-01    .33015E-01    .16882E-03    .14587E-02
   2  alpha         5.0000        4.9203        .50000    ** at limit **
   3  Normalizat    .78806        .21191        .27852E-03    .48574E-05
   4  Prefactor     .96652        .15552        .19120E-03    .51729E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0123809
  alpha      = 5
  Normalizat = 0.788059
  Prefactor  = 0.966516
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.273     FROM HESSE     STATUS=OK            31 CALLS      377 TOTAL
                     EDM=   .47E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12381E-01    .30762E-01    .67529E-05   -1.5686    
   2  alpha         5.0000        4.8214        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .78806        .21249        .11141E-04   -1.0051    
   4  Prefactor     .96652        .15578        .76482E-05   -.93854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66264e-14
Minuit parameter uncertainties:
  1  0.0307619
  2  1.5165e-06
  3  0.212714
  4  0.155853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811231': 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) = 5815.2729688
delta logL = 0.107914299182

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.238e-02  3.076e-02  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  5.000e+00  1.516e-06  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.665e-01  1.559e-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:  7.881e-01  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/811231/cmap_HighResolution_489456001_489715201_4FGL_J2323.5-0317_daily_bin965.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', job_status='DONE', photon_flux_upper_limit='5.08e-08', time_completed='2021-09-29 14:46:50.231967', job_id='811231', GAL2='0.97', fit_tolerance='1e-08', EG2='0.79', EG='0.82', time_epoch_completed='1632952010.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.08e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='965' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:46:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 811231: <4FGL_J2323.5-0317_daily_bin965> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin965 350.888 -3.29 489456001 489715201 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 :                                   626.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            665 sec.

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

