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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin939
RA = 350.888, Dec = -3.29
tmin = 482716801, tmax = 482976001
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='811193', job_status='RUN', time_executed='2021-09-29 14:36:04.229732', time_epoch_executed='1632951364.23' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811193

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811193/ft1_4FGL_J2323.5-0317_daily_bin939.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811193/ft2_4FGL_J2323.5-0317_daily_bin939.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811193/ft1_4FGL_J2323.5-0317_daily_bin939.fits outfile=/scratch/kocevski/811193/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin939.fits ra=350.888 dec=-3.29 rad=12.0 tmin=482716801.0 tmax=482976001.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.63
user 3.39
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811193/ft1_filtered_4FGL_J2323.5-0317_daily_bin939.fits" evtable="EVENTS" scfile=/scratch/kocevski/811193/ft2_4FGL_J2323.5-0317_daily_bin939.fits sctable="SC_DATA" outfile=/scratch/kocevski/811193/ltcube_482716801_482976001_4FGL_J2323.5-0317_daily_bin939.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/811193/ft2_4FGL_J2323.5-0317_daily_bin939.fits
.....................!
real 12.21
user 11.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811193/ft1_filtered_4FGL_J2323.5-0317_daily_bin939.fits evtable="EVENTS" scfile=/scratch/kocevski/811193/ft2_4FGL_J2323.5-0317_daily_bin939.fits sctable="SC_DATA" expcube=/scratch/kocevski/811193/ltcube_482716801_482976001_4FGL_J2323.5-0317_daily_bin939.fits outfile=/scratch/kocevski/811193/expmap_482716801_482976001_4FGL_J2323.5-0317_daily_bin939.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/811193/ltcube_482716801_482976001_4FGL_J2323.5-0317_daily_bin939.fits
.....................!
real 192.37
user 187.61
sys 4.36

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/811193/ft1_filtered_4FGL_J2323.5-0317_daily_bin939.fits scfile=/scratch/kocevski/811193/ft2_4FGL_J2323.5-0317_daily_bin939.fits outfile=/scratch/kocevski/811193/cmap_482716801_482976001_4FGL_J2323.5-0317_daily_bin939.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811193/ft1_filtered_4FGL_J2323.5-0317_daily_bin939.fits scfile=/scratch/kocevski/811193/ft2_4FGL_J2323.5-0317_daily_bin939.fits outfile=/scratch/kocevski/811193/cmap_HighResolution_482716801_482976001_4FGL_J2323.5-0317_daily_bin939.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5703.49158942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8626       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.202       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.297       1.0000         .10000E-03   10000.    
     5 'norm      '    4.6839       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.177       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9482       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.423       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23809       1.0000         .10000E-03   10000.    
    10 'norm      '    .46577       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1705       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.081       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .59258       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.478       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    82.425       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.260       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .49526       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1893       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5703.491     FROM MIGRAD    STATUS=FAILED      1077 CALLS     3423 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8633        8.1084        .14300E-03   -.39671E-04
   2  Prefactor     .10000E-03    11.420        .18142E-02** at limit **
   3  Prefactor     26.217        39.303        .78260E-04   -.16851E-04
   4  Prefactor     13.297        10.789        .10984E-03   -.23597E-04
   5  norm          4.6746        16.993        .18594E-03   -.13408E-03
   6  Prefactor     33.193        40.049        .69569E-04   -.50398E-04
   7  Prefactor     1.9381        73.744        .29735E-03   -.23781E-04
   8  Prefactor     32.750        85.552        .69312E-04   -.20503E-03
   9  Prefactor     .39799        117.71        .38551E-02   -.43324E-03
  10  norm          .46526        1.2498        .95693E-04   -.68431E-04
  11  norm          .10000E-03    2.3651        .11587E-02** at limit **
  12  Prefactor     5.1700        6.1797        .17679E-03   -.25400E-04
  13  Prefactor     .10000E-03    31.477        .18142E-02** at limit **
  14  Prefactor     24.659        263.81        .39994E-03   -.43492E-05
  15  Prefactor     .56291        8325.9        .45232E-02   -.15799E-03
  16  Prefactor     .10000E-03    8.8413        .18142E-02** at limit **
  17  norm          15.491        1017.9        .10180E-03   -.15232E-03
  18  Prefactor     .10000E-03    20.258        .18142E-02** at limit **
  19  Prefactor     .10000E-03    2.3714        .11529E-02** at limit **
  20  Prefactor     82.428        52.778        .44242E-04   -.75805E-04
  21  Prefactor     .10000E-03    6.1004        .18142E-02** at limit **
  22  Prefactor     37.254        19.260        .65658E-04   -.67355E-04
  23  Prefactor     .10000E-03    4.9931        .16758E-02** at limit **
  24  Normalizat    .49525        .30927        .36569E-03   -.33143E-03
  25  Prefactor     1.1893        .16510        .18516E-03   -.52085E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5703.491     FROM SIMPLEX   STATUS=PROGRESS    1252 CALLS     4675 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8633        8.1084        .43623E-06   -.39671E-04
   2  Prefactor     .10000E-03    11.420        .56587E-03** at limit **
   3  Prefactor     26.217        39.303        .41062E-06   -.16851E-04
   4  Prefactor     13.297        10.789        .41972E-06   -.23597E-04
   5  norm          4.6746        16.993        .42883E-06   -.13408E-03
   6  Prefactor     33.193        40.049        .40817E-06   -.50398E-04
   7  Prefactor     1.9381        73.744        .43626E-06   -.23781E-04
   8  Prefactor     32.750        85.552        .40833E-06   -.20503E-03
   9  Prefactor     .39799        117.71        .42805E-06   -.43324E-03
  10  norm          .46526        1.2498        .43564E-06   -.68431E-04
  11  norm          .10000E-03    2.3651        .13457E-03** at limit **
  12  Prefactor     5.1700        6.1797        .42666E-06   -.25400E-04
  13  Prefactor     .10000E-03    31.477        .60786E-03** at limit **
  14  Prefactor     24.659        263.81        .38740E-06   -.43492E-05
  15  Prefactor     .56291        8325.9        .19648E-05   -.15799E-03
  16  Prefactor     .10000E-03    8.8413        .37016E-03** at limit **
  17  norm          15.491        1017.9        .38946E-06   -.15232E-03
  18  Prefactor     .10000E-03    20.258        .63784E-03** at limit **
  19  Prefactor     .10000E-03    2.3714        .40900E-04** at limit **
  20  Prefactor     82.428        52.778        .38828E-06   -.75805E-04
  21  Prefactor     .10000E-03    6.1004        .24365E-03** at limit **
  22  Prefactor     37.254        19.260        .40565E-06   -.67355E-04
  23  Prefactor     .10000E-03    4.9931        .76871E-04** at limit **
  24  Normalizat    .49525        .30927        .31503E-06   -.33143E-03
  25  Prefactor     1.1893        .16510        .24254E-06   -.52085E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5703.491     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     5087 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8633        8.2844        .57200E-05   -.55651E-05
   2  Prefactor     .10000E-03    11.974        .36285E-03** at limit **
   3  Prefactor     26.217        39.739        .31304E-05   -.94424E-05
   4  Prefactor     13.297        11.052        .43938E-05   -.11385E-04
   5  norm          4.6747        17.322        .74377E-05   -.33016E-04
   6  Prefactor     33.193        40.738        .13914E-04   -.91513E-05
   7  Prefactor     1.9381        77.965        .11894E-04   -.59262E-05
   8  Prefactor     32.745        77.726        .13862E-04   -.12974E-03
   9  Prefactor     .39894        96.580        .15421E-03   -.55957E-04
  10  norm          .46525        .92671        .38277E-05   -.19127E-03
  11  norm          .10000E-03    2.4799        .23174E-03** at limit **
  12  Prefactor     5.1700        6.3293        .70718E-05   -.48228E-05
  13  Prefactor     .10000E-03    33.005        .36285E-03** at limit **
  14  Prefactor     24.658        184.30        .15998E-04   -.58273E-05
  15  Prefactor     .56464        421.96        .18093E-03   -.33868E-04
  16  Prefactor     .10000E-03    9.2708        .36285E-03** at limit **
  17  norm          15.488        55.209        .40721E-05   -.85988E-04
  18  Prefactor     .10000E-03    21.241        .36285E-03** at limit **
  19  Prefactor     .10000E-03    2.4853        .23058E-03** at limit **
  20  Prefactor     82.428        46.272        .88484E-05   -.28009E-04
  21  Prefactor     .10000E-03    6.3966        .36285E-03** at limit **
  22  Prefactor     37.254        19.663        .26263E-05   -.25107E-04
  23  Prefactor     .10000E-03    5.2378        .33516E-03** at limit **
  24  Normalizat    .49525        .24510        .14628E-04   -.14207E-03
  25  Prefactor     1.1893        .17313        .37033E-04   -.23141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.86326
  Prefactor  = 0.0001
  Prefactor  = 26.217
  Prefactor  = 13.2967
  norm       = 4.67471
  Prefactor  = 33.1933
  Prefactor  = 1.93812
  Prefactor  = 32.7454
  Prefactor  = 0.398942
  norm       = 0.465246
  norm       = 0.0001
  Prefactor  = 5.17004
  Prefactor  = 0.0001
  Prefactor  = 24.6583
  Prefactor  = 0.564641
  Prefactor  = 0.0001
  norm       = 15.4878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.4279
  Prefactor  = 0.0001
  Prefactor  = 37.2535
  Prefactor  = 0.0001
  Normalizat = 0.495249
  Prefactor  = 1.18934
 **********
 **   18 **HESSE 
 **********

 FCN=   5703.491     FROM HESSE     STATUS=OK           401 CALLS     5488 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8633        8.2816        .11440E-05   -1.5147    
   2  Prefactor     .10000E-03    11.974        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.217        40.011        .62608E-06   -1.4683    
   4  Prefactor     13.297        11.046        .87876E-06   -1.4979    
   5  norm          4.6747        17.335        .14875E-05   -1.5276    
   6  Prefactor     33.193        40.738        .27828E-05   -1.4555    
   7  Prefactor     1.9381        78.076        .23788E-05   -1.5430    
   8  Prefactor     32.745        76.973        .27725E-05   -1.4563    
   9  Prefactor     .39894        94.816        .61682E-05   -1.5582    
  10  norm          .46525        .92564        .76554E-06   -1.5572    
  11  norm          .10000E-03    2.4799        .46348E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1700        6.3277        .14144E-05   -1.5253    
  13  Prefactor     .10000E-03    33.005        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.658        184.97        .31995E-05   -1.4714    
  15  Prefactor     .56464        395.31        .72372E-05   -1.5558    
  16  Prefactor     .10000E-03    9.2708        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.488        53.401        .81442E-06   -1.4921    
  18  Prefactor     .10000E-03    21.241        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.4853        .46115E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     82.428        46.293        .17697E-05   -1.3890    
  21  Prefactor     .10000E-03    6.3966        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     37.254        19.614        .52527E-06   -1.4486    
  23  Prefactor     .10000E-03    5.2379        .67033E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .49525        .24513        .29255E-05   -1.1264    
  25  Prefactor     1.1893        .17323        .74066E-05   -.86660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5679e-10
Minuit parameter uncertainties:
  1  8.2828
  2  5.50701e-07
  3  40.052
  4  11.0482
  5  17.354
  6  40.7718
  7  24.6365
  8  77.2081
  9  12.3188
  10  0.925669
  11  2.9473e-06
  12  6.3285
  13  1.20005e-05
  14  135.659
  15  30.0791
  16  5.26121e-07
  17  53.5666
  18  1.97614e-06
  19  1.73106e-07
  20  46.3131
  21  9.0969e-08
  22  19.6176
  23  1.56269e-06
  24  0.245662
  25  0.173309
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.652e-01  9.257e-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.189e+00  1.733e-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:  4.952e-01  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/811193/likelihoodResults_482716801_482976001_4FGL_J2323.5-0317_daily_bin939.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) = 5702.93360359
delta logL = 0.557890141448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5702.92718097
delta logL = 0.564312762667

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51122       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2458       1.0000          .0000       5.0000    
     3 'Normalizat'    .43359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2129       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=   5702.927     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51072        6.8688        .10232E-01    .12806E-02
   2  alpha         3.2470        4.1227        .43746        .39767E-04
   3  Normalizat    .43341        .43551E-01    .87975E-01    .41604E-04
   4  Prefactor     1.2132        .33478E-01    .34333E-01   -.16076E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.510724
  alpha      = 3.24701
  Normalizat = 0.433412
  Prefactor  = 1.21315
 **********
 **   18 **HESSE 
 **********

 FCN=   5702.927     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51072        .84733        .46322E-04   -1.5565    
   2  alpha         3.2470        1.1707        .16238E-01    .30344    
   3  Normalizat    .43341        .23054        .38974E-03   -1.1561    
   4  Prefactor     1.2132        .17130        .18347E-03   -.85928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01096e-09
Minuit parameter uncertainties:
  1  0.84735
  2  1.2236
  3  0.231051
  4  0.171379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811193': 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) = 5702.92717883
delta logL = 0.564314904728

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  5.107e-01  8.474e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.247e+00  1.224e+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.213e+00  1.714e-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:  4.334e-01  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.25 +/- 1.22
Photon Flux (Free Index): 7.15e-08 +/- 6.82e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.25e-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/811193/cmap_HighResolution_482716801_482976001_4FGL_J2323.5-0317_daily_bin939.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.05e-05', comment='SUCCESS', energy_flux2='1.34e-05', dlogl='5.64e-01', photon_flux2='7.15e-08', job_status='DONE', time_completed='2021-09-29 14:48:59.835092', photon_index_error2='1.22', photon_index2='3.25', ts='0.32', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='9.88e-08', energy_flux_error2='1.25e-05', EG='0.50', time_epoch_completed='1632952139.84', return_code='0', job_id='811193', GAL2='1.21', EG2='0.43', return_code2='0', photon_flux_error2='6.82e-08', ts2='1.54', photon_index='2.16' WHERE bin_id='939' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:48:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 811193: <4FGL_J2323.5-0317_daily_bin939> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin939 350.888 -3.29 482716801 482976001 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 :                                   761.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

