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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin115
RA = 350.916, Dec = -6.2953
tmin = 269136001, tmax = 269395201
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='814504', job_status='RUN', time_executed='2021-09-29 14:45:55.530567', time_epoch_executed='1632951955.53' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814504

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814504/ft1_4FGL_J2323.6-0617_daily_bin115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814504/ft2_4FGL_J2323.6-0617_daily_bin115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814504/ft1_4FGL_J2323.6-0617_daily_bin115.fits outfile=/scratch/kocevski/814504/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin115.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=269136001.0 tmax=269395201.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.68
user 1.48
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/814504/ft2_4FGL_J2323.6-0617_daily_bin115.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/814504/ft2_4FGL_J2323.6-0617_daily_bin115.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/814504/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin115.fits evtable="EVENTS" outfile="/scratch/kocevski/814504/ft1_filtered_4FGL_J2323.6-0617_daily_bin115.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/814504/ft1_filtered_4FGL_J2323.6-0617_daily_bin115.fits" evtable="EVENTS" scfile=/scratch/kocevski/814504/ft2_4FGL_J2323.6-0617_daily_bin115.fits sctable="SC_DATA" outfile=/scratch/kocevski/814504/ltcube_269136001_269395201_4FGL_J2323.6-0617_daily_bin115.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/814504/ft2_4FGL_J2323.6-0617_daily_bin115.fits
.....................!
real 12.58
user 12.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814504/ft1_filtered_4FGL_J2323.6-0617_daily_bin115.fits evtable="EVENTS" scfile=/scratch/kocevski/814504/ft2_4FGL_J2323.6-0617_daily_bin115.fits sctable="SC_DATA" expcube=/scratch/kocevski/814504/ltcube_269136001_269395201_4FGL_J2323.6-0617_daily_bin115.fits outfile=/scratch/kocevski/814504/expmap_269136001_269395201_4FGL_J2323.6-0617_daily_bin115.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/814504/ltcube_269136001_269395201_4FGL_J2323.6-0617_daily_bin115.fits
.....................!
real 198.87
user 193.47
sys 4.88

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 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J2323.6-0617 @ 350.916 -6.2953

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/814504/ft1_filtered_4FGL_J2323.6-0617_daily_bin115.fits scfile=/scratch/kocevski/814504/ft2_4FGL_J2323.6-0617_daily_bin115.fits outfile=/scratch/kocevski/814504/cmap_269136001_269395201_4FGL_J2323.6-0617_daily_bin115.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.916 yref=-6.2953 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814504/ft1_filtered_4FGL_J2323.6-0617_daily_bin115.fits scfile=/scratch/kocevski/814504/ft2_4FGL_J2323.6-0617_daily_bin115.fits outfile=/scratch/kocevski/814504/cmap_HighResolution_269136001_269395201_4FGL_J2323.6-0617_daily_bin115.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.916 yref=-6.2953 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/814504/ft1_filtered_4FGL_J2323.6-0617_daily_bin115.fits evtable="EVENTS" scfile=/scratch/kocevski/814504/ft2_4FGL_J2323.6-0617_daily_bin115.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/814504/Model_4FGL_J2323.6-0617_daily_bin115.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/814504/ft1_filtered_4FGL_J2323.6-0617_daily_bin115.fits.....................!
real 68.33
user 66.94
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/814504/ft1_filtered_4FGL_J2323.6-0617_daily_bin115.fits', '/scratch/kocevski/814504/ft2_4FGL_J2323.6-0617_daily_bin115.fits', expMap='/scratch/kocevski/814504/expmap_269136001_269395201_4FGL_J2323.6-0617_daily_bin115.fits', expCube='/scratch/kocevski/814504/ltcube_269136001_269395201_4FGL_J2323.6-0617_daily_bin115.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/814504/Model_4FGL_J2323.6-0617_daily_bin115.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.6-0617'

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.612e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/814504/ft1_filtered_4FGL_J2323.6-0617_daily_bin115.fits
Spacecraft file(s): /scratch/kocevski/814504/ft2_4FGL_J2323.6-0617_daily_bin115.fits
Exposure map: /scratch/kocevski/814504/expmap_269136001_269395201_4FGL_J2323.6-0617_daily_bin115.fits
Exposure cube: /scratch/kocevski/814504/ltcube_269136001_269395201_4FGL_J2323.6-0617_daily_bin115.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/814504/Model_4FGL_J2323.6-0617_daily_bin115.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) = 7579.28429672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.700       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8624       1.0000         .10000E-03   10000.    
     4 'norm      '    .10409E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.460       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.232       1.0000         .10000E-03   10000.    
     8 'norm      '    5.8309       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7074       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.408       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1905       1.0000         .10000E-03   10000.    
    14 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.629       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.818       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.944       1.0000         .10000E-03   10000.    
    23 'Prefactor '    83.452       1.0000         .10000E-03   10000.    
    24 'norm      '    .64983       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.498       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12041E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3195       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71747       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7579.274     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3685 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.700        7.5942       -.43342E-07   -.43681E-03
   2  Prefactor     .10000E-03    67.006       -.76986E-07** at limit **
   3  Prefactor     8.8761        9.3154        .14344E-05    .66720E-03
   4  norm          .10000E-03    .56830       -.77850E-06** at limit **
   5  Prefactor     .10000E-03    11.079       -.34096E-05** at limit **
   6  Prefactor     13.460        8.5374        .36875E-07    .10492E-03
   7  Prefactor     12.232        8.8840       -.29251E-09    .31941E-04
   8  norm          5.8310        6.6229       -.14770E-08   -.22767E-04
   9  Prefactor     5.7076        12.389        .32589E-05   -.28137E-03
  10  Prefactor     12.411        32.147        .12477E-05    .48821E-04
  11  Prefactor     .10000E-03    10.414        .10055E-05** at limit **
  12  Prefactor     .10000E-03    4.4940        .10705E-06** at limit **
  13  norm          1.1906        .74901        .32598E-08   -.16046E-03
  14  norm          .10000E-03    2.5163        .35998E-07** at limit **
  15  Prefactor     .10000E-03    26.054       -.30874E-05** at limit **
  16  Prefactor     .10001E-03    37.044        .46819E-05** at limit **
  17  Prefactor     31.634        18.070        .14767E-06   -.83279E-04
  18  Prefactor     .10001E-03    70.051       -.48727E-05** at limit **
  19  Prefactor     .10000E-03    5.7145        .68784E-07** at limit **
  20  norm          14.818        17.519        .38834E-07    .60884E-04
  21  Prefactor     .10000E-03    65.729        .14901E-05** at limit **
  22  Prefactor     11.945        4.8942        .28001E-06    .52251E-03
  23  Prefactor     83.449        45.558       -.49886E-06   -.73944E-04
  24  norm          .64987        .46658        .18601E-07   -.45918E-03
  25  norm          .10000E-03    3.6408       -.15700E-07** at limit **
  26  Prefactor     10.499        10.174        .82786E-07    .15349E-05
  27  Prefactor     .10006E-03    5.1028        .24940E-05** at limit **
  28  Normalizat    1.3193        .18296       -.28529E-06   -.21857E-03
  29  Prefactor     .71760        .13359       -.63526E-07   -.13356E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6999
  Prefactor  = 0.0001
  Prefactor  = 8.8761
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 13.4605
  Prefactor  = 12.2322
  norm       = 5.83098
  Prefactor  = 5.7076
  Prefactor  = 12.4112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1906
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100009
  Prefactor  = 31.6336
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 14.8182
  Prefactor  = 0.000100001
  Prefactor  = 11.9446
  Prefactor  = 83.4492
  norm       = 0.649869
  norm       = 0.0001
  Prefactor  = 10.4987
  Prefactor  = 0.000100059
  Normalizat = 1.31931
  Prefactor  = 0.7176
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.274     FROM HESSE     STATUS=OK           553 CALLS     4238 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.700        7.5697        .12249E-03   -1.5054    
   2  Prefactor     .10000E-03    67.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8761        8.9854        .13464E-03   -1.5112    
   4  norm          .10000E-03    1.0274        .11159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.460        8.5368        .10918E-03   -1.4974    
   7  Prefactor     12.232        8.8835        .11454E-03   -1.5008    
   8  norm          5.8310        6.6192        .16632E-03   -1.5225    
   9  Prefactor     5.7076        12.610        .84067E-03   -1.5230    
  10  Prefactor     12.411        32.109        .11372E-03   -1.5003    
  11  Prefactor     .10000E-03    10.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5060        .17959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1906        .73359        .57296E-04   -1.5490    
  14  norm          .10000E-03    2.5466        .13475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    38.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.634        18.134        .71246E-04   -1.4582    
  18  Prefactor     .10001E-03    71.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.7299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.818        17.514        .10405E-03   -1.4938    
  21  Prefactor     .10000E-03    66.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.945        4.9145        .11238E-03   -1.5017    
  23  Prefactor     83.449        45.665        .43971E-04   -1.3878    
  24  norm          .64987        .44970        .48406E-03   -1.5547    
  25  norm          .10000E-03    3.6722        .16178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.499        10.176        .12366E-03   -1.5060    
  27  Prefactor     .10006E-03    12.620        .33693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3193        .21468        .25055E-03   -.82992    
  29  Prefactor     .71760        .15687        .24873E-03   -1.0284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64083e-09
Minuit parameter uncertainties:
  1  7.57042
  2  5.39557e-05
  3  8.98673
  4  3.81159e-05
  5  0.000435487
  6  8.53762
  7  8.88442
  8  6.62003
  9  12.6164
  10  32.1532
  11  0.000132482
  12  1.26433e-05
  13  0.733597
  14  3.35375e-06
  15  0.00065338
  16  0.00118071
  17  18.1373
  18  0.00172934
  19  1.08918e-05
  20  17.5198
  21  0.000425773
  22  4.91469
  23  45.6839
  24  0.449701
  25  4.47048e-06
  26  10.1773
  27  0.00171996
  28  0.214829
  29  0.156965
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  3.354e-06  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  7.176e-01  1.570e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.319e+00  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.916 -6.295
Photon Flux Upper Limit: 4.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814504/likelihoodResults_269136001_269395201_4FGL_J2323.6-0617_daily_bin115.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): 102
logL (Free Index) = 7579.27628297
delta logL = -0.00186754514743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7579.22698829
delta logL = 0.0474271354205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26919       1.0000         .10000E-03   10000.    
     2 'alpha     '    .54988       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71586       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+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=   7579.227     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      308 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26923        1.2014        .14758E-02   -.18868E-02
   2  alpha         .54994        1.2508        .77695E-01    .29545E-04
   3  Normalizat    1.3199        .20314        .25050E-03    .33584E-05
   4  Prefactor     .71584        .15445        .24899E-03    .25569E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.269227
  alpha      = 0.549936
  Normalizat = 1.31989
  Prefactor  = 0.715841
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.227     FROM HESSE     STATUS=OK            27 CALLS      335 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26923        1.3386        .59030E-04   -1.5604    
   2  alpha         .54994        1.2969        .31078E-02   -.89471    
   3  Normalizat    1.3199        .20334        .10020E-04   -.82974    
   4  Prefactor     .71584        .15461        .99596E-05   -1.0291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78632e-09
Minuit parameter uncertainties:
  1  1.20045
  2  1.52898
  3  0.203459
  4  0.154699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814504': 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) = 7579.22698828
delta logL = 0.0474271455178

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  2.692e-01  1.200e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  5.499e-01  1.529e+00  0.000e+00  5.000e+00 ( 1.000e+00)
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  7.158e-01  1.547e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.320e+00  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.916 -6.295

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/814504/cmap_HighResolution_269136001_269395201_4FGL_J2323.6-0617_daily_bin115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-05', job_status='DONE', photon_flux_upper_limit='4.77e-08', time_completed='2021-09-29 15:00:25.551553', job_id='814504', GAL2='0.72', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1632952825.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='4.74e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='115' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:00:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 814504: <4FGL_J2323.6-0617_daily_bin115> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin115> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 14:45:38 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:45:40 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:45:40 2021
Terminated at Wed Sep 29 15:00:26 2021
Results reported at Wed Sep 29 15:00:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin115 350.916 -6.2953 269136001 269395201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.6-0617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   867.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            888 sec.

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

