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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin284
RA = 350.888, Dec = -3.29
tmin = 312940801, tmax = 313200001
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='808272', job_status='RUN', time_executed='2021-09-29 14:25:46.455434', time_epoch_executed='1632950746.46' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808272

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808272/ft1_4FGL_J2323.5-0317_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808272/ft2_4FGL_J2323.5-0317_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808272/ft1_4FGL_J2323.5-0317_daily_bin284.fits outfile=/scratch/kocevski/808272/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin284.fits ra=350.888 dec=-3.29 rad=12.0 tmin=312940801.0 tmax=313200001.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.45
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808272/ft1_filtered_4FGL_J2323.5-0317_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/808272/ft2_4FGL_J2323.5-0317_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/808272/ltcube_312940801_313200001_4FGL_J2323.5-0317_daily_bin284.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/808272/ft2_4FGL_J2323.5-0317_daily_bin284.fits
.....................!
real 12.15
user 11.78
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808272/ft1_filtered_4FGL_J2323.5-0317_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/808272/ft2_4FGL_J2323.5-0317_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/808272/ltcube_312940801_313200001_4FGL_J2323.5-0317_daily_bin284.fits outfile=/scratch/kocevski/808272/expmap_312940801_313200001_4FGL_J2323.5-0317_daily_bin284.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/808272/ltcube_312940801_313200001_4FGL_J2323.5-0317_daily_bin284.fits
.....................!
real 190.82
user 186.49
sys 4.00

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808272/ft1_filtered_4FGL_J2323.5-0317_daily_bin284.fits scfile=/scratch/kocevski/808272/ft2_4FGL_J2323.5-0317_daily_bin284.fits outfile=/scratch/kocevski/808272/cmap_HighResolution_312940801_313200001_4FGL_J2323.5-0317_daily_bin284.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808272/ft1_filtered_4FGL_J2323.5-0317_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/808272/ft2_4FGL_J2323.5-0317_daily_bin284.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808272/Model_4FGL_J2323.5-0317_daily_bin284.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/808272/ft1_filtered_4FGL_J2323.5-0317_daily_bin284.fits.....................!
real 60.21
user 58.96
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.754       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21953       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8184       1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.498       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9651       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.376       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8820       1.0000         .10000E-03   10000.    
    10 'norm      '    .15703       1.0000         .10000E-03   10000.    
    11 'norm      '    5.7510       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8393       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16447E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .73405E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.6020       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.4383       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0460       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .69935       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=   6066.281     FROM MIGRAD    STATUS=FAILED      1051 CALLS     3826 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0226        .16968E-02** at limit **
   2  Prefactor     25.767        44.038        .78937E-04   -.74891E-05
   3  Prefactor     .10000E-03    12.373        .18142E-02** at limit **
   4  Prefactor     .25826        75.465        .36131E-02    .81241E-03
   5  norm          2.8212        9.9428        .24227E-03   -.22759E-04
   6  Prefactor     51.511        40.776        .55887E-04   -.61027E-06
   7  Prefactor     8.9671        13.009        .13386E-03   -.11890E-04
   8  Prefactor     36.448        80.281        .66449E-04   -.61592E-05
   9  Prefactor     3.8667        18.173        .20479E-03   -.16709E-04
  10  norm          .15719        .53777        .90053E-03    .49628E-03
  11  norm          5.7531        5.4537        .15555E-03   -.96765E-04
  12  Prefactor     8.8377        11.676        .13482E-03   -.29093E-04
  13  Prefactor     .10000E-03    127.31        .18142E-02** at limit **
  14  Prefactor     .10000E-03    151.78        .18142E-02** at limit **
  15  Prefactor     .10000E-03    5.0278        .17001E-02** at limit **
  16  Prefactor     .10000E-03    8.5341        .18142E-02** at limit **
  17  norm          .10000E-03    12.016        .18142E-02** at limit **
  18  Prefactor     .10000E-03    13.738        .18142E-02** at limit **
  19  Prefactor     .10083E-03    3.8767        .33431E-01** at limit **
  20  Prefactor     .10414E-03    43.510        .11457    ** at limit **
  21  Prefactor     7.6035        9.9390        .14545E-03   -.24543E-04
  22  Prefactor     .10000E-03    7.2443        .18142E-02** at limit **
  23  Prefactor     7.4387        5.8863        .14705E-03   -.24507E-04
  24  Normalizat    1.0458        .20307        .23796E-03   -.10296E-03
  25  Prefactor     .69934        .14205        .20823E-03   -.80638E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6066.281     FROM SIMPLEX   STATUS=UNCHANGED   1347 CALLS     5173 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0226        .29744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.767        44.038        .84413E-06   -1.4692    
   3  Prefactor     .10000E-03    12.373        .47902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .25826        75.465        .87652E-06   -1.5606    
   5  norm          2.8212        9.9428        .88294E-06   -1.5372    
   6  Prefactor     51.511        40.776        .82007E-06   -1.4271    
   7  Prefactor     8.9671        13.009        .86849E-06   -1.5109    
   8  Prefactor     36.448        80.281        .83285E-06   -1.4500    
   9  Prefactor     3.8667        18.173        .87993E-06   -1.5315    
  10  norm          .15719        .53777        .89870E-06   -1.5629    
  11  norm          5.7531        5.4537        .87587E-06   -1.5228    
  12  Prefactor     8.8377        11.676        .86923E-06   -1.5113    
  13  Prefactor     .10000E-03    127.31        .11223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    151.78        .12613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0278        .17490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.5341        .10587E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.016        .37598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.738        .19526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10083E-03    3.8767        .93295E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10414E-03    43.510        .10937E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.6035        9.9390        .87176E-06   -1.5156    
  22  Prefactor     .10000E-03    7.2443        .37570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.4387        5.8863        .87204E-06   -1.5162    
  24  Normalizat    1.0458        .20307        .52630E-06   -.91510    
  25  Prefactor     .69934        .14205        .59562E-06   -1.0355    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6066.281     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     5602 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0239        .33936E-03** at limit **
   2  Prefactor     25.768        44.040        .31575E-05    .15842E-04
   3  Prefactor     .10000E-03    12.373        .36285E-03** at limit **
   4  Prefactor     .25850        76.741        .72262E-03    .11025E-03
   5  norm          2.8213        9.9392        .96909E-05    .71092E-04
   6  Prefactor     51.511        40.765        .22355E-05   -.22377E-04
   7  Prefactor     8.9671        13.007        .53545E-05   -.16986E-05
   8  Prefactor     36.448        79.919        .26579E-05   -.19675E-04
   9  Prefactor     3.8667        18.013        .81918E-05   -.14433E-04
  10  norm          .15719        .53670        .36021E-04   -.11744E-02
  11  norm          5.7532        5.4491        .62222E-05    .20939E-03
  12  Prefactor     8.8378        11.674        .53927E-05    .42585E-04
  13  Prefactor     .10000E-03    127.36        .36285E-03** at limit **
  14  Prefactor     .10000E-03    151.79        .36285E-03** at limit **
  15  Prefactor     .10000E-03    5.0285        .34001E-03** at limit **
  16  Prefactor     .10000E-03    8.5345        .36285E-03** at limit **
  17  norm          .10000E-03    12.017        .36285E-03** at limit **
  18  Prefactor     .10000E-03    13.738        .36285E-03** at limit **
  19  Prefactor     .10058E-03    3.0250        .39610E-01** at limit **
  20  Prefactor     .10312E-03    40.512        .11945    ** at limit **
  21  Prefactor     7.6035        9.9383        .58180E-05   -.37518E-04
  22  Prefactor     .10000E-03    7.2461        .36285E-03** at limit **
  23  Prefactor     7.4388        5.8857        .58821E-05    .48319E-04
  24  Normalizat    1.0458        .20315        .95184E-05   -.50905E-03
  25  Prefactor     .69934        .14214        .83293E-05   -.55524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.7676
  Prefactor  = 0.0001
  Prefactor  = 0.258498
  norm       = 2.82132
  Prefactor  = 51.5114
  Prefactor  = 8.96715
  Prefactor  = 36.4477
  Prefactor  = 3.86667
  norm       = 0.157186
  norm       = 5.75319
  Prefactor  = 8.83778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010058
  Prefactor  = 0.000103121
  Prefactor  = 7.60352
  Prefactor  = 0.0001
  Prefactor  = 7.43876
  Normalizat = 1.04584
  Prefactor  = 0.699338
 **********
 **   18 **HESSE 
 **********

 FCN=   6066.281     FROM HESSE     STATUS=OK           421 CALLS     6023 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0239        .67872E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.768        43.952        .63150E-06   -1.4692    
   3  Prefactor     .10000E-03    12.373        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .25850        76.677        .28905E-04   -1.5606    
   5  norm          2.8213        9.9392        .19382E-05   -1.5372    
   6  Prefactor     51.511        40.692        .44709E-06   -1.4271    
   7  Prefactor     8.9671        13.006        .10709E-05   -1.5109    
   8  Prefactor     36.448        83.567        .53159E-06   -1.4500    
   9  Prefactor     3.8667        19.238        .16384E-05   -1.5315    
  10  norm          .15719        .53658        .14409E-05   -1.5629    
  11  norm          5.7532        5.4538        .12444E-05   -1.5228    
  12  Prefactor     8.8378        11.663        .10785E-05   -1.5113    
  13  Prefactor     .10000E-03    127.36        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    151.79        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0286        .68003E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.5345        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.017        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.738        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10058E-03    3.2570        .37614E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10312E-03    41.813        .11722       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.6035        9.9361        .11636E-05   -1.5156    
  22  Prefactor     .10000E-03    7.2462        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.4388        5.8833        .11764E-05   -1.5162    
  24  Normalizat    1.0458        .20318        .19037E-05   -.91510    
  25  Prefactor     .69934        .14226        .16659E-05   -1.0355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21043e-09
Minuit parameter uncertainties:
  1  7.24474e-05
  2  44.0075
  3  7.91409e-06
  4  8.91396
  5  9.94499
  6  40.7138
  7  13.0101
  8  83.8368
  9  17.2581
  10  0.5366
  11  5.45431
  12  11.6657
  13  1.31184e-06
  14  0.000118147
  15  7.50684e-06
  16  2.64203e-05
  17  1.73515e-05
  18  5.39979e-06
  19  0.00274799
  20  0.0228622
  21  9.93824
  22  7.45552e-06
  23  5.88376
  24  0.203336
  25  0.142332
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.572e-01  5.366e-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:  6.993e-01  1.423e-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.046e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/808272/likelihoodResults_312940801_313200001_4FGL_J2323.5-0317_daily_bin284.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) = 6066.17530758
delta logL = 0.105764187394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6066.17263129
delta logL = 0.108440485318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16530       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1607       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0296       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70553       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=   6066.173     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      212 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16528        7.2440        .98181E-02    .25162E-02
   2  alpha         3.1612        2.8213        .43133        .37574E-04
   3  Normalizat    1.0295        .30367E-01    .42207E-01    .96731E-05
   4  Prefactor     .70557        .22322E-01    .42475E-01    .13619E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.165283
  alpha      = 3.16116
  Normalizat = 1.02949
  Prefactor  = 0.705569
 **********
 **   18 **HESSE 
 **********

 FCN=   6066.173     FROM HESSE     STATUS=OK            35 CALLS      247 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16528        1.3694        .60574E-03   -1.5627    
   2  alpha         3.1612        4.0770        .38444E-01    .26765    
   3  Normalizat    1.0295        .19872        .23962E-03   -.92049    
   4  Prefactor     .70557        .14311        .20736E-03   -1.0331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77331e-11
Minuit parameter uncertainties:
  1  0.95126
  2  4.6141
  3  0.198868
  4  0.143186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808272': 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) = 6066.17263118
delta logL = 0.108440594097

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.653e-01  9.513e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.161e+00  4.614e+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:  7.056e-01  1.432e-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.029e+00  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/808272/cmap_HighResolution_312940801_313200001_4FGL_J2323.5-0317_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', job_status='DONE', photon_flux_upper_limit='6.87e-08', time_completed='2021-09-29 14:40:16.009659', job_id='808272', GAL2='0.71', fit_tolerance='1e-08', EG2='1.03', EG='1.05', time_epoch_completed='1632951616.01', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.08e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='284' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:40:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 808272: <4FGL_J2323.5-0317_daily_bin284> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin284 350.888 -3.29 312940801 313200001 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 :                                   830.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            889 sec.

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

