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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin934
RA = 350.916, Dec = -6.2953
tmin = 481420801, tmax = 481680001
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='818949', job_status='RUN', time_executed='2021-09-29 15:04:05.667739', time_epoch_executed='1632953045.67' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='934'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818949

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818949/ft1_4FGL_J2323.6-0617_daily_bin934.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818949/ft2_4FGL_J2323.6-0617_daily_bin934.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818949/ft1_4FGL_J2323.6-0617_daily_bin934.fits outfile=/scratch/kocevski/818949/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin934.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=481420801.0 tmax=481680001.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.72
user 3.49
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818949/ft1_filtered_4FGL_J2323.6-0617_daily_bin934.fits" evtable="EVENTS" scfile=/scratch/kocevski/818949/ft2_4FGL_J2323.6-0617_daily_bin934.fits sctable="SC_DATA" outfile=/scratch/kocevski/818949/ltcube_481420801_481680001_4FGL_J2323.6-0617_daily_bin934.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/818949/ft2_4FGL_J2323.6-0617_daily_bin934.fits
.....................!
real 12.14
user 11.80
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818949/ft1_filtered_4FGL_J2323.6-0617_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/818949/ft2_4FGL_J2323.6-0617_daily_bin934.fits sctable="SC_DATA" expcube=/scratch/kocevski/818949/ltcube_481420801_481680001_4FGL_J2323.6-0617_daily_bin934.fits outfile=/scratch/kocevski/818949/expmap_481420801_481680001_4FGL_J2323.6-0617_daily_bin934.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/818949/ltcube_481420801_481680001_4FGL_J2323.6-0617_daily_bin934.fits
.....................!
real 191.01
user 185.10
sys 5.47

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/818949/ft1_filtered_4FGL_J2323.6-0617_daily_bin934.fits scfile=/scratch/kocevski/818949/ft2_4FGL_J2323.6-0617_daily_bin934.fits outfile=/scratch/kocevski/818949/cmap_481420801_481680001_4FGL_J2323.6-0617_daily_bin934.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818949/ft1_filtered_4FGL_J2323.6-0617_daily_bin934.fits scfile=/scratch/kocevski/818949/ft2_4FGL_J2323.6-0617_daily_bin934.fits outfile=/scratch/kocevski/818949/cmap_HighResolution_481420801_481680001_4FGL_J2323.6-0617_daily_bin934.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818949/ft1_filtered_4FGL_J2323.6-0617_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/818949/ft2_4FGL_J2323.6-0617_daily_bin934.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818949/Model_4FGL_J2323.6-0617_daily_bin934.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/818949/ft1_filtered_4FGL_J2323.6-0617_daily_bin934.fits.....................!
real 52.91
user 51.55
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0682       1.0000         .10000E-03   10000.    
     4 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    64.336       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3308       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0780       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.870       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .56891E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12298E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.8804       1.0000         .10000E-03   10000.    
    20 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8704       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .56477       1.0000         .10000E-03   10000.    
    25 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.213       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .42360       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5068       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82126       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=   5407.688     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3715 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2966       -.10877E-06** at limit **
   2  Prefactor     .10000E-03    25.156       -.35176E-05** at limit **
   3  Prefactor     4.0375        30.736       -.18890E-06   -.35061E-03
   4  norm          .10000E-03    1.0637        .18413E-05** at limit **
   5  Prefactor     64.321        53.158       -.13337E-05   -.59689E-03
   6  Prefactor     .10000E-03    4.7333       -.23793E-08** at limit **
   7  Prefactor     .10000E-03    17.656       -.10633E-05** at limit **
   8  norm          .10000E-03    8.1462       -.36291E-07** at limit **
   9  Prefactor     .10000E-03    10.116       -.28952E-06** at limit **
  10  Prefactor     .10000E-03    18.062       -.14156E-05** at limit **
  11  Prefactor     .10000E-03    10.160        .13240E-07** at limit **
  12  Prefactor     8.3305        6.8615        .27064E-07   -.61847E-05
  13  norm          1.0779        .80791        .33496E-07    .61191E-04
  14  norm          .10000E-03    1.7527        .10572E-06** at limit **
  15  Prefactor     28.865        30.580        .14464E-06    .69107E-05
  16  Prefactor     .10004E-03    319.74       -.14619E-04** at limit **
  17  Prefactor     .10000E-03    20.785        .32209E-05** at limit **
  18  Prefactor     .10000E-03    208.77       -.15420E-05** at limit **
  19  Prefactor     8.8803        8.8313        .19719E-06   -.41689E-04
  20  norm          .10000E-03    12.192        .59050E-07** at limit **
  21  Prefactor     .10000E-03    21.450        .30061E-05** at limit **
  22  Prefactor     7.8705        5.7862        .20005E-07   -.57593E-04
  23  Prefactor     .10000E-03    18.981        .11583E-05** at limit **
  24  norm          .56470        .52699        .29664E-08   -.12931E-03
  25  norm          .10000E-03    3.3887        .33815E-06** at limit **
  26  Prefactor     15.216        25.856       -.54618E-07   -.24953E-04
  27  Prefactor     .38670        8.3619        .13036E-06   -.41246E-04
  28  Normalizat    1.5070        .23449        .80916E-07   -.31769E-03
  29  Prefactor     .82119        .16839       -.75103E-06   -.31782E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.03746
  norm       = 0.000100002
  Prefactor  = 64.3206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.33052
  norm       = 1.07788
  norm       = 0.0001
  Prefactor  = 28.8647
  Prefactor  = 0.000100043
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 8.88033
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 7.87046
  Prefactor  = 0.0001
  norm       = 0.564697
  norm       = 0.0001
  Prefactor  = 15.2155
  Prefactor  = 0.386705
  Normalizat = 1.50699
  Prefactor  = 0.821189
 **********
 **   18 **HESSE 
 **********

 FCN=   5407.688     FROM HESSE     STATUS=OK           545 CALLS     4260 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3226        .18017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.0375        29.864        .19990E-03   -1.5306    
   4  norm          .10000E-03    1.3553        .12694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     64.321        51.935        .50032E-04   -1.4102    
   6  Prefactor     .10000E-03    4.7364        .15624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.226        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.1929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.3305        6.8657        .13889E-03   -1.5131    
  13  norm          1.0779        .81635        .55121E-04   -1.5500    
  14  norm          .10000E-03    1.7557        .95085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.865        30.584        .74564E-04   -1.4633    
  16  Prefactor     .10004E-03    330.27        .21092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    208.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.8803        8.8243        .67251E-03   -1.5112    
  20  norm          .10000E-03    12.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.8705        5.7857        .13988E-03   -1.5147    
  23  Prefactor     .10000E-03    19.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .56470        .50841        .50037E-03   -1.5558    
  25  norm          .10000E-03    3.4088        .13221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.216        25.942        .10269E-03   -1.4928    
  27  Prefactor     .38670        48.332        .40119E-02   -1.5584    
  28  Normalizat    1.5070        .28005        .25840E-03   -.77582    
  29  Prefactor     .82119        .19902        .25297E-03   -.98952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85577e-08
Minuit parameter uncertainties:
  1  3.68142e-06
  2  0.000524767
  3  21.9765
  4  9.545e-05
  5  51.9714
  6  2.68229e-06
  7  0.000138965
  8  2.81475e-06
  9  2.24395e-05
  10  0.000178234
  11  2.40101e-06
  12  6.86634
  13  0.816354
  14  4.50731e-06
  15  30.6007
  16  0.00757947
  17  0.000459134
  18  0.000648514
  19  8.82559
  20  7.50715e-06
  21  0.00042083
  22  5.78611
  23  0.000155812
  24  0.508416
  25  2.00978e-05
  26  25.9612
  27  8.65245
  28  0.28034
  29  0.199196
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  4.507e-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:  8.212e-01  1.992e-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.507e+00  2.803e-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: 5.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/818949/likelihoodResults_481420801_481680001_4FGL_J2323.6-0617_daily_bin934.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5407.69027179
delta logL = -0.00253889139549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5407.68773284
delta logL = 5.51963239559e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2319       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82120       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=   5407.688     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      232 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.4352        .95292E-03** at limit **
   2  alpha         1.9139        3.8490        .16582       -.33595E-08
   3  Normalizat    1.5070        .26200        .25840E-03    .30181E-04
   4  Prefactor     .82119        .19750        .25297E-03    .35998E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.91388
  Normalizat = 1.50699
  Prefactor  = 0.82119
 **********
 **   18 **HESSE 
 **********

 FCN=   5407.688     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8478        .19058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9139        2.9003        .66327E-02   -.23665    
   3  Normalizat    1.5070        .26226        .10336E-04   -.77582    
   4  Prefactor     .82119        .19770        .10119E-04   -.98952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71679e-12
Minuit parameter uncertainties:
  1  8.63356e-07
  2  190.511
  3  0.262496
  4  0.197868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818949': 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) = 5407.68773148
delta logL = 1.41785312735e-06

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  8.634e-07  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  1.914e+00  1.905e+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:  8.212e-01  1.979e-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.507e+00  2.625e-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/818949/cmap_HighResolution_481420801_481680001_4FGL_J2323.6-0617_daily_bin934.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-05', job_status='DONE', photon_flux_upper_limit='5.03e-08', time_completed='2021-09-29 15:15:48.723172', job_id='818949', GAL2='0.82', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1632953748.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.42e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='934' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:15:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 818949: <4FGL_J2323.6-0617_daily_bin934> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin934> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 15:00:18 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:00:19 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:19 2021
Terminated at Wed Sep 29 15:15:49 2021
Results reported at Wed Sep 29 15:15:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin934 350.916 -6.2953 481420801 481680001 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 :                                   698.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

