/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 191 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.6-0617_daily_bin122
RA = 350.916, Dec = -6.2953
tmin = 270950401, tmax = 271209601
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='814513', job_status='RUN', time_executed='2021-09-29 14:49:01.691383', time_epoch_executed='1632952141.69' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814513

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814513/ft1_4FGL_J2323.6-0617_daily_bin122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814513/ft2_4FGL_J2323.6-0617_daily_bin122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814513/ft1_4FGL_J2323.6-0617_daily_bin122.fits outfile=/scratch/kocevski/814513/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin122.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=270950401.0 tmax=271209601.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 1.60
user 1.42
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814513/ft1_filtered_4FGL_J2323.6-0617_daily_bin122.fits" evtable="EVENTS" scfile=/scratch/kocevski/814513/ft2_4FGL_J2323.6-0617_daily_bin122.fits sctable="SC_DATA" outfile=/scratch/kocevski/814513/ltcube_270950401_271209601_4FGL_J2323.6-0617_daily_bin122.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/814513/ft2_4FGL_J2323.6-0617_daily_bin122.fits
.....................!
real 12.23
user 11.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814513/ft1_filtered_4FGL_J2323.6-0617_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/814513/ft2_4FGL_J2323.6-0617_daily_bin122.fits sctable="SC_DATA" expcube=/scratch/kocevski/814513/ltcube_270950401_271209601_4FGL_J2323.6-0617_daily_bin122.fits outfile=/scratch/kocevski/814513/expmap_270950401_271209601_4FGL_J2323.6-0617_daily_bin122.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/814513/ltcube_270950401_271209601_4FGL_J2323.6-0617_daily_bin122.fits
.....................!
real 192.06
user 186.56
sys 5.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/814513/ft1_filtered_4FGL_J2323.6-0617_daily_bin122.fits scfile=/scratch/kocevski/814513/ft2_4FGL_J2323.6-0617_daily_bin122.fits outfile=/scratch/kocevski/814513/cmap_270950401_271209601_4FGL_J2323.6-0617_daily_bin122.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/814513/ft1_filtered_4FGL_J2323.6-0617_daily_bin122.fits scfile=/scratch/kocevski/814513/ft2_4FGL_J2323.6-0617_daily_bin122.fits outfile=/scratch/kocevski/814513/cmap_HighResolution_270950401_271209601_4FGL_J2323.6-0617_daily_bin122.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/814513/ft1_filtered_4FGL_J2323.6-0617_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/814513/ft2_4FGL_J2323.6-0617_daily_bin122.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/814513/Model_4FGL_J2323.6-0617_daily_bin122.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/814513/ft1_filtered_4FGL_J2323.6-0617_daily_bin122.fits.....................!
real 57.31
user 55.96
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5003       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .55223E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.6095       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.855       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11181E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5479       1.0000         .10000E-03   10000.    
    13 'norm      '    .53066       1.0000         .10000E-03   10000.    
    14 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8966       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7280       1.0000         .10000E-03   10000.    
    20 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.878       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.9168       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.7931       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.355       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.485       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0634       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81663       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=   6206.134     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3705 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5006        7.3849        .67029E-07   -.45131E-05
   2  Prefactor     .10000E-03    18.511       -.75620E-06** at limit **
   3  Prefactor     .10000E-03    3.1000        .18888E-07** at limit **
   4  norm          .10000E-03    .22071        .33640E-07** at limit **
   5  Prefactor     .10000E-03    7.7221        .57903E-07** at limit **
   6  Prefactor     .10000E-03    6.4462        .46280E-07** at limit **
   7  Prefactor     .10014E-03    7.5645        .12802E-05** at limit **
   8  norm          5.6104        11.416        .31374E-06   -.10237E-04
   9  Prefactor     28.856        19.199        .13791E-06   -.13461E-04
  10  Prefactor     .10000E-03    75.823        .12407E-05** at limit **
  11  Prefactor     .10000E-03    10.581       -.13414E-06** at limit **
  12  Prefactor     5.5456        5.7466       -.19802E-06   -.67920E-04
  13  norm          .53015        .72914        .10896E-06    .34201E-03
  14  norm          .10000E-03    1.9512       -.16875E-06** at limit **
  15  Prefactor     .10000E-03    19.243       -.51457E-06** at limit **
  16  Prefactor     .10000E-03    28.693        .21158E-05** at limit **
  17  Prefactor     9.8996        15.958        .24616E-06   -.32030E-04
  18  Prefactor     .10000E-03    57.666       -.36160E-05** at limit **
  19  Prefactor     2.7381        10.997        .57944E-05   -.33687E-05
  20  norm          .10000E-03    14.855        .14620E-05** at limit **
  21  Prefactor     12.804        40.414        .10280E-04    .28728E-06
  22  Prefactor     3.9166        4.3864       -.80396E-06   -.14940E-03
  23  Prefactor     .10000E-03    20.187       -.15504E-06** at limit **
  24  norm          .10000E-03    .16612        .16414E-07** at limit **
  25  norm          3.7934        3.4459        .23258E-07   -.25133E-04
  26  Prefactor     10.357        16.166        .31064E-06   -.10815E-04
  27  Prefactor     10.486        7.3663        .35708E-06    .14694E-05
  28  Normalizat    1.0633        .18537       -.12043E-05   -.11563E-03
  29  Prefactor     .81666        .13708       -.90954E-07   -.14745E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.50056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100139
  norm       = 5.61042
  Prefactor  = 28.8563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.5456
  norm       = 0.530149
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.89957
  Prefactor  = 0.0001
  Prefactor  = 2.7381
  norm       = 0.0001
  Prefactor  = 12.8042
  Prefactor  = 3.91656
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.79342
  Prefactor  = 10.3568
  Prefactor  = 10.4859
  Normalizat = 1.0633
  Prefactor  = 0.816662
 **********
 **   18 **HESSE 
 **********

 FCN=   6206.134     FROM HESSE     STATUS=OK           561 CALLS     4266 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5006        7.3651        .18979E-03   -1.5284    
   2  Prefactor     .10000E-03    18.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.1121        .13543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .26264        .72171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.7357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10014E-03    73.335        .41032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.6104        11.406        .16962E-03   -1.5234    
   9  Prefactor     28.856        19.200        .74583E-04   -1.4633    
  10  Prefactor     .10000E-03    76.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.5456        5.7436        .17057E-03   -1.5237    
  13  norm          .53015        .67498        .74788E-03   -1.5562    
  14  norm          .10000E-03    1.9634        .10744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.8996        15.985        .12738E-03   -1.5079    
  18  Prefactor     .10000E-03    57.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7381        11.135        .12327E-02   -1.5377    
  20  norm          .10000E-03    14.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.804        40.358        .11162E-03   -1.4992    
  22  Prefactor     3.9166        4.3885        .14559E-03   -1.5312    
  23  Prefactor     .10000E-03    20.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .26069        .61762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.7934        3.4118        .13376E-03   -1.5318    
  26  Prefactor     10.357        16.172        .12451E-03   -1.5064    
  27  Prefactor     10.486        7.3728        .61868E-03   -1.5060    
  28  Normalizat    1.0633        .21441        .24708E-03   -.90939    
  29  Prefactor     .81666        .15923        .21633E-03   -.99117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12361e-09
Minuit parameter uncertainties:
  1  7.36659
  2  2.17348e-06
  3  1.29291e-06
  4  5.00031e-07
  5  3.62288e-06
  6  6.77028e-06
  7  0.00639167
  8  11.4108
  9  19.2038
  10  5.88858e-05
  11  1.74855e-06
  12  5.74421
  13  0.674988
  14  6.97432e-06
  15  1.26902e-06
  16  1.80413e-05
  17  15.9917
  18  6.08856e-05
  19  11.0467
  20  1.64169e-05
  21  40.4445
  22  4.38884
  23  8.40662e-06
  24  3.48103e-07
  25  3.41193
  26  16.1793
  27  7.37346
  28  0.214589
  29  0.159321
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  6.974e-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.167e-01  1.593e-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.063e+00  2.146e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814513/likelihoodResults_270950401_271209601_4FGL_J2323.6-0617_daily_bin122.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) = 6206.13654352
delta logL = -0.00241602980441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6206.13412759
delta logL = -1.03063939605e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10173E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2200       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81666       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=   6206.134     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      227 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    119.77        .10899E-01** at limit **
   2  alpha         1.6342        3.1058        .16593        .15491E-06
   3  Normalizat    1.0633        .31995E-01    .24708E-03    .80522E-05
   4  Prefactor     .81666        .25011E-01    .21633E-03    .12613E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.63421
  Normalizat = 1.0633
  Prefactor  = 0.816662
 **********
 **   18 **HESSE 
 **********

 FCN=   6206.134     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5797        .12252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6342        3.2315        .66372E-02   -.35364    
   3  Normalizat    1.0633        .20054        .98831E-05   -.90939    
   4  Prefactor     .81666        .15672        .86531E-05   -.99117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34422e-10
Minuit parameter uncertainties:
  1  2.06999e-05
  2  165.823
  3  0.200686
  4  0.156806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814513': 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) = 6206.13412146
delta logL = 6.02300133323e-06

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  2.070e-05  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  1.634e+00  1.658e+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.167e-01  1.568e-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.063e+00  2.007e-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/814513/cmap_HighResolution_270950401_271209601_4FGL_J2323.6-0617_daily_bin122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-05', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2021-09-29 15:01:24.491279', job_id='814513', GAL2='0.82', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632952884.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='6.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='122' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:01:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 814513: <4FGL_J2323.6-0617_daily_bin122> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin122 350.916 -6.2953 270950401 271209601 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 :                                   741.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            946 sec.

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

