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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin1003
RA = 350.916, Dec = -6.2953
tmin = 499305601, tmax = 499564801
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='819047', job_status='RUN', time_executed='2021-09-29 15:04:01.569547', time_epoch_executed='1632953041.57' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/819047

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/819047/ft1_4FGL_J2323.6-0617_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/819047/ft2_4FGL_J2323.6-0617_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/819047/ft1_4FGL_J2323.6-0617_daily_bin1003.fits outfile=/scratch/kocevski/819047/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin1003.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=499305601.0 tmax=499564801.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 5.42
user 5.15
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/819047/ft1_filtered_4FGL_J2323.6-0617_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/819047/ft2_4FGL_J2323.6-0617_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/819047/ltcube_499305601_499564801_4FGL_J2323.6-0617_daily_bin1003.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/819047/ft2_4FGL_J2323.6-0617_daily_bin1003.fits
.....................!
real 12.12
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/819047/ft1_filtered_4FGL_J2323.6-0617_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/819047/ft2_4FGL_J2323.6-0617_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/819047/ltcube_499305601_499564801_4FGL_J2323.6-0617_daily_bin1003.fits outfile=/scratch/kocevski/819047/expmap_499305601_499564801_4FGL_J2323.6-0617_daily_bin1003.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/819047/ltcube_499305601_499564801_4FGL_J2323.6-0617_daily_bin1003.fits
.....................!
real 190.70
user 185.85
sys 4.45

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/819047/ft1_filtered_4FGL_J2323.6-0617_daily_bin1003.fits scfile=/scratch/kocevski/819047/ft2_4FGL_J2323.6-0617_daily_bin1003.fits outfile=/scratch/kocevski/819047/cmap_499305601_499564801_4FGL_J2323.6-0617_daily_bin1003.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/819047/ft1_filtered_4FGL_J2323.6-0617_daily_bin1003.fits scfile=/scratch/kocevski/819047/ft2_4FGL_J2323.6-0617_daily_bin1003.fits outfile=/scratch/kocevski/819047/cmap_HighResolution_499305601_499564801_4FGL_J2323.6-0617_daily_bin1003.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.211       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8925       1.0000         .10000E-03   10000.    
     3 'Prefactor '    153.22       1.0000         .10000E-03   10000.    
     4 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9516       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5779       1.0000         .10000E-03   10000.    
     8 'norm      '    41.513       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    152.27       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .36204E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.409       1.0000         .10000E-03   10000.    
    16 'Prefactor '    69.435       1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.928       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.047       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.986       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .24246E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11239E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4448       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .35201       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=   2607.607     FROM MIGRAD    STATUS=CONVERGED    948 CALLS     3580 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.858        26.367       -.23354E-06    .35463E-04
   2  Prefactor     7.0155        419.73       -.14817E-04    .28416E-05
   3  Prefactor     150.09        44.186        .16186E-06    .36732E-04
   4  norm          .10000E-03    1.9170       -.58078E-07** at limit **
   5  Prefactor     .10000E-03    33.520        .96127E-07** at limit **
   6  Prefactor     6.1298        17.684        .56005E-06   -.43946E-06
   7  Prefactor     2.7285        17.966        .10537E-05   -.64650E-05
   8  norm          41.446        26.999       -.35243E-07   -.27000E-04
   9  Prefactor     .10000E-03    18.572        .25705E-07** at limit **
  10  Prefactor     148.82        94.948       -.75310E-06   -.28385E-04
  11  Prefactor     .10000E-03    21.644        .41324E-07** at limit **
  12  Prefactor     .10000E-03    13.625        .45817E-05** at limit **
  13  norm          .10003E-03    .99552        .53560E-06** at limit **
  14  norm          .10000E-03    2.9272        .40154E-06** at limit **
  15  Prefactor     26.103        82.074       -.14040E-05   -.16843E-04
  16  Prefactor     91.840        184.58        .36099E-07   -.28939E-05
  17  Prefactor     49.562        58.401        .12560E-06   -.26056E-05
  18  Prefactor     28.716        892.85       -.33633E-04   -.86251E-05
  19  Prefactor     .10000E-03    26.358        .58342E-06** at limit **
  20  norm          .10000E-03    20.951        .20297E-06** at limit **
  21  Prefactor     .10000E-03    93.289        .96529E-06** at limit **
  22  Prefactor     .10000E-03    6.6612        .90668E-06** at limit **
  23  Prefactor     24.072        72.411        .30081E-06   -.55564E-06
  24  norm          .10000E-03    .63287        .53532E-07** at limit **
  25  norm          .10000E-03    7.0996        .11822E-07** at limit **
  26  Prefactor     .10000E-03    40.405       -.52369E-06** at limit **
  27  Prefactor     .10000E-03    16.416        .84797E-07** at limit **
  28  Normalizat    1.4489        .32728       -.58067E-07   -.10427E-03
  29  Prefactor     .35169        .21422       -.19626E-05   -.47300E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.8576
  Prefactor  = 7.01547
  Prefactor  = 150.087
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.12983
  Prefactor  = 2.72847
  norm       = 41.4458
  Prefactor  = 0.0001
  Prefactor  = 148.821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100033
  norm       = 0.0001
  Prefactor  = 26.1025
  Prefactor  = 91.8404
  Prefactor  = 49.562
  Prefactor  = 28.7158
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.0722
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.44889
  Prefactor  = 0.351688
 **********
 **   18 **HESSE 
 **********

 FCN=   2607.607     FROM HESSE     STATUS=OK           541 CALLS     4121 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.858        26.371        .70601E-04   -1.4561    
   2  Prefactor     7.0155        429.45        .14273E-03   -1.5178    
   3  Prefactor     150.09        38.210        .32566E-04   -1.3252    
   4  norm          .10000E-03    2.2963        .11733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1298        17.645        .16460E-03   -1.5213    
   7  Prefactor     2.7285        17.932        .25419E-03   -1.5378    
   8  norm          41.446        27.026        .62216E-04   -1.4420    
   9  Prefactor     .10000E-03    18.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     148.82        95.387        .16333E-03   -1.3262    
  11  Prefactor     .10000E-03    21.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10003E-03    31.709        .93545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9279        .85325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.103        82.189        .72657E-04   -1.4686    
  16  Prefactor     91.840        185.19        .48172E-04   -1.3788    
  17  Prefactor     49.562        58.486        .54122E-04   -1.4299    
  18  Prefactor     28.716        874.33        .11089E-03   -1.4636    
  19  Prefactor     .10000E-03    26.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    20.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    93.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.7607        .12896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.072        72.673        .78584E-04   -1.4726    
  24  norm          .10000E-03    .65366        .79267E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7.1096        .13288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    40.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    16.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4489        .38195        .24826E-03   -.79225    
  29  Prefactor     .35169        .24171        .31072E-03   -1.1935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02804e-09
Minuit parameter uncertainties:
  1  26.3804
  2  110.619
  3  38.2159
  4  2.55087e-06
  5  3.30072e-06
  6  17.6599
  7  13.9953
  8  27.0337
  9  2.45224e-05
  10  95.4858
  11  7.09734e-07
  12  0.000107499
  13  0.0020389
  14  3.08841e-06
  15  82.5485
  16  186.378
  17  58.5542
  18  322.206
  19  8.00323e-05
  20  1.81503e-05
  21  1.93028e-05
  22  1.12796e-05
  23  72.9417
  24  7.42277e-07
  25  2.6489e-06
  26  9.04231e-05
  27  2.8224e-05
  28  0.382709
  29  0.242411
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  3.088e-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:  3.517e-01  2.424e-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.449e+00  3.827e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/819047/likelihoodResults_499305601_499564801_4FGL_J2323.6-0617_daily_bin1003.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) = 2607.6081272
delta logL = -0.00103903571653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2607.60708812
delta logL = 4.43947101303e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2319       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4489       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .35169       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=   2607.607     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      237 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    225.74        .85594E-02** at limit **
   2  alpha         1.8017        2.9999        .16582        .60334E-08
   3  Normalizat    1.4489        .71737E-01    .24826E-03    .15900E-04
   4  Prefactor     .35169        .47036E-01    .31071E-03    .14050E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.80173
  Normalizat = 1.44889
  Prefactor  = 0.351687
 **********
 **   18 **HESSE 
 **********

 FCN=   2607.607     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2013        .89196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8017        3.4039        .66327E-02   -.28307    
   3  Normalizat    1.4489        .35660        .49652E-04   -.79225    
   4  Prefactor     .35169        .23359        .12428E-04   -1.1935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18931e-12
Minuit parameter uncertainties:
  1  1.32613e-07
  2  254.624
  3  0.357218
  4  0.234225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/819047': 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) = 2607.60708671
delta logL = 1.44834029925e-06

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  1.326e-07  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  1.802e+00  2.546e+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:  3.517e-01  2.342e-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.449e+00  3.572e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/819047/cmap_HighResolution_499305601_499564801_4FGL_J2323.6-0617_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-05', job_status='DONE', photon_flux_upper_limit='8.74e-08', time_completed='2021-09-29 15:12:33.100859', job_id='819047', GAL2='0.35', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1632953553.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.35', dlogl='1.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1003' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:12:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 819047: <4FGL_J2323.6-0617_daily_bin1003> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin1003> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 15:00:25 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:00:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 15:00:26 2021
Terminated at Wed Sep 29 15:12:33 2021
Results reported at Wed Sep 29 15:12:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin1003 350.916 -6.2953 499305601 499564801 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 :                                   506.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             216.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            728 sec.

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

