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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin222
RA = 350.916, Dec = -6.2953
tmin = 296870401, tmax = 297129601
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='814687', job_status='RUN', time_executed='2021-09-29 14:46:14.973733', time_epoch_executed='1632951974.97' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814687/ft1_4FGL_J2323.6-0617_daily_bin222.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814687/ft2_4FGL_J2323.6-0617_daily_bin222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814687/ft1_4FGL_J2323.6-0617_daily_bin222.fits outfile=/scratch/kocevski/814687/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin222.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=296870401.0 tmax=297129601.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.62
user 3.38
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/814687/ft2_4FGL_J2323.6-0617_daily_bin222.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/814687/ft2_4FGL_J2323.6-0617_daily_bin222.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/814687/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin222.fits evtable="EVENTS" outfile="/scratch/kocevski/814687/ft1_filtered_4FGL_J2323.6-0617_daily_bin222.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814687/ft1_filtered_4FGL_J2323.6-0617_daily_bin222.fits" evtable="EVENTS" scfile=/scratch/kocevski/814687/ft2_4FGL_J2323.6-0617_daily_bin222.fits sctable="SC_DATA" outfile=/scratch/kocevski/814687/ltcube_296870401_297129601_4FGL_J2323.6-0617_daily_bin222.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/814687/ft2_4FGL_J2323.6-0617_daily_bin222.fits
.....................!
real 13.76
user 13.34
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814687/ft1_filtered_4FGL_J2323.6-0617_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/814687/ft2_4FGL_J2323.6-0617_daily_bin222.fits sctable="SC_DATA" expcube=/scratch/kocevski/814687/ltcube_296870401_297129601_4FGL_J2323.6-0617_daily_bin222.fits outfile=/scratch/kocevski/814687/expmap_296870401_297129601_4FGL_J2323.6-0617_daily_bin222.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/814687/ltcube_296870401_297129601_4FGL_J2323.6-0617_daily_bin222.fits
.....................!
real 190.28
user 185.80
sys 4.12

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 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J2323.6-0617 @ 350.916 -6.2953

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/814687/ft1_filtered_4FGL_J2323.6-0617_daily_bin222.fits scfile=/scratch/kocevski/814687/ft2_4FGL_J2323.6-0617_daily_bin222.fits outfile=/scratch/kocevski/814687/cmap_296870401_297129601_4FGL_J2323.6-0617_daily_bin222.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.916 yref=-6.2953 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814687/ft1_filtered_4FGL_J2323.6-0617_daily_bin222.fits scfile=/scratch/kocevski/814687/ft2_4FGL_J2323.6-0617_daily_bin222.fits outfile=/scratch/kocevski/814687/cmap_HighResolution_296870401_297129601_4FGL_J2323.6-0617_daily_bin222.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.916 yref=-6.2953 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/814687/ft1_filtered_4FGL_J2323.6-0617_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/814687/ft2_4FGL_J2323.6-0617_daily_bin222.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/814687/Model_4FGL_J2323.6-0617_daily_bin222.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/814687/ft1_filtered_4FGL_J2323.6-0617_daily_bin222.fits.....................!
real 51.71
user 50.31
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/814687/ft1_filtered_4FGL_J2323.6-0617_daily_bin222.fits', '/scratch/kocevski/814687/ft2_4FGL_J2323.6-0617_daily_bin222.fits', expMap='/scratch/kocevski/814687/expmap_296870401_297129601_4FGL_J2323.6-0617_daily_bin222.fits', expCube='/scratch/kocevski/814687/ltcube_296870401_297129601_4FGL_J2323.6-0617_daily_bin222.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/814687/Model_4FGL_J2323.6-0617_daily_bin222.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.6-0617'

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.612e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/814687/ft1_filtered_4FGL_J2323.6-0617_daily_bin222.fits
Spacecraft file(s): /scratch/kocevski/814687/ft2_4FGL_J2323.6-0617_daily_bin222.fits
Exposure map: /scratch/kocevski/814687/expmap_296870401_297129601_4FGL_J2323.6-0617_daily_bin222.fits
Exposure cube: /scratch/kocevski/814687/ltcube_296870401_297129601_4FGL_J2323.6-0617_daily_bin222.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/814687/Model_4FGL_J2323.6-0617_daily_bin222.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) = 5274.93229023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .37571       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.190       1.0000         .10000E-03   10000.    
     8 'norm      '    10.564       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.205       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .20440E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.008       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .38733E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.543       1.0000         .10000E-03   10000.    
    20 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.5112       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.145       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1049       1.0000         .10000E-03   10000.    
    25 'norm      '    12.802       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.2098       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4158       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .63381       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+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=   5274.922     FROM MIGRAD    STATUS=FAILED      1321 CALLS     4403 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3805        .13034E-02** at limit **
   2  Prefactor     .10000E-03    34.460        .18142E-02** at limit **
   3  Prefactor     .10000E-03    5.2012        .16146E-02** at limit **
   4  norm          .10000E-03    .36653        .83953E-04** at limit **
   5  Prefactor     .10000E-03    21.709        .18142E-02** at limit **
   6  Prefactor     .35257        62.362        .41594E-02    .11452E-02
   7  Prefactor     11.190        15.307        .11976E-03    .12530E-04
   8  norm          10.564        11.715        .12327E-03    .79314E-05
   9  Prefactor     11.199        19.988        .11968E-03   -.93090E-05
  10  Prefactor     .10000E-03    65.804        .18142E-02** at limit **
  11  Prefactor     .10000E-03    17.502        .18142E-02** at limit **
  12  Prefactor     .10000E-03    11.332        .18142E-02** at limit **
  13  norm          .10000E-03    4.2517        .10081E-02** at limit **
  14  norm          .10000E-03    9.4829        .36285E-03** at limit **
  15  Prefactor     .10000E-03    25.462        .18142E-02** at limit **
  16  Prefactor     31.075        68.454        .71954E-04   -.99697E-04
  17  Prefactor     .10028E-03    44.491        .90564E-01** at limit **
  18  Prefactor     .10000E-03    141.27        .18142E-02** at limit **
  19  Prefactor     17.543        17.303        .95623E-04   -.53619E-04
  20  norm          .10000E-03    16.904        .18142E-02** at limit **
  21  Prefactor     .10000E-03    31.982        .18142E-02** at limit **
  22  Prefactor     8.5111        7.3146        .13741E-03   -.15125E-03
  23  Prefactor     14.140        41.290        .10650E-03   -.68320E-05
  24  norm          1.1050        .82877        .48188E-04   -.91491E-03
  25  norm          12.803        10.514        .11195E-03   -.21143E-03
  26  Prefactor     9.2081        18.379        .13206E-03   -.86086E-07
  27  Prefactor     .10000E-03    5.1096        .15958E-02** at limit **
  28  Normalizat    1.4158        .25296        .24099E-03   -.87293E-04
  29  Prefactor     .63386        .17737        .25196E-03    .10495E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5274.922     FROM SIMPLEX   STATUS=UNCHANGED   1875 CALLS     6278 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    3.3805        .23196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.460        .65473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2012        .20010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .36653        .29252E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.709        .40826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .35257        62.362        .16625E-06   -1.5589    
   7  Prefactor     11.190        15.307        .16235E-06   -1.5039    
   8  norm          10.564        11.715        .16262E-06   -1.5058    
   9  Prefactor     11.199        19.988        .16224E-06   -1.5039    
  10  Prefactor     .10000E-03    65.804        .46561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.502        .34469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.332        .21643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.2517        .11204E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.4829        .10432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.462        .43698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.075        68.454        .16330E-06   -1.4592    
  17  Prefactor     .10028E-03    44.491        .39714E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    141.27        .11339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.543        17.303        .16001E-06   -1.4870    
  20  norm          .10000E-03    16.904        .51868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.982        .52905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.5111        7.3146        .16229E-06   -1.5124    
  23  Prefactor     14.140        41.290        .15687E-06   -1.4956    
  24  norm          1.1050        .82877        .16689E-06   -1.5498    
  25  norm          12.803        10.514        .15984E-06   -1.4992    
  26  Prefactor     9.2081        18.379        .16229E-06   -1.5101    
  27  Prefactor     .10000E-03    5.1096        .18545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4158        .25296        .86501E-07   -.80173    
  29  Prefactor     .63386        .17737        .11476E-06   -1.0618    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5274.922     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     6817 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3806        .26067E-03** at limit **
   2  Prefactor     .10000E-03    34.461        .36285E-03** at limit **
   3  Prefactor     .10000E-03    5.2018        .32292E-03** at limit **
   4  norm          .10000E-03    .36653        .16791E-04** at limit **
   5  Prefactor     .10000E-03    21.714        .36285E-03** at limit **
   6  Prefactor     .35259        63.221        .83187E-03    .44971E-04
   7  Prefactor     11.190        15.306        .47905E-05    .66450E-05
   8  norm          10.564        11.714        .49308E-05    .27668E-05
   9  Prefactor     11.199        19.982        .47873E-05   -.18998E-05
  10  Prefactor     .10000E-03    65.815        .36285E-03** at limit **
  11  Prefactor     .10000E-03    17.502        .36285E-03** at limit **
  12  Prefactor     .10000E-03    11.338        .36285E-03** at limit **
  13  norm          .10000E-03    4.2912        .20163E-03** at limit **
  14  norm          .10000E-03    9.4834        .72569E-04** at limit **
  15  Prefactor     .10000E-03    25.463        .36285E-03** at limit **
  16  Prefactor     31.076        67.841        .14391E-04    .26386E-04
  17  Prefactor     .10033E-03    38.961        .97121E-01** at limit **
  18  Prefactor     .10000E-03    141.27        .36285E-03** at limit **
  19  Prefactor     17.543        17.298        .38249E-05   -.47556E-05
  20  norm          .10000E-03    16.904        .36285E-03** at limit **
  21  Prefactor     .10000E-03    31.982        .36285E-03** at limit **
  22  Prefactor     8.5111        7.3132        .54962E-05   -.23580E-04
  23  Prefactor     14.140        41.280        .42599E-05   -.10675E-05
  24  norm          1.1050        .82881        .19275E-05   -.70777E-05
  25  norm          12.803        10.515        .44780E-05    .91396E-05
  26  Prefactor     9.2081        18.377        .52825E-05    .43043E-06
  27  Prefactor     .10000E-03    5.1109        .31916E-03** at limit **
  28  Normalizat    1.4158        .25312        .48198E-04    .36183E-04
  29  Prefactor     .63386        .17730        .10078E-04    .57078E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.352588
  Prefactor  = 11.1903
  norm       = 10.5636
  Prefactor  = 11.1992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.0756
  Prefactor  = 0.000100329
  Prefactor  = 0.0001
  Prefactor  = 17.5425
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.51108
  Prefactor  = 14.14
  norm       = 1.10504
  norm       = 12.8026
  Prefactor  = 9.20808
  Prefactor  = 0.0001
  Normalizat = 1.4158
  Prefactor  = 0.633859
 **********
 **   18 **HESSE 
 **********

 FCN=   5274.922     FROM HESSE     STATUS=OK           535 CALLS     7352 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3806        .52135E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.461        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2018        .64583E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .36653        .33581E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.714        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .35259        63.157        .16637E-03   -1.5589    
   7  Prefactor     11.190        15.292        .95809E-06   -1.5039    
   8  norm          10.564        11.711        .98617E-06   -1.5058    
   9  Prefactor     11.199        19.967        .95747E-06   -1.5039    
  10  Prefactor     .10000E-03    65.816        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.502        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.338        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.2928        .40326E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.4835        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.463        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.076        68.022        .28782E-05   -1.4592    
  17  Prefactor     .10033E-03    41.057        .94419E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    141.27        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.543        17.290        .76499E-06   -1.4870    
  20  norm          .10000E-03    16.905        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.982        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.5111        7.3121        .10992E-05   -1.5124    
  23  Prefactor     14.140        41.271        .85199E-06   -1.4956    
  24  norm          1.1050        .82855        .38550E-06   -1.5498    
  25  norm          12.803        10.509        .89561E-06   -1.4992    
  26  Prefactor     9.2081        18.415        .10565E-05   -1.5101    
  27  Prefactor     .10000E-03    5.1110        .63831E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4158        .25320        .96395E-05   -.80173    
  29  Prefactor     .63386        .17734        .20157E-05   -1.0618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41964e-11
Minuit parameter uncertainties:
  1  4.45503e-07
  2  1.70176e-06
  3  1.35601e-06
  4  3.00613e-07
  5  1.16728e-06
  6  9.44666
  7  15.2976
  8  11.7133
  9  19.979
  10  6.21576e-06
  11  1.32453e-06
  12  5.07364e-06
  13  1.52804e-05
  14  8.67796e-06
  15  7.2092e-06
  16  68.1923
  17  0.00736093
  18  5.625e-05
  19  17.2945
  20  6.79745e-06
  21  7.34856e-06
  22  7.31286
  23  41.3546
  24  0.828556
  25  10.5105
  26  18.4266
  27  6.12373e-07
  28  0.25342
  29  0.177498
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  8.678e-06  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  6.339e-01  1.775e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.416e+00  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/814687/likelihoodResults_296870401_297129601_4FGL_J2323.6-0617_daily_bin222.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5274.92209907
delta logL = -0.000503406344251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5274.92159198
delta logL = 3.68106793758e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13153E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9586       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63384       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5274.922     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      265 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    .62288        .64896E-01** at limit **
   2  alpha         2.9740        2.9074        .42063       -.14313E-05
   3  Normalizat    1.4158        .30585E-02    .54503E-01   -.69647E-03
   4  Prefactor     .63386        .22429E-02    .41514E-01   -.51241E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100045
  alpha      = 2.974
  Normalizat = 1.41579
  Prefactor  = 0.63386
 **********
 **   18 **HESSE 
 **********

 FCN=   5274.922     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      296 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    6336.6        .19314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9740        3.4776        .16825        .19075    
   3  Normalizat    1.4158        .49647E-01    .24099E-03   -.80173    
   4  Prefactor     .63386        .36247E-01    .25196E-03   -1.0618    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.07843e-06
Minuit parameter uncertainties:
  1  0.0231299
  2  1976.17
  3  0.0496483
  4  0.0362488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814687': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5274.92159158
delta logL = 4.07801599067e-06

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  2.313e-02  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.974e+00  1.976e+03  0.000e+00  5.000e+00 ( 1.000e+00)
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  6.339e-01  3.625e-02  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.416e+00  4.965e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.916 -6.295

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/814687/cmap_HighResolution_296870401_297129601_4FGL_J2323.6-0617_daily_bin222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2021-09-29 15:00:48.369762', job_id='814687', GAL2='0.63', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1632952848.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='4.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='222' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:00:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 814687: <4FGL_J2323.6-0617_daily_bin222> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin222> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 14:45:59 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:46:00 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:46:00 2021
Terminated at Wed Sep 29 15:00:49 2021
Results reported at Wed Sep 29 15:00:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin222 350.916 -6.2953 296870401 297129601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.6-0617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   858.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             292.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

