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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin772
RA = 350.888, Dec = -3.29
tmin = 439430401, tmax = 439689601
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='810949', job_status='RUN', time_executed='2021-09-29 14:37:55.816658', time_epoch_executed='1632951475.82' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810949

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810949/ft1_4FGL_J2323.5-0317_daily_bin772.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810949/ft2_4FGL_J2323.5-0317_daily_bin772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810949/ft1_4FGL_J2323.5-0317_daily_bin772.fits outfile=/scratch/kocevski/810949/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin772.fits ra=350.888 dec=-3.29 rad=12.0 tmin=439430401.0 tmax=439689601.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 4.85
user 4.61
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810949/ft1_filtered_4FGL_J2323.5-0317_daily_bin772.fits" evtable="EVENTS" scfile=/scratch/kocevski/810949/ft2_4FGL_J2323.5-0317_daily_bin772.fits sctable="SC_DATA" outfile=/scratch/kocevski/810949/ltcube_439430401_439689601_4FGL_J2323.5-0317_daily_bin772.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/810949/ft2_4FGL_J2323.5-0317_daily_bin772.fits
.....................!
real 11.50
user 11.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810949/ft1_filtered_4FGL_J2323.5-0317_daily_bin772.fits evtable="EVENTS" scfile=/scratch/kocevski/810949/ft2_4FGL_J2323.5-0317_daily_bin772.fits sctable="SC_DATA" expcube=/scratch/kocevski/810949/ltcube_439430401_439689601_4FGL_J2323.5-0317_daily_bin772.fits outfile=/scratch/kocevski/810949/expmap_439430401_439689601_4FGL_J2323.5-0317_daily_bin772.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/810949/ltcube_439430401_439689601_4FGL_J2323.5-0317_daily_bin772.fits
.....................!
real 188.93
user 184.58
sys 4.04

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/810949/ft1_filtered_4FGL_J2323.5-0317_daily_bin772.fits scfile=/scratch/kocevski/810949/ft2_4FGL_J2323.5-0317_daily_bin772.fits outfile=/scratch/kocevski/810949/cmap_439430401_439689601_4FGL_J2323.5-0317_daily_bin772.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810949/ft1_filtered_4FGL_J2323.5-0317_daily_bin772.fits scfile=/scratch/kocevski/810949/ft2_4FGL_J2323.5-0317_daily_bin772.fits outfile=/scratch/kocevski/810949/cmap_HighResolution_439430401_439689601_4FGL_J2323.5-0317_daily_bin772.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810949/ft1_filtered_4FGL_J2323.5-0317_daily_bin772.fits evtable="EVENTS" scfile=/scratch/kocevski/810949/ft2_4FGL_J2323.5-0317_daily_bin772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810949/Model_4FGL_J2323.5-0317_daily_bin772.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/810949/ft1_filtered_4FGL_J2323.5-0317_daily_bin772.fits.....................!
real 42.53
user 41.25
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16114E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4904       1.0000         .10000E-03   10000.    
     5 'norm      '    14.487       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.993       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1053       1.0000         .10000E-03   10000.    
    11 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    123.37       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11869E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.579       1.0000         .10000E-03   10000.    
    17 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2091       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.513       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69537       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84457       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=   3943.927     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2870 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.990        .94398E-05** at limit **
   2  Prefactor     .10000E-03    27.863        .57863E-06** at limit **
   3  Prefactor     .10000E-03    25.056        .17873E-06** at limit **
   4  Prefactor     7.4904        10.236       -.93944E-07    .30200E-04
   5  norm          14.490        15.633        .15203E-06    .17781E-04
   6  Prefactor     .10000E-03    16.240        .68618E-06** at limit **
   7  Prefactor     14.993        19.778        .21142E-06    .95048E-05
   8  Prefactor     .10000E-03    34.220        .48013E-06** at limit **
   9  Prefactor     .10000E-03    4.2541        .19984E-06** at limit **
  10  norm          2.1050        1.1120       -.22901E-08    .29631E-03
  11  norm          .10000E-03    1.7740        .76776E-07** at limit **
  12  Prefactor     .10000E-03    8.5208        .92283E-06** at limit **
  13  Prefactor     123.39        87.601       -.10706E-05    .42391E-04
  14  Prefactor     .10000E-03    87.132        .25456E-05** at limit **
  15  Prefactor     .10000E-03    24.003       -.27955E-05** at limit **
  16  Prefactor     18.560        34.599        .48911E-06    .27729E-04
  17  norm          .10000E-03    25.437       -.10134E-05** at limit **
  18  Prefactor     .10000E-03    28.054        .76319E-06** at limit **
  19  Prefactor     .10000E-03    3.8612       -.57115E-07** at limit **
  20  Prefactor     .10000E-03    25.906        .11673E-06** at limit **
  21  Prefactor     .10000E-03    16.830       -.17420E-06** at limit **
  22  Prefactor     5.2282        20.403       -.11477E-05    .31169E-04
  23  Prefactor     27.530        15.840       -.19575E-05   -.60786E-04
  24  Normalizat    .69529        .21312       -.71050E-06    .33065E-04
  25  Prefactor     .84460        .14992       -.63606E-06    .77003E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.49043
  norm       = 14.4897
  Prefactor  = 0.0001
  Prefactor  = 14.9932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.10496
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 123.393
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 18.5601
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.22823
  Prefactor  = 27.5296
  Normalizat = 0.695289
  Prefactor  = 0.844597
 **********
 **   18 **HESSE 
 **********

 FCN=   3943.927     FROM HESSE     STATUS=OK           421 CALLS     3291 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.454        .41504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4904        10.232        .14654E-03   -1.5161    
   5  norm          14.490        15.641        .10523E-03   -1.4946    
   6  Prefactor     .10000E-03    16.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.993        19.780        .10344E-03   -1.4933    
   8  Prefactor     .10000E-03    34.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.2706        .12652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1050        1.1087        .46208E-04   -1.5418    
  11  norm          .10000E-03    1.7765        .81692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.5266        .17885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     123.39        87.294        .18119E-03   -1.3482    
  14  Prefactor     .10000E-03    87.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.560        34.659        .92922E-04   -1.4846    
  17  norm          .10000E-03    25.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9632        .24059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.2282        20.413        .17613E-03   -1.5251    
  23  Prefactor     27.530        15.847        .76377E-04   -1.4658    
  24  Normalizat    .69529        .24588        .29023E-03   -1.0408    
  25  Prefactor     .84460        .17380        .19163E-03   -.98105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5816e-10
Minuit parameter uncertainties:
  1  0.000228475
  2  3.29491e-05
  3  6.55467e-07
  4  10.2341
  5  15.6454
  6  2.71149e-05
  7  19.7889
  8  9.58033e-06
  9  1.26013e-06
  10  1.10874
  11  7.50155e-07
  12  4.20563e-05
  13  87.3849
  14  0.000327442
  15  0.00041196
  16  34.6966
  17  0.000201886
  18  3.64832e-05
  19  3.4133e-05
  20  5.85052e-05
  21  4.29603e-05
  22  20.4404
  23  15.8493
  24  0.246268
  25  0.173918
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.105e+00  1.109e+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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  8.446e-01  1.739e-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:  6.953e-01  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.56
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 8.15e-08 +/- 4.29e-08
Energy Flux (Fixed Index): 3.34e-05 +/- 1.76e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3943.88200994
delta logL = 0.0450271484092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3943.88128911
delta logL = 0.0457479831016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1112       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0058       1.0000          .0000       5.0000    
     3 'Normalizat'    .70551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84043       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=   3943.881     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1116        1.4221        .70981E-02    .48859E-04
   2  alpha         2.0059        .58273        .28053       -.58082E-05
   3  Normalizat    .70558        .20517        .65162E-01    .14992E-04
   4  Prefactor     .84039        .14811        .44241E-01    .31881E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.11162
  alpha      = 2.00585
  Normalizat = 0.705576
  Prefactor  = 0.840392
 **********
 **   18 **HESSE 
 **********

 FCN=   3943.881     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1116        1.1265        .46984E-04   -1.5417    
   2  alpha         2.0059        .49986        .11449E-01   -.19897    
   3  Normalizat    .70558        .23600        .28831E-03   -1.0367    
   4  Prefactor     .84039        .17061        .19207E-03   -.98256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28555e-11
Minuit parameter uncertainties:
  1  1.12651
  2  0.503389
  3  0.236345
  4  0.170722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810949': 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) = 3943.88128899
delta logL = 0.0457481040858

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.112e+00  1.127e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.006e+00  5.034e-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.404e-01  1.707e-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.056e-01  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.65
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.01 +/- 0.50
Photon Flux (Free Index): 7.13e-08 +/- 4.98e-08
Energy Flux (Free Index): 3.64e-05 +/- 2.29e-05

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/810949/cmap_HighResolution_439430401_439689601_4FGL_J2323.5-0317_daily_bin772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.15e-08', energy_flux2='3.64e-05', photon_flux_error='4.29e-08', dlogl='4.57e-02', energy_flux='3.34e-05', photon_flux2='7.13e-08', job_status='DONE', time_completed='2021-09-29 14:46:09.311846', photon_index_error2='0.50', photon_index2='2.01', ts='8.56', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.29e-05', EG='0.70', time_epoch_completed='1632951969.31', return_code='0', job_id='810949', GAL2='0.84', EG2='0.71', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='4.98e-08', ts2='8.65', photon_index='2.16' WHERE bin_id='772' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:46:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 810949: <4FGL_J2323.5-0317_daily_bin772> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin772 350.888 -3.29 439430401 439689601 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 :                                   488.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            647 sec.

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

