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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin486
RA = 350.916, Dec = -6.2953
tmin = 365299201, tmax = 365558401
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='816194', job_status='RUN', time_executed='2021-09-29 14:50:55.532775', time_epoch_executed='1632952255.53' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='486'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816194

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816194/ft1_4FGL_J2323.6-0617_daily_bin486.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816194/ft2_4FGL_J2323.6-0617_daily_bin486.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816194/ft1_4FGL_J2323.6-0617_daily_bin486.fits outfile=/scratch/kocevski/816194/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin486.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=365299201.0 tmax=365558401.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.21
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/816194/ft2_4FGL_J2323.6-0617_daily_bin486.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/816194/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin486.fits evtable="EVENTS" outfile="/scratch/kocevski/816194/ft1_filtered_4FGL_J2323.6-0617_daily_bin486.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816194/ft1_filtered_4FGL_J2323.6-0617_daily_bin486.fits" evtable="EVENTS" scfile=/scratch/kocevski/816194/ft2_4FGL_J2323.6-0617_daily_bin486.fits sctable="SC_DATA" outfile=/scratch/kocevski/816194/ltcube_365299201_365558401_4FGL_J2323.6-0617_daily_bin486.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/816194/ft2_4FGL_J2323.6-0617_daily_bin486.fits
.....................!
real 12.09
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816194/ft1_filtered_4FGL_J2323.6-0617_daily_bin486.fits evtable="EVENTS" scfile=/scratch/kocevski/816194/ft2_4FGL_J2323.6-0617_daily_bin486.fits sctable="SC_DATA" expcube=/scratch/kocevski/816194/ltcube_365299201_365558401_4FGL_J2323.6-0617_daily_bin486.fits outfile=/scratch/kocevski/816194/expmap_365299201_365558401_4FGL_J2323.6-0617_daily_bin486.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/816194/ltcube_365299201_365558401_4FGL_J2323.6-0617_daily_bin486.fits
.....................!
real 190.54
user 185.67
sys 4.49

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/816194/ft1_filtered_4FGL_J2323.6-0617_daily_bin486.fits scfile=/scratch/kocevski/816194/ft2_4FGL_J2323.6-0617_daily_bin486.fits outfile=/scratch/kocevski/816194/cmap_365299201_365558401_4FGL_J2323.6-0617_daily_bin486.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816194/ft1_filtered_4FGL_J2323.6-0617_daily_bin486.fits scfile=/scratch/kocevski/816194/ft2_4FGL_J2323.6-0617_daily_bin486.fits outfile=/scratch/kocevski/816194/cmap_HighResolution_365299201_365558401_4FGL_J2323.6-0617_daily_bin486.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/816194/ft1_filtered_4FGL_J2323.6-0617_daily_bin486.fits evtable="EVENTS" scfile=/scratch/kocevski/816194/ft2_4FGL_J2323.6-0617_daily_bin486.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/816194/Model_4FGL_J2323.6-0617_daily_bin486.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/816194/ft1_filtered_4FGL_J2323.6-0617_daily_bin486.fits.....................!
real 60.36
user 58.98
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/816194/ft1_filtered_4FGL_J2323.6-0617_daily_bin486.fits', '/scratch/kocevski/816194/ft2_4FGL_J2323.6-0617_daily_bin486.fits', expMap='/scratch/kocevski/816194/expmap_365299201_365558401_4FGL_J2323.6-0617_daily_bin486.fits', expCube='/scratch/kocevski/816194/ltcube_365299201_365558401_4FGL_J2323.6-0617_daily_bin486.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/816194/Model_4FGL_J2323.6-0617_daily_bin486.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/816194/ft1_filtered_4FGL_J2323.6-0617_daily_bin486.fits
Spacecraft file(s): /scratch/kocevski/816194/ft2_4FGL_J2323.6-0617_daily_bin486.fits
Exposure map: /scratch/kocevski/816194/expmap_365299201_365558401_4FGL_J2323.6-0617_daily_bin486.fits
Exposure cube: /scratch/kocevski/816194/ltcube_365299201_365558401_4FGL_J2323.6-0617_daily_bin486.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/816194/Model_4FGL_J2323.6-0617_daily_bin486.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) = 7019.39802083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8025       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.579       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8772       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26266E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2478       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0061       1.0000         .10000E-03   10000.    
    13 'norm      '    .52876       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    100.98       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18106E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.308       1.0000         .10000E-03   10000.    
    20 'norm      '    .11481E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.936       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.466       1.0000         .10000E-03   10000.    
    24 'norm      '    2.8896       1.0000         .10000E-03   10000.    
    25 'norm      '    .30611E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.383       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77835       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0288       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.

 FCN=   7019.353     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3735 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8026        7.5287       -.12652E-07   -.19780E-04
   2  Prefactor     .10000E-03    11.624       -.59111E-07** at limit **
   3  Prefactor     .10000E-03    5.8124        .13878E-06** at limit **
   4  norm          .10000E-03    .25101       -.23347E-07** at limit **
   5  Prefactor     16.576        15.577       -.42161E-07   -.40958E-04
   6  Prefactor     4.8771        6.2077       -.52347E-07   -.17547E-04
   7  Prefactor     .10001E-03    14.668        .34067E-05** at limit **
   8  norm          .10000E-03    7.5826       -.41809E-07** at limit **
   9  Prefactor     .10000E-03    22.842        .42423E-06** at limit **
  10  Prefactor     5.2461        50.177       -.22337E-06   -.95723E-05
  11  Prefactor     .10000E-03    5.8898       -.10305E-06** at limit **
  12  Prefactor     9.0067        9.4908       -.64888E-07   -.58330E-04
  13  norm          .52881        .54426        .71202E-07    .77498E-04
  14  norm          .10000E-03    1.5394        .36021E-08** at limit **
  15  Prefactor     .10000E-03    25.227       -.15000E-06** at limit **
  16  Prefactor     100.94        49.721       -.27709E-06   -.51702E-04
  17  Prefactor     .10000E-03    24.323        .38527E-05** at limit **
  18  Prefactor     .10000E-03    64.580        .31905E-05** at limit **
  19  Prefactor     10.292        10.463        .23025E-06   -.19908E-03
  20  norm          .10000E-03    86.189        .54212E-05** at limit **
  21  Prefactor     26.938        29.062        .35914E-07   -.16674E-04
  22  Prefactor     .10000E-03    5.1632        .14806E-05** at limit **
  23  Prefactor     21.466        23.404       -.19885E-07   -.12907E-04
  24  norm          2.8886        .76385        .50004E-07   -.25809E-03
  25  norm          .10000E-03    16.520        .36746E-05** at limit **
  26  Prefactor     .10000E-03    28.346       -.13940E-06** at limit **
  27  Prefactor     14.382        7.0783        .31121E-07   -.31136E-04
  28  Normalizat    .77841        .17633       -.10725E-05   -.10533E-03
  29  Prefactor     1.0287        .13513        .67527E-06   -.25353E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.80256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.5764
  Prefactor  = 4.87711
  Prefactor  = 0.000100012
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.2461
  Prefactor  = 0.0001
  Prefactor  = 9.00675
  norm       = 0.528807
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 100.943
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 10.2924
  norm       = 0.0001
  Prefactor  = 26.9384
  Prefactor  = 0.0001
  Prefactor  = 21.4663
  norm       = 2.88865
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 14.3821
  Normalizat = 0.77841
  Prefactor  = 1.02874
 **********
 **   18 **HESSE 
 **********

 FCN=   7019.353     FROM HESSE     STATUS=OK           555 CALLS     4290 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8026        7.5250        .14355E-03   -1.5149    
   2  Prefactor     .10000E-03    11.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.8430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .25570        .81670E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.576        15.529        .98364E-04   -1.4893    
   6  Prefactor     4.8771        6.2027        .18214E-03   -1.5266    
   7  Prefactor     .10001E-03    45.276        .34509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.6213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2461        49.126        .17546E-03   -1.5250    
  11  Prefactor     .10000E-03    5.8882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.0067        9.3842        .13356E-03   -1.5108    
  13  norm          .52881        .51128        .60561E-03   -1.5563    
  14  norm          .10000E-03    1.5417        .10143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     100.94        49.644        .20005E-03   -1.3695    
  17  Prefactor     .10000E-03    25.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    64.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.292        10.583        .12480E-03   -1.5066    
  20  norm          .10000E-03    88.246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.938        29.067        .77188E-04   -1.4669    
  22  Prefactor     .10000E-03    5.2669        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.466        23.403        .86452E-04   -1.4781    
  24  norm          2.8886        .70433        .33365E-04   -1.5368    
  25  norm          .10000E-03    20.574        .26876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    29.385        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.382        7.0831        .10561E-03   -1.4949    
  28  Normalizat    .77841        .20044        .28884E-03   -1.0087    
  29  Prefactor     1.0287        .15427        .20391E-03   -.91778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23422e-10
Minuit parameter uncertainties:
  1  7.52592
  2  9.16598e-07
  3  5.84324e-07
  4  6.45197e-08
  5  15.533
  6  6.20347
  7  0.0014866
  8  5.02729e-06
  9  4.8305e-05
  10  32.1418
  11  6.3836e-06
  12  9.38576
  13  0.511285
  14  2.51363e-07
  15  6.09415e-06
  16  49.6644
  17  0.000526535
  18  5.29254e-05
  19  10.5845
  20  0.00031773
  21  29.082
  22  3.50395e-05
  23  23.4128
  24  0.704332
  25  0.000291272
  26  5.81111e-05
  27  7.08356
  28  0.20063
  29  0.154335
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  2.514e-07  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:  1.029e+00  1.543e-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:  7.784e-01  2.006e-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: 4.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/816194/likelihoodResults_365299201_365558401_4FGL_J2323.6-0617_daily_bin486.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) = 7019.35580556
delta logL = -0.00305794069573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7019.35274755
delta logL = 6.52780727251e-08

Fit tolerance = 1e-08

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

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

 FCN=   7019.353     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      229 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    37.492        .10170E-01** at limit **
   2  alpha         1.8734        2.7968        .50000       -.71350E-07
   3  Normalizat    .77841        .20552E-01    .28884E-03    .10151E-03
   4  Prefactor     1.0287        .16582E-01    .20391E-03    .15396E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.87341
  Normalizat = 0.778409
  Prefactor  = 1.02874
 **********
 **   18 **HESSE 
 **********

 FCN=   7019.353     FROM HESSE     STATUS=OK            27 CALLS      256 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.8561        .10476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8734        2.6564        .20000       -.25334    
   3  Normalizat    .77841        .18975        .11554E-04   -1.0087    
   4  Prefactor     1.0287        .15316        .40781E-04   -.91778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59613e-11
Minuit parameter uncertainties:
  1  2.4597e-06
  2  349.443
  3  0.189914
  4  0.153225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816194': 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) = 7019.35274558
delta logL = 2.03609397431e-06

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  2.460e-06  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  1.873e+00  3.494e+02  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:  1.029e+00  1.532e-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:  7.784e-01  1.899e-01  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 -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/816194/cmap_HighResolution_365299201_365558401_4FGL_J2323.6-0617_daily_bin486.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-05', job_status='DONE', photon_flux_upper_limit='4.15e-08', time_completed='2021-09-29 15:04:28.878867', job_id='816194', GAL2='1.03', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632953068.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='486' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:04:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 816194: <4FGL_J2323.6-0617_daily_bin486> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin486> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:50:35 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:50:38 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:50:38 2021
Terminated at Wed Sep 29 15:04:29 2021
Results reported at Wed Sep 29 15:04:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin486 350.916 -6.2953 365299201 365558401 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 :                                   809.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            834 sec.

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

