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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin890
RA = 350.888, Dec = -3.29
tmin = 470016001, tmax = 470275201
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='811123', job_status='RUN', time_executed='2021-09-29 14:38:08.899370', time_epoch_executed='1632951488.9' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='890'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811123

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811123/ft1_4FGL_J2323.5-0317_daily_bin890.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811123/ft2_4FGL_J2323.5-0317_daily_bin890.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811123/ft1_4FGL_J2323.5-0317_daily_bin890.fits outfile=/scratch/kocevski/811123/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin890.fits ra=350.888 dec=-3.29 rad=12.0 tmin=470016001.0 tmax=470275201.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.52
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811123/ft1_filtered_4FGL_J2323.5-0317_daily_bin890.fits" evtable="EVENTS" scfile=/scratch/kocevski/811123/ft2_4FGL_J2323.5-0317_daily_bin890.fits sctable="SC_DATA" outfile=/scratch/kocevski/811123/ltcube_470016001_470275201_4FGL_J2323.5-0317_daily_bin890.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/811123/ft2_4FGL_J2323.5-0317_daily_bin890.fits
.....................!
real 11.93
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811123/ft1_filtered_4FGL_J2323.5-0317_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/811123/ft2_4FGL_J2323.5-0317_daily_bin890.fits sctable="SC_DATA" expcube=/scratch/kocevski/811123/ltcube_470016001_470275201_4FGL_J2323.5-0317_daily_bin890.fits outfile=/scratch/kocevski/811123/expmap_470016001_470275201_4FGL_J2323.5-0317_daily_bin890.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/811123/ltcube_470016001_470275201_4FGL_J2323.5-0317_daily_bin890.fits
.....................!
real 191.96
user 186.58
sys 5.06

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/811123/ft1_filtered_4FGL_J2323.5-0317_daily_bin890.fits scfile=/scratch/kocevski/811123/ft2_4FGL_J2323.5-0317_daily_bin890.fits outfile=/scratch/kocevski/811123/cmap_470016001_470275201_4FGL_J2323.5-0317_daily_bin890.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.36
sys 0.15

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3057       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.387       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.825       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.504       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0200       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9766       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.641       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3409       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .74958       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95442       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=   7609.310     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2875 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3039        7.8509        .75721E-06    .38457E-04
   2  Prefactor     16.376        42.580       -.10340E-04    .23243E-03
   3  Prefactor     .10001E-03    40.005       -.68609E-05** at limit **
   4  Prefactor     .10000E-03    2.3809       -.57993E-07** at limit **
   5  norm          .10000E-03    3.5257       -.52611E-07** at limit **
   6  Prefactor     .10000E-03    33.793        .38028E-05** at limit **
   7  Prefactor     .10000E-03    3.9606        .11609E-06** at limit **
   8  Prefactor     .10000E-03    6.1670        .43957E-07** at limit **
   9  Prefactor     .10000E-03    1.3760       -.13159E-08** at limit **
  10  norm          14.825        1.7161       -.14051E-07    .26096E-03
  11  norm          .10000E-03    .94564        .47027E-07** at limit **
  12  Prefactor     .10000E-03    7.1244       -.39108E-07** at limit **
  13  Prefactor     24.506        34.617        .71633E-06   -.37642E-04
  14  Prefactor     .10000E-03    108.00        .49164E-06** at limit **
  15  Prefactor     9.0203        8.0384       -.35978E-06   -.65602E-03
  16  Prefactor     .10000E-03    49.909        .50346E-05** at limit **
  17  norm          .10000E-03    8.6355       -.33867E-07** at limit **
  18  Prefactor     .10000E-03    12.840       -.75108E-07** at limit **
  19  Prefactor     1.9765        3.4077       -.42133E-06   -.70191E-03
  20  Prefactor     .10000E-03    19.959       -.23700E-06** at limit **
  21  Prefactor     26.640        20.035       -.11156E-06   -.22164E-04
  22  Prefactor     .10000E-03    5.9612       -.18592E-06** at limit **
  23  Prefactor     1.3413        4.8400       -.37458E-05   -.83492E-03
  24  Normalizat    .74964        .15903        .15590E-05    .15786E-04
  25  Prefactor     .95436        .11880       -.34309E-06    .15925E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.30393
  Prefactor  = 16.376
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.8253
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5061
  Prefactor  = 0.0001
  Prefactor  = 9.0203
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.97654
  Prefactor  = 0.0001
  Prefactor  = 26.6397
  Prefactor  = 0.0001
  Prefactor  = 1.34129
  Normalizat = 0.749642
  Prefactor  = 0.954356
 **********
 **   18 **HESSE 
 **********

 FCN=   7609.310     FROM HESSE     STATUS=OK           415 CALLS     3290 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3039        7.8261        .17449E-03   -1.5247    
   2  Prefactor     16.376        40.498        .98938E-04   -1.4898    
   3  Prefactor     .10001E-03    39.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.3842        .13145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.5331        .15995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9627        .16953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.1677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3779        .99928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.825        1.7158        .36902E-04   -1.4938    
  11  norm          .10000E-03    .94800        .82835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.2370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.506        34.598        .80921E-04   -1.4717    
  14  Prefactor     .10000E-03    108.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.0203        8.0633        .66726E-03   -1.5107    
  16  Prefactor     .10000E-03    50.635        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.6455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9765        3.4048        .19511E-03   -1.5427    
  20  Prefactor     .10000E-03    20.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.640        20.043        .77614E-04   -1.4675    
  22  Prefactor     .10000E-03    5.9797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.3413        6.0619        .37850E-03   -1.5476    
  24  Normalizat    .74964        .18379        .29741E-03   -1.0196    
  25  Prefactor     .95436        .13737        .20406E-03   -.94267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07512e-09
Minuit parameter uncertainties:
  1  7.82763
  2  40.5657
  3  0.000964312
  4  1.05407e-06
  5  1.49981e-06
  6  0.0005057
  7  7.14042e-06
  8  3.59525e-06
  9  4.66884e-07
  10  1.71584
  11  1.22589e-06
  12  5.94509e-06
  13  34.6267
  14  6.89598e-05
  15  8.06424
  16  0.000943844
  17  1.49017e-05
  18  6.42072e-06
  19  3.40518
  20  8.26221e-06
  21  20.048
  22  1.29971e-05
  23  5.70363
  24  0.183938
  25  0.137415
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.483e+01  1.716e+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:  9.544e-01  1.374e-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.496e-01  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 361.04
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 5.74e-07 +/- 6.64e-08
Energy Flux (Fixed Index): 2.35e-04 +/- 2.72e-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) = 7594.7425372
delta logL = 14.567531626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7594.74083538
delta logL = 14.5692334408

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.657       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5825       1.0000          .0000       5.0000    
     3 'Normalizat'    .90450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88577       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=   7594.741     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      222 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.657        1.9202        .25305E-02    .53966E-03
   2  alpha         1.5825        .98032E-01    .79664E-01   -.28974E-04
   3  Normalizat    .90449        .15773        .44959E-01    .19025E-04
   4  Prefactor     .88577        .11970        .44823E-01    .83631E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.6574
  alpha      = 1.58248
  Normalizat = 0.904491
  Prefactor  = 0.885771
 **********
 **   18 **HESSE 
 **********

 FCN=   7594.741     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.657        1.9865        .40299E-04   -1.4916    
   2  alpha         1.5825        .10206        .35052E-03   -.37579    
   3  Normalizat    .90449        .18049        .27488E-03   -.96303    
   4  Prefactor     .88577        .13684        .21125E-03   -.96640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15253e-12
Minuit parameter uncertainties:
  1  1.98646
  2  0.102096
  3  0.180613
  4  0.136896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811123': 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) = 7594.74083538
delta logL = 14.5692334445

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.566e+01  1.986e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.582e+00  1.021e-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.858e-01  1.369e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  9.045e-01  1.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 392.68
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.58 +/- 0.10
Photon Flux (Free Index): 4.05e-07 +/- 5.83e-08
Energy Flux (Free Index): 4.73e-04 +/- 9.44e-05

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/811123/cmap_HighResolution_470016001_470275201_4FGL_J2323.5-0317_daily_bin890.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.74e-07', energy_flux2='4.73e-04', photon_flux_error='6.64e-08', dlogl='1.46e+01', energy_flux='2.35e-04', photon_flux2='4.05e-07', job_status='DONE', time_completed='2021-09-29 14:49:34.036341', photon_index_error2='0.10', photon_index2='1.58', ts='361.04', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='9.44e-05', EG='0.75', time_epoch_completed='1632952174.04', return_code='0', job_id='811123', GAL2='0.89', EG2='0.90', return_code2='0', energy_flux_error='2.72e-05', photon_flux_error2='5.83e-08', ts2='392.68', photon_index='2.16' WHERE bin_id='890' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:49:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 811123: <4FGL_J2323.5-0317_daily_bin890> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin890 350.888 -3.29 470016001 470275201 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 :                                   678.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            837 sec.

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

