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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin1017
RA = 350.888, Dec = -3.29
tmin = 502934401, tmax = 503193601
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='812447', job_status='RUN', time_executed='2021-09-29 14:42:31.635108', time_epoch_executed='1632951751.64' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812447/ft1_4FGL_J2323.5-0317_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812447/ft2_4FGL_J2323.5-0317_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812447/ft1_4FGL_J2323.5-0317_daily_bin1017.fits outfile=/scratch/kocevski/812447/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin1017.fits ra=350.888 dec=-3.29 rad=12.0 tmin=502934401.0 tmax=503193601.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.04
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812447/ft1_filtered_4FGL_J2323.5-0317_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/812447/ft2_4FGL_J2323.5-0317_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/812447/ltcube_502934401_503193601_4FGL_J2323.5-0317_daily_bin1017.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/812447/ft2_4FGL_J2323.5-0317_daily_bin1017.fits
.....................!
real 12.86
user 12.38
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812447/ft1_filtered_4FGL_J2323.5-0317_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/812447/ft2_4FGL_J2323.5-0317_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/812447/ltcube_502934401_503193601_4FGL_J2323.5-0317_daily_bin1017.fits outfile=/scratch/kocevski/812447/expmap_502934401_503193601_4FGL_J2323.5-0317_daily_bin1017.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/812447/ltcube_502934401_503193601_4FGL_J2323.5-0317_daily_bin1017.fits
.....................!
real 190.39
user 185.72
sys 4.19

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/812447/ft1_filtered_4FGL_J2323.5-0317_daily_bin1017.fits scfile=/scratch/kocevski/812447/ft2_4FGL_J2323.5-0317_daily_bin1017.fits outfile=/scratch/kocevski/812447/cmap_502934401_503193601_4FGL_J2323.5-0317_daily_bin1017.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812447/ft1_filtered_4FGL_J2323.5-0317_daily_bin1017.fits scfile=/scratch/kocevski/812447/ft2_4FGL_J2323.5-0317_daily_bin1017.fits outfile=/scratch/kocevski/812447/cmap_HighResolution_502934401_503193601_4FGL_J2323.5-0317_daily_bin1017.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/812447/ft1_filtered_4FGL_J2323.5-0317_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/812447/ft2_4FGL_J2323.5-0317_daily_bin1017.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/812447/Model_4FGL_J2323.5-0317_daily_bin1017.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/812447/ft1_filtered_4FGL_J2323.5-0317_daily_bin1017.fits.....................!
real 63.84
user 62.43
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.454       1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.412       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.602       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.199       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      '    .70313       1.0000         .10000E-03   10000.    
    11 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.866       1.0000         .10000E-03   10000.    
    13 'Prefactor '    73.067       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.254       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.5914       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4327       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6197       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.116       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.113       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0074       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87751       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=   6642.699     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2907 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9447        .26165E-07** at limit **
   2  Prefactor     16.448        38.509        .85025E-06    .13260E-04
   3  Prefactor     44.408        30.693        .60457E-07    .12288E-04
   4  Prefactor     .10000E-03    3.3746        .37326E-07** at limit **
   5  norm          .10000E-03    15.273        .34865E-05** at limit **
   6  Prefactor     29.597        39.162        .54666E-06    .11995E-04
   7  Prefactor     13.199        12.410        .47842E-08   -.15793E-04
   8  Prefactor     .10000E-03    14.257       -.18111E-05** at limit **
   9  Prefactor     .10000E-03    2.5870        .58190E-07** at limit **
  10  norm          .70259        .94608       -.18312E-06   -.27542E-03
  11  norm          .10000E-03    20.036        .78722E-05** at limit **
  12  Prefactor     14.866        10.971       -.44043E-07   -.46883E-04
  13  Prefactor     73.067        58.746        .50131E-07    .62574E-05
  14  Prefactor     .10000E-03    140.60        .40187E-05** at limit **
  15  Prefactor     15.258        24.893       -.20855E-07    .56379E-04
  16  Prefactor     .10000E-03    22.527        .35702E-05** at limit **
  17  norm          9.5841        34.233        .94767E-06    .30361E-04
  18  Prefactor     .10000E-03    71.741       -.24691E-05** at limit **
  19  Prefactor     8.4327        7.5034        .11089E-06    .16979E-03
  20  Prefactor     3.6176        44.533       -.21095E-06    .74749E-05
  21  Prefactor     10.116        20.565       -.23426E-05    .79113E-04
  22  Prefactor     16.112        16.108       -.55722E-07    .19279E-04
  23  Prefactor     .10000E-03    3.0511       -.71992E-07** at limit **
  24  Normalizat    1.0076        .18846        .78585E-06   -.46528E-04
  25  Prefactor     .87744        .13597        .14253E-06   -.40318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.4481
  Prefactor  = 44.4078
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.597
  Prefactor  = 13.1986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.702591
  norm       = 0.0001
  Prefactor  = 14.8661
  Prefactor  = 73.0665
  Prefactor  = 0.0001
  Prefactor  = 15.2584
  Prefactor  = 0.0001
  norm       = 9.58412
  Prefactor  = 0.0001
  Prefactor  = 8.43272
  Prefactor  = 3.61761
  Prefactor  = 10.1158
  Prefactor  = 16.1117
  Prefactor  = 0.0001
  Normalizat = 1.00755
  Prefactor  = 0.877444
 **********
 **   18 **HESSE 
 **********

 FCN=   6642.699     FROM HESSE     STATUS=OK           429 CALLS     3336 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.448        38.556        .98738E-04   -1.4897    
   3  Prefactor     44.408        30.746        .60160E-04   -1.4374    
   4  Prefactor     .10000E-03    3.3869        .14621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    15.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.597        39.248        .73638E-04   -1.4619    
   7  Prefactor     13.199        12.408        .11025E-03   -1.4981    
   8  Prefactor     .10000E-03    14.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5920        .12797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .70259        .91483        .85240E-04   -1.5540    
  11  norm          .10000E-03    19.764        .32040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.866        10.979        .10388E-03   -1.4937    
  13  Prefactor     73.067        58.714        .46968E-04   -1.3996    
  14  Prefactor     .10000E-03    141.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.258        24.533        .10255E-03   -1.4927    
  16  Prefactor     .10000E-03    23.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.5841        33.882        .12940E-03   -1.5089    
  18  Prefactor     .10000E-03    72.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.4327        7.4863        .13805E-03   -1.5127    
  20  Prefactor     3.6176        44.409        .21236E-03   -1.5328    
  21  Prefactor     10.116        21.054        .62992E-03   -1.5072    
  22  Prefactor     16.112        16.110        .99777E-04   -1.4905    
  23  Prefactor     .10000E-03    3.0657        .13903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0076        .21717        .27405E-03   -.92778    
  25  Prefactor     .87744        .15761        .21541E-03   -.96934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.08365e-11
Minuit parameter uncertainties:
  1  3.61249e-05
  2  38.6143
  3  30.7566
  4  2.06045e-06
  5  5.00432e-07
  6  39.2827
  7  12.4109
  8  7.27351e-05
  9  1.2808e-06
  10  0.914845
  11  3.82012e-05
  12  10.98
  13  58.7605
  14  0.000405727
  15  24.5488
  16  0.000111152
  17  33.9505
  18  0.000253772
  19  7.48713
  20  25.3731
  21  21.069
  22  16.1144
  23  6.56131e-06
  24  0.217361
  25  0.157693
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  7.026e-01  9.148e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  8.774e-01  1.577e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.008e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/812447/likelihoodResults_502934401_503193601_4FGL_J2323.5-0317_daily_bin1017.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) = 6642.14934437
delta logL = 0.549883215255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6642.1490162
delta logL = 0.550211394338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48300       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2203       1.0000          .0000       5.0000    
     3 'Normalizat'    .96087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89918       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=   6642.149     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      243 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48292        5.9221        .10069E-01    .13979E-02
   2  alpha         3.2205        4.1062        .43550        .49339E-04
   3  Normalizat    .96100        .42488E-01    .45675E-01    .16169E-04
   4  Prefactor     .89911        .31744E-01    .44995E-01    .87038E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.482918
  alpha      = 3.2205
  Normalizat = 0.961
  Prefactor  = 0.899114
 **********
 **   18 **HESSE 
 **********

 FCN=   6642.149     FROM HESSE     STATUS=OK            35 CALLS      278 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48292        1.4681        .46031E-03   -1.5569    
   2  alpha         3.2205        1.9489        .16853E-01    .29235    
   3  Normalizat    .96100        .21640        .27956E-03   -.94349    
   4  Prefactor     .89911        .15933        .21296E-03   -.96172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36565e-08
Minuit parameter uncertainties:
  1  1.46819
  2  2.27703
  3  0.216601
  4  0.159416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812447': 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) = 6642.14901592
delta logL = 0.550211669402

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.829e-01  1.468e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.221e+00  2.277e+00  0.000e+00  5.000e+00 ( 1.000e+00)
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  8.991e-01  1.594e-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.610e-01  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.22 +/- 2.28
Photon Flux (Free Index): 6.52e-08 +/- 5.53e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.35e-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/812447/cmap_HighResolution_502934401_503193601_4FGL_J2323.5-0317_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-05', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='5.50e-01', photon_flux2='6.52e-08', job_status='DONE', time_completed='2021-09-29 14:54:25.891803', photon_index_error2='2.28', photon_index2='3.22', ts='0.75', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.35e-05', EG='1.01', time_epoch_completed='1632952465.89', return_code='0', job_id='812447', GAL2='0.90', EG2='0.96', return_code2='0', photon_flux_error2='5.53e-08', ts2='1.90', photon_index='2.16' WHERE bin_id='1017' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:54:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 812447: <4FGL_J2323.5-0317_daily_bin1017> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin1017> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 14:40:16 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:40:17 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:40:17 2021
Terminated at Wed Sep 29 14:54:26 2021
Results reported at Wed Sep 29 14:54:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin1017 350.888 -3.29 502934401 503193601 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 :                                   693.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            850 sec.

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

