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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin971
RA = 350.888, Dec = -3.29
tmin = 491011201, tmax = 491270401
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='811240', job_status='RUN', time_executed='2021-09-29 14:37:15.936736', time_epoch_executed='1632951435.94' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811240

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811240/ft1_4FGL_J2323.5-0317_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811240/ft2_4FGL_J2323.5-0317_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811240/ft1_4FGL_J2323.5-0317_daily_bin971.fits outfile=/scratch/kocevski/811240/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin971.fits ra=350.888 dec=-3.29 rad=12.0 tmin=491011201.0 tmax=491270401.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.56
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811240/ft1_filtered_4FGL_J2323.5-0317_daily_bin971.fits" evtable="EVENTS" scfile=/scratch/kocevski/811240/ft2_4FGL_J2323.5-0317_daily_bin971.fits sctable="SC_DATA" outfile=/scratch/kocevski/811240/ltcube_491011201_491270401_4FGL_J2323.5-0317_daily_bin971.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/811240/ft2_4FGL_J2323.5-0317_daily_bin971.fits
.....................!
real 12.44
user 12.03
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811240/ft1_filtered_4FGL_J2323.5-0317_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/811240/ft2_4FGL_J2323.5-0317_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/811240/ltcube_491011201_491270401_4FGL_J2323.5-0317_daily_bin971.fits outfile=/scratch/kocevski/811240/expmap_491011201_491270401_4FGL_J2323.5-0317_daily_bin971.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/811240/ltcube_491011201_491270401_4FGL_J2323.5-0317_daily_bin971.fits
.....................!
real 191.04
user 185.35
sys 5.31

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/811240/ft1_filtered_4FGL_J2323.5-0317_daily_bin971.fits scfile=/scratch/kocevski/811240/ft2_4FGL_J2323.5-0317_daily_bin971.fits outfile=/scratch/kocevski/811240/cmap_491011201_491270401_4FGL_J2323.5-0317_daily_bin971.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.55
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811240/ft1_filtered_4FGL_J2323.5-0317_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/811240/ft2_4FGL_J2323.5-0317_daily_bin971.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811240/Model_4FGL_J2323.5-0317_daily_bin971.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/811240/ft1_filtered_4FGL_J2323.5-0317_daily_bin971.fits.....................!
real 49.49
user 48.01
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.564       1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.699       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.255       1.0000         .10000E-03   10000.    
     5 'norm      '    36.352       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .52085E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0029       1.0000         .10000E-03   10000.    
    10 'norm      '    .10199E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0677       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    315.64       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.025       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.280       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.053       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7934       1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.757       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    42.766       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61920       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0024       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=   4909.389     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2915 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5110        .19292E-07** at limit **
   2  Prefactor     23.563        47.374       -.27841E-06    .12465E-05
   3  Prefactor     42.692        46.623       -.87887E-06    .53418E-06
   4  Prefactor     18.256        12.555        .43572E-07    .54128E-05
   5  norm          36.351        16.999       -.43459E-07   -.24100E-04
   6  Prefactor     .10000E-03    14.775       -.13944E-05** at limit **
   7  Prefactor     .10000E-03    101.13       -.14491E-04** at limit **
   8  Prefactor     .10000E-03    36.475        .11068E-05** at limit **
   9  Prefactor     3.0015        7.2967        .31266E-07    .91282E-05
  10  norm          .10000E-03    .65679        .14787E-06** at limit **
  11  norm          .10000E-03    8.0320       -.44947E-06** at limit **
  12  Prefactor     5.0683        9.0285       -.19059E-05   -.66230E-04
  13  Prefactor     .10000E-03    13.144        .12177E-05** at limit **
  14  Prefactor     315.64        217.60       -.21363E-06   -.27680E-04
  15  Prefactor     11.016        16.437       -.27425E-05   -.62739E-04
  16  Prefactor     .10000E-03    23.640       -.80995E-06** at limit **
  17  norm          10.312        36.621        .82959E-05   -.66221E-05
  18  Prefactor     11.054        40.736        .38046E-06   -.17495E-05
  19  Prefactor     3.7924        4.6547       -.42948E-06   -.11492E-03
  20  Prefactor     51.757        35.095       -.25619E-07   -.26385E-05
  21  Prefactor     .10000E-03    5.5046        .34531E-07** at limit **
  22  Prefactor     42.769        24.134        .28236E-06   -.94784E-06
  23  Prefactor     .10000E-03    4.4751        .20906E-08** at limit **
  24  Normalizat    .61941        .21748       -.25918E-05   -.18384E-04
  25  Prefactor     1.0022        .15733        .16198E-05   -.16606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.5631
  Prefactor  = 42.6922
  Prefactor  = 18.2561
  norm       = 36.3509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.00149
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.06826
  Prefactor  = 0.0001
  Prefactor  = 315.641
  Prefactor  = 11.016
  Prefactor  = 0.0001
  norm       = 10.3118
  Prefactor  = 11.054
  Prefactor  = 3.79245
  Prefactor  = 51.7566
  Prefactor  = 0.0001
  Prefactor  = 42.7692
  Prefactor  = 0.0001
  Normalizat = 0.619406
  Prefactor  = 1.00224
 **********
 **   18 **HESSE 
 **********

 FCN=   4909.389     FROM HESSE     STATUS=OK           431 CALLS     3346 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5156        .12819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.563        47.343        .82517E-04   -1.4737    
   3  Prefactor     42.692        46.648        .61349E-04   -1.4400    
   4  Prefactor     18.256        12.556        .93741E-04   -1.4853    
   5  norm          36.351        16.982        .66471E-04   -1.4501    
   6  Prefactor     .10000E-03    14.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    98.986        .49814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0015        7.2195        .23423E-03   -1.5361    
  10  norm          .10000E-03    1.3139        .10763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.1645        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.0683        9.0992        .89306E-03   -1.5258    
  13  Prefactor     .10000E-03    13.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     315.64        216.11        .11439E-03   -1.2136    
  15  Prefactor     11.016        16.561        .12066E-03   -1.5044    
  16  Prefactor     .10000E-03    23.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.312        37.021        .12497E-03   -1.5066    
  18  Prefactor     11.054        40.709        .12051E-03   -1.5043    
  19  Prefactor     3.7924        4.6334        .14945E-03   -1.5318    
  20  Prefactor     51.757        35.088        .55747E-04   -1.4268    
  21  Prefactor     .10000E-03    5.5076        .16056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     42.769        24.123        .61301E-04   -1.4399    
  23  Prefactor     .10000E-03    4.5182        .14474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .61941        .24381        .31900E-03   -1.0717    
  25  Prefactor     1.0022        .17665        .19215E-03   -.92655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20049e-10
Minuit parameter uncertainties:
  1  1.52629e-06
  2  47.4182
  3  46.6877
  4  12.5576
  5  16.9841
  6  6.47942e-06
  7  0.000133505
  8  3.72433e-06
  9  7.22164
  10  1.30659e-05
  11  9.84219e-06
  12  9.1017
  13  2.1084e-06
  14  216.666
  15  16.5677
  16  1.82764e-06
  17  37.1033
  18  40.8113
  19  4.63384
  20  35.1017
  21  7.95787e-07
  22  24.1289
  23  1.30687e-06
  24  0.244239
  25  0.17675
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  1.307e-05  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:  1.002e+00  1.768e-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.194e-01  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/811240/likelihoodResults_491011201_491270401_4FGL_J2323.5-0317_daily_bin971.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) = 4909.39289245
delta logL = -0.00365741575752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4909.37905776
delta logL = 0.0101772722328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56294E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2512       1.0000          .0000       5.0000    
     3 'Normalizat'    .61203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0044       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=   4909.379     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      283 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56294E-01    6.5366        .13767E-01    .15449E-02
   2  alpha         3.2512        3.3715        .43787        .11958E-04
   3  Normalizat    .61204        .24335E-01    .72459E-01    .27105E-04
   4  Prefactor     1.0044        .18379E-01    .44330E-01    .16489E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0562942
  alpha      = 3.25116
  Normalizat = 0.612042
  Prefactor  = 1.00436
 **********
 **   18 **HESSE 
 **********

 FCN=   4909.379     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      318 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56294E-01    138.01        .73946E-03   -1.5661    
   2  alpha         3.2512        3.3500        .73555E-01    .30518    
   3  Normalizat    .61204        .27128        .32075E-03   -1.0747    
   4  Prefactor     1.0044        .14523        .19195E-03   -.92584    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.27612e-06
Minuit parameter uncertainties:
  1  5.58259
  2  42.4011
  3  0.271868
  4  0.145291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811240': 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): 102
logL (Free Index) = 4909.37905776
delta logL = 0.0101772736207

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  5.629e-02  5.583e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.251e+00  4.240e+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:  1.004e+00  1.453e-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.120e-01  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/811240/cmap_HighResolution_491011201_491270401_4FGL_J2323.5-0317_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.30e-05', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2021-09-29 14:47:18.845419', job_id='811240', GAL2='1.00', fit_tolerance='1e-08', EG2='0.61', EG='0.62', time_epoch_completed='1632952038.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.02e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='971' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:47:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 811240: <4FGL_J2323.5-0317_daily_bin971> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin971 350.888 -3.29 491011201 491270401 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 :                                   593.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            692 sec.

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

