/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 3 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 = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin310
RA = 350.888, Dec = -3.29
tmin = 319680001, tmax = 319939201
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='808311', job_status='RUN', time_executed='2021-09-29 14:25:44.119075', time_epoch_executed='1632950744.12' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808311

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808311/ft1_4FGL_J2323.5-0317_daily_bin310.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808311/ft2_4FGL_J2323.5-0317_daily_bin310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808311/ft1_4FGL_J2323.5-0317_daily_bin310.fits outfile=/scratch/kocevski/808311/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin310.fits ra=350.888 dec=-3.29 rad=12.0 tmin=319680001.0 tmax=319939201.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.48
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808311/ft1_filtered_4FGL_J2323.5-0317_daily_bin310.fits" evtable="EVENTS" scfile=/scratch/kocevski/808311/ft2_4FGL_J2323.5-0317_daily_bin310.fits sctable="SC_DATA" outfile=/scratch/kocevski/808311/ltcube_319680001_319939201_4FGL_J2323.5-0317_daily_bin310.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/808311/ft2_4FGL_J2323.5-0317_daily_bin310.fits
.....................!
real 12.65
user 12.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808311/ft1_filtered_4FGL_J2323.5-0317_daily_bin310.fits evtable="EVENTS" scfile=/scratch/kocevski/808311/ft2_4FGL_J2323.5-0317_daily_bin310.fits sctable="SC_DATA" expcube=/scratch/kocevski/808311/ltcube_319680001_319939201_4FGL_J2323.5-0317_daily_bin310.fits outfile=/scratch/kocevski/808311/expmap_319680001_319939201_4FGL_J2323.5-0317_daily_bin310.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/808311/ltcube_319680001_319939201_4FGL_J2323.5-0317_daily_bin310.fits
.....................!
real 194.79
user 188.67
sys 5.40

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/808311/ft1_filtered_4FGL_J2323.5-0317_daily_bin310.fits scfile=/scratch/kocevski/808311/ft2_4FGL_J2323.5-0317_daily_bin310.fits outfile=/scratch/kocevski/808311/cmap_319680001_319939201_4FGL_J2323.5-0317_daily_bin310.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808311/ft1_filtered_4FGL_J2323.5-0317_daily_bin310.fits scfile=/scratch/kocevski/808311/ft2_4FGL_J2323.5-0317_daily_bin310.fits outfile=/scratch/kocevski/808311/cmap_HighResolution_319680001_319939201_4FGL_J2323.5-0317_daily_bin310.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808311/ft1_filtered_4FGL_J2323.5-0317_daily_bin310.fits evtable="EVENTS" scfile=/scratch/kocevski/808311/ft2_4FGL_J2323.5-0317_daily_bin310.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808311/Model_4FGL_J2323.5-0317_daily_bin310.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/808311/ft1_filtered_4FGL_J2323.5-0317_daily_bin310.fits.....................!
real 59.51
user 57.95
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.033       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9229       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27054       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.448       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12116E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .51001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .41064       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.813       1.0000         .10000E-03   10000.    
    14 'Prefactor '    183.45       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12999E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.825       1.0000         .10000E-03   10000.    
    17 'norm      '    19.714       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.900       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.429       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.134       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2106       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80241       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1728       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=   6267.752     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3529 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.032        8.3996       -.41609E-06   -.17613E-04
   2  Prefactor     .10000E-03    23.791        .36603E-07** at limit **
   3  Prefactor     9.0091        35.906       -.22851E-05   -.51844E-04
   4  Prefactor     .13955        160.99        .36237E-04   -.20943E-03
   5  norm          .10000E-03    19.317        .24352E-05** at limit **
   6  Prefactor     .10000E-03    23.709        .11287E-06** at limit **
   7  Prefactor     12.439        23.333        .28843E-05   -.54369E-04
   8  Prefactor     .10003E-03    340.05       -.13519E-04** at limit **
   9  Prefactor     .10070E-03    53.902       -.18436E-04** at limit **
  10  norm          .41010        .85626        .30011E-07   -.23516E-03
  11  norm          .10000E-03    4.4662        .11329E-05** at limit **
  12  Prefactor     .10000E-03    3.9442        .14336E-06** at limit **
  13  Prefactor     39.797        58.345        .42665E-06   -.27009E-04
  14  Prefactor     183.34        309.09       -.42853E-05   -.25684E-04
  15  Prefactor     .10000E-03    52.684        .15567E-04** at limit **
  16  Prefactor     21.817        29.123        .15503E-05   -.29213E-04
  17  norm          19.700        24.053        .17682E-05   -.47284E-04
  18  Prefactor     .10000E-03    46.375        .87738E-05** at limit **
  19  Prefactor     11.895        7.7455        .94680E-06   -.43569E-03
  20  Prefactor     17.424        30.854        .16137E-05   -.28998E-04
  21  Prefactor     .10000E-03    15.115        .52627E-06** at limit **
  22  Prefactor     39.130        23.579        .10377E-05   -.68714E-04
  23  Prefactor     1.2096        14.698       -.97223E-06   -.16397E-03
  24  Normalizat    .80237        .22401       -.73570E-06   -.51486E-03
  25  Prefactor     1.1729        .15773       -.27990E-05   -.47080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0323
  Prefactor  = 0.0001
  Prefactor  = 9.00915
  Prefactor  = 0.139548
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4392
  Prefactor  = 0.000100027
  Prefactor  = 0.000100704
  norm       = 0.410098
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.797
  Prefactor  = 183.343
  Prefactor  = 0.0001
  Prefactor  = 21.8167
  norm       = 19.7
  Prefactor  = 0.0001
  Prefactor  = 11.8945
  Prefactor  = 17.4237
  Prefactor  = 0.0001
  Prefactor  = 39.1298
  Prefactor  = 1.20961
  Normalizat = 0.802372
  Prefactor  = 1.17293
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.752     FROM HESSE     STATUS=OK           445 CALLS     3974 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.032        8.3794        .12062E-03   -1.5044    
   2  Prefactor     .10000E-03    23.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.0091        35.728        .13418E-03   -1.5108    
   4  Prefactor     .13955        15.058        .72613E-01   -1.5633    
   5  norm          .10000E-03    19.993        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.439        23.341        .11354E-03   -1.5002    
   8  Prefactor     .10003E-03    343.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10070E-03    9.5084        .63395E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .41010        .73999        .96539E-03   -1.5580    
  11  norm          .10000E-03    4.5214        .16324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9513        .15355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     39.797        58.287        .63526E-04   -1.4445    
  14  Prefactor     183.34        305.02        .14904E-03   -1.2992    
  15  Prefactor     .10000E-03    51.129        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.817        29.124        .85738E-04   -1.4773    
  17  norm          19.700        23.959        .90207E-04   -1.4820    
  18  Prefactor     .10000E-03    46.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.895        7.7213        .11613E-03   -1.5018    
  20  Prefactor     17.424        30.841        .95935E-04   -1.4873    
  21  Prefactor     .10000E-03    15.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     39.130        23.619        .64072E-04   -1.4456    
  23  Prefactor     1.2096        15.148        .41120E-03   -1.5488    
  24  Normalizat    .80237        .25518        .32846E-03   -.99981    
  25  Prefactor     1.1729        .17972        .20490E-03   -.87169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79797e-09
Minuit parameter uncertainties:
  1  8.38031
  2  3.82801e-05
  3  35.813
  4  2.89888
  5  0.000137391
  6  5.98749e-05
  7  23.358
  8  0.00616638
  9  0.00517353
  10  0.740006
  11  1.78614e-05
  12  3.96609e-06
  13  58.371
  14  307.71
  15  0.000275031
  16  29.143
  17  23.9707
  18  7.40679e-05
  19  7.72194
  20  30.8693
  21  2.16877e-05
  22  23.6244
  23  8.56349
  24  0.255565
  25  0.179814
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.101e-01  7.400e-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:  1.173e+00  1.798e-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:  8.024e-01  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/808311/likelihoodResults_319680001_319939201_4FGL_J2323.5-0317_daily_bin310.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) = 6267.75079492
delta logL = 0.00129820995608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6267.75063284
delta logL = 0.00146028603558

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39844       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0806       1.0000          .0000       5.0000    
     3 'Normalizat'    .80395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1724       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6267.751     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      238 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39691        .74987        .97552E-03    .54638E-02
   2  alpha         2.0718        1.4761        .36189E-01    .20402E-04
   3  Normalizat    .80414        .23693        .32814E-03    .43792E-04
   4  Prefactor     1.1723        .17546        .20495E-03    .18790E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.396909
  alpha      = 2.07177
  Normalizat = 0.804144
  Prefactor  = 1.17229
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.751     FROM HESSE     STATUS=OK            27 CALLS      265 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39691        .76883        .19510E-03   -1.5582    
   2  alpha         2.0718        1.5107        .14475E-02   -.17214    
   3  Normalizat    .80414        .23706        .13126E-04   -.99915    
   4  Prefactor     1.1723        .17556        .40990E-04   -.87188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93677e-10
Minuit parameter uncertainties:
  1  0.768852
  2  1.62633
  3  0.237362
  4  0.175646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808311': 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) = 6267.75061805
delta logL = 0.00147507410202

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.969e-01  7.689e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.072e+00  1.626e+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:  1.172e+00  1.756e-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:  8.041e-01  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.45
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/808311/cmap_HighResolution_319680001_319939201_4FGL_J2323.5-0317_daily_bin310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-05', job_status='DONE', photon_flux_upper_limit='9.26e-08', time_completed='2021-09-29 14:38:07.430279', job_id='808311', GAL2='1.17', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1632951487.43', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.48e-03', ts2='0.46', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='310' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:38:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 808311: <4FGL_J2323.5-0317_daily_bin310> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin310> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:30 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:32 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:25:32 2021
Terminated at Wed Sep 29 14:38:08 2021
Results reported at Wed Sep 29 14:38:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin310 350.888 -3.29 319680001 319939201 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 :                                   711.54 sec.
    Max Memory :                                 1213 MB
    Average Memory :                             322.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            758 sec.

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

