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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin334
RA = 350.888, Dec = -3.29
tmin = 325900801, tmax = 326160001
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='808346', job_status='RUN', time_executed='2021-09-29 14:27:31.300028', time_epoch_executed='1632950851.3' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808346

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808346/ft1_4FGL_J2323.5-0317_daily_bin334.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808346/ft2_4FGL_J2323.5-0317_daily_bin334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808346/ft1_4FGL_J2323.5-0317_daily_bin334.fits outfile=/scratch/kocevski/808346/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin334.fits ra=350.888 dec=-3.29 rad=12.0 tmin=325900801.0 tmax=326160001.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.46
user 3.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808346/ft2_4FGL_J2323.5-0317_daily_bin334.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/808346/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin334.fits evtable="EVENTS" outfile="/scratch/kocevski/808346/ft1_filtered_4FGL_J2323.5-0317_daily_bin334.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808346/ft1_filtered_4FGL_J2323.5-0317_daily_bin334.fits" evtable="EVENTS" scfile=/scratch/kocevski/808346/ft2_4FGL_J2323.5-0317_daily_bin334.fits sctable="SC_DATA" outfile=/scratch/kocevski/808346/ltcube_325900801_326160001_4FGL_J2323.5-0317_daily_bin334.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/808346/ft2_4FGL_J2323.5-0317_daily_bin334.fits
.....................!
real 12.12
user 11.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808346/ft1_filtered_4FGL_J2323.5-0317_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/808346/ft2_4FGL_J2323.5-0317_daily_bin334.fits sctable="SC_DATA" expcube=/scratch/kocevski/808346/ltcube_325900801_326160001_4FGL_J2323.5-0317_daily_bin334.fits outfile=/scratch/kocevski/808346/expmap_325900801_326160001_4FGL_J2323.5-0317_daily_bin334.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/808346/ltcube_325900801_326160001_4FGL_J2323.5-0317_daily_bin334.fits
.....................!
real 190.65
user 185.68
sys 4.65

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/808346/ft1_filtered_4FGL_J2323.5-0317_daily_bin334.fits scfile=/scratch/kocevski/808346/ft2_4FGL_J2323.5-0317_daily_bin334.fits outfile=/scratch/kocevski/808346/cmap_325900801_326160001_4FGL_J2323.5-0317_daily_bin334.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808346/ft1_filtered_4FGL_J2323.5-0317_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/808346/ft2_4FGL_J2323.5-0317_daily_bin334.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808346/Model_4FGL_J2323.5-0317_daily_bin334.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/808346/ft1_filtered_4FGL_J2323.5-0317_daily_bin334.fits....................!
real 55.39
user 54.11
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7377       1.0000         .10000E-03   10000.    
     5 'norm      '    12.495       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7042       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .53878       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.937       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .47930E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0573       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8896       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    138.64       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.154       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .70742E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .55011E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18663E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3963       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11740E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0611       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91847       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=   5508.334     FROM MIGRAD    STATUS=FAILED      1062 CALLS     3407 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5224        .18142E-02** at limit **
   2  Prefactor     .10000E-03    39.204        .18142E-02** at limit **
   3  Prefactor     .10000E-03    45.723        .18142E-02** at limit **
   4  Prefactor     8.7375        8.6255        .13560E-03    .70760E-04
   5  norm          12.496        10.101        .11332E-03    .14146E-04
   6  Prefactor     9.7035        28.233        .12864E-03    .59212E-05
   7  Prefactor     .55212        130.69        .50457E-02    .65094E-03
   8  Prefactor     38.898        50.593        .64233E-04    .25763E-03
   9  Prefactor     .10002E-03    27.936        .36648E-02** at limit **
  10  norm          2.0576        1.0503        .28814E-04    .55553E-03
  11  norm          .10000E-03    1.7383        .95485E-03** at limit **
  12  Prefactor     1.8891        12.427        .30271E-03   -.38833E-04
  13  Prefactor     .10000E-03    10.437        .18142E-02** at limit **
  14  Prefactor     138.78        157.61        .17105E-03    .23207E-03
  15  Prefactor     .10000E-03    5.7882        .17388E-02** at limit **
  16  Prefactor     44.155        27.512        .60335E-04   -.41077E-04
  17  norm          .10000E-03    12.663        .18142E-02** at limit **
  18  Prefactor     .10005E-03    46.816        .16001    ** at limit **
  19  Prefactor     .10000E-03    45.231        .20690E-02** at limit **
  20  Prefactor     .10066E-03    27.042        .11041    ** at limit **
  21  Prefactor     5.3951        20.907        .86495E-03   -.45819E-04
  22  Prefactor     .10000E-03    56.969        .36285E-03** at limit **
  23  Prefactor     .10000E-03    19.543        .34658E-02** at limit **
  24  Normalizat    1.0610        .23978        .26833E-03    .43050E-03
  25  Prefactor     .91848        .17256        .21114E-03    .54169E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5508.334     FROM SIMPLEX   STATUS=UNCHANGED   1185 CALLS     4592 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5224        .48363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.204        .35216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.723        .41793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7375        8.6255        .88341E-06   -1.5117    
   5  norm          12.496        10.101        .87614E-06   -1.5001    
   6  Prefactor     9.7035        28.233        .88068E-06   -1.5085    
   7  Prefactor     .55212        130.69        .89703E-06   -1.5559    
   8  Prefactor     38.898        50.593        .84358E-06   -1.4460    
   9  Prefactor     .10002E-03    27.936        .44438E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0576        1.0503        .90079E-06   -1.5421    
  11  norm          .10000E-03    1.7383        .17314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8891        12.427        .90202E-06   -1.5433    
  13  Prefactor     .10000E-03    10.437        .46068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     138.78        157.61        .77994E-06   -1.3346    
  15  Prefactor     .10000E-03    5.7882        .20291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     44.155        27.512        .83940E-06   -1.4378    
  17  norm          .10000E-03    12.663        .52477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10005E-03    46.816        .18994E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    45.231        .44233E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10066E-03    27.042        .21327E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.3951        20.907        .89083E-06   -1.5243    
  22  Prefactor     .10000E-03    56.969        .34014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.543        .28555E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0610        .23978        .53181E-06   -.91013    
  25  Prefactor     .91848        .17256        .55797E-06   -.95498    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5508.334     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     5020 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5272        .36285E-03** at limit **
   2  Prefactor     .10000E-03    39.207        .36285E-03** at limit **
   3  Prefactor     .10000E-03    45.730        .36285E-03** at limit **
   4  Prefactor     8.7375        8.6253        .54241E-05   -.20960E-05
   5  norm          12.496        10.100        .45328E-05   -.70227E-05
   6  Prefactor     9.7035        28.228        .51456E-05   -.26513E-05
   7  Prefactor     .55227        131.87        .10091E-02    .14195E-05
   8  Prefactor     38.897        50.487        .12847E-04   -.32920E-04
   9  Prefactor     .10000E-03    28.277        .73295E-03** at limit **
  10  norm          2.0576        1.0503        .11526E-05   -.11626E-03
  11  norm          .10000E-03    1.7384        .19097E-03** at limit **
  12  Prefactor     1.8891        12.420        .12109E-04   -.46945E-05
  13  Prefactor     .10000E-03    10.437        .36285E-03** at limit **
  14  Prefactor     138.77        157.54        .34210E-04   -.35226E-05
  15  Prefactor     .10000E-03    5.7893        .34777E-03** at limit **
  16  Prefactor     44.155        27.506        .24134E-05   -.19785E-04
  17  norm          .10000E-03    12.664        .36285E-03** at limit **
  18  Prefactor     .10003E-03    46.942        .15960    ** at limit **
  19  Prefactor     .10000E-03    47.010        .82760E-03** at limit **
  20  Prefactor     .10055E-03    26.331        .11267    ** at limit **
  21  Prefactor     5.3952        20.895        .34598E-04   -.17941E-04
  22  Prefactor     .10000E-03    56.974        .72569E-04** at limit **
  23  Prefactor     .10000E-03    19.707        .69317E-03** at limit **
  24  Normalizat    1.0610        .23961        .53665E-04   -.12266E-03
  25  Prefactor     .91848        .17268        .42227E-04   -.12637E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.73749
  norm       = 12.4955
  Prefactor  = 9.70351
  Prefactor  = 0.552268
  Prefactor  = 38.8974
  Prefactor  = 0.0001
  norm       = 2.05758
  norm       = 0.0001
  Prefactor  = 1.8891
  Prefactor  = 0.0001
  Prefactor  = 138.773
  Prefactor  = 0.0001
  Prefactor  = 44.1549
  norm       = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 0.000100555
  Prefactor  = 5.3952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06104
  Prefactor  = 0.918478
 **********
 **   18 **HESSE 
 **********

 FCN=   5508.334     FROM HESSE     STATUS=OK           421 CALLS     5441 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5274        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.207        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.731        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7375        8.6239        .10848E-05   -1.5117    
   5  norm          12.496        10.107        .90656E-06   -1.5001    
   6  Prefactor     9.7035        28.257        .10291E-05   -1.5085    
   7  Prefactor     .55227        131.53        .40366E-04   -1.5559    
   8  Prefactor     38.897        50.495        .25693E-05   -1.4460    
   9  Prefactor     .10000E-03    28.291        .14659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0576        1.0503        .36767E-06   -1.5421    
  11  norm          .10000E-03    1.7384        .38194E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8891        12.467        .24217E-05   -1.5433    
  13  Prefactor     .10000E-03    10.437        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     138.77        157.52        .68420E-05   -1.3346    
  15  Prefactor     .10000E-03    5.7893        .69553E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     44.155        27.722        .48268E-06   -1.4378    
  17  norm          .10000E-03    12.665        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    46.916        .15967       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    47.349        .16552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10055E-03    26.488        .11216       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.3952        20.896        .69196E-05   -1.5243    
  22  Prefactor     .10000E-03    56.973        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.713        .13863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0610        .23959        .10733E-04   -.91013    
  25  Prefactor     .91848        .17270        .84454E-05   -.95498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25721e-10
Minuit parameter uncertainties:
  1  1.46676e-06
  2  2.03055e-06
  3  5.10978e-06
  4  8.62511
  5  10.1084
  6  28.2958
  7  17.0823
  8  50.5501
  9  6.37034e-05
  10  1.05027
  11  1.8618e-07
  12  9.70847
  13  7.36446e-08
  14  158.002
  15  2.12608e-06
  16  27.7298
  17  2.91772e-06
  18  0.00237075
  19  0.000166407
  20  0.00766883
  21  20.9247
  22  3.88299e-06
  23  9.77355e-06
  24  0.239834
  25  0.1728
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  9.185e-01  1.728e-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.061e+00  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.89
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 7.96e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 1.67e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5508.32430081
delta logL = 0.00987394036656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5508.32374468
delta logL = 0.0104300727253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0331       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2223       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92008       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=   5508.324     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      197 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0331        25.717        .72526E-02   -.79931E-03
   2  alpha         2.2223        3.2570        .27411        .14126E-04
   3  Normalizat    1.0571        .16334        .60766E-01    .11733E-04
   4  Prefactor     .92008        .12661        .45260E-01    .59428E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.03308
  alpha      = 2.22228
  Normalizat = 1.05708
  Prefactor  = 0.92008
 **********
 **   18 **HESSE 
 **********

 FCN=   5508.324     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0331        1.0497        .51231E-04   -1.5423    
   2  alpha         2.2223        .43171        .11254E-01   -.11132    
   3  Normalizat    1.0571        .23201        .26875E-03   -.91142    
   4  Prefactor     .92008        .17092        .21097E-03   -.95443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0158e-10
Minuit parameter uncertainties:
  1  1.04972
  2  0.433911
  3  0.232236
  4  0.171023
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808346': 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) = 5508.32374468
delta logL = 0.0104300732764

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.033e+00  1.050e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.222e+00  4.339e-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:  9.201e-01  1.710e-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.057e+00  2.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.91
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.22 +/- 0.43
Photon Flux (Free Index): 8.35e-08 +/- 4.90e-08
Energy Flux (Free Index): 3.16e-05 +/- 1.73e-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/808346/cmap_HighResolution_325900801_326160001_4FGL_J2323.5-0317_daily_bin334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.96e-08', energy_flux2='3.16e-05', photon_flux_error='4.06e-08', dlogl='1.04e-02', energy_flux='3.26e-05', photon_flux2='8.35e-08', job_status='DONE', time_completed='2021-09-29 14:39:18.297521', photon_index_error2='0.43', photon_index2='2.22', ts='7.89', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.06', time_epoch_completed='1632951558.3', return_code='0', job_id='808346', GAL2='0.92', EG2='1.06', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='4.90e-08', ts2='7.91', photon_index='2.16' WHERE bin_id='334' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:39:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 808346: <4FGL_J2323.5-0317_daily_bin334> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin334> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:33 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:34 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:34 2021
Terminated at Wed Sep 29 14:39:19 2021
Results reported at Wed Sep 29 14:39:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin334 350.888 -3.29 325900801 326160001 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 :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            826 sec.

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

