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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin444
RA = 350.888, Dec = -3.29
tmin = 354412801, tmax = 354672001
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='809357', job_status='RUN', time_executed='2021-09-29 14:31:20.414166', time_epoch_executed='1632951080.41' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809357

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809357/ft1_4FGL_J2323.5-0317_daily_bin444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809357/ft2_4FGL_J2323.5-0317_daily_bin444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809357/ft1_4FGL_J2323.5-0317_daily_bin444.fits outfile=/scratch/kocevski/809357/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin444.fits ra=350.888 dec=-3.29 rad=12.0 tmin=354412801.0 tmax=354672001.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.50
user 3.28
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/809357/ft2_4FGL_J2323.5-0317_daily_bin444.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809357/ft2_4FGL_J2323.5-0317_daily_bin444.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/809357/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin444.fits evtable="EVENTS" outfile="/scratch/kocevski/809357/ft1_filtered_4FGL_J2323.5-0317_daily_bin444.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/809357/ft1_filtered_4FGL_J2323.5-0317_daily_bin444.fits" evtable="EVENTS" scfile=/scratch/kocevski/809357/ft2_4FGL_J2323.5-0317_daily_bin444.fits sctable="SC_DATA" outfile=/scratch/kocevski/809357/ltcube_354412801_354672001_4FGL_J2323.5-0317_daily_bin444.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/809357/ft2_4FGL_J2323.5-0317_daily_bin444.fits
.....................!
real 12.03
user 11.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809357/ft1_filtered_4FGL_J2323.5-0317_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/809357/ft2_4FGL_J2323.5-0317_daily_bin444.fits sctable="SC_DATA" expcube=/scratch/kocevski/809357/ltcube_354412801_354672001_4FGL_J2323.5-0317_daily_bin444.fits outfile=/scratch/kocevski/809357/expmap_354412801_354672001_4FGL_J2323.5-0317_daily_bin444.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/809357/ltcube_354412801_354672001_4FGL_J2323.5-0317_daily_bin444.fits
.....................!
real 191.14
user 185.87
sys 4.90

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

Setting source of interest to:
4FGL J2323.5-0317 @ 350.888 -3.29

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/809357/ft1_filtered_4FGL_J2323.5-0317_daily_bin444.fits scfile=/scratch/kocevski/809357/ft2_4FGL_J2323.5-0317_daily_bin444.fits outfile=/scratch/kocevski/809357/cmap_354412801_354672001_4FGL_J2323.5-0317_daily_bin444.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.888 yref=-3.29 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809357/ft1_filtered_4FGL_J2323.5-0317_daily_bin444.fits scfile=/scratch/kocevski/809357/ft2_4FGL_J2323.5-0317_daily_bin444.fits outfile=/scratch/kocevski/809357/cmap_HighResolution_354412801_354672001_4FGL_J2323.5-0317_daily_bin444.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.888 yref=-3.29 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809357/ft1_filtered_4FGL_J2323.5-0317_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/809357/ft2_4FGL_J2323.5-0317_daily_bin444.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809357/Model_4FGL_J2323.5-0317_daily_bin444.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/809357/ft1_filtered_4FGL_J2323.5-0317_daily_bin444.fits.....................!
real 58.84
user 56.42
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/809357/ft1_filtered_4FGL_J2323.5-0317_daily_bin444.fits', '/scratch/kocevski/809357/ft2_4FGL_J2323.5-0317_daily_bin444.fits', expMap='/scratch/kocevski/809357/expmap_354412801_354672001_4FGL_J2323.5-0317_daily_bin444.fits', expCube='/scratch/kocevski/809357/ltcube_354412801_354672001_4FGL_J2323.5-0317_daily_bin444.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/809357/Model_4FGL_J2323.5-0317_daily_bin444.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.5-0317'

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.648e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/809357/ft1_filtered_4FGL_J2323.5-0317_daily_bin444.fits
Spacecraft file(s): /scratch/kocevski/809357/ft2_4FGL_J2323.5-0317_daily_bin444.fits
Exposure map: /scratch/kocevski/809357/expmap_354412801_354672001_4FGL_J2323.5-0317_daily_bin444.fits
Exposure cube: /scratch/kocevski/809357/ltcube_354412801_354672001_4FGL_J2323.5-0317_daily_bin444.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/809357/Model_4FGL_J2323.5-0317_daily_bin444.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) = 6140.37651738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6496       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.0128       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .94780       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    107.70       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6691       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.171       1.0000         .10000E-03   10000.    
    17 'norm      '    .37941E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .48699E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0478       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2729       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88324       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0819       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6140.338     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2876 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6511        9.6820       -.18903E-05   -.27526E-03
   2  Prefactor     .10000E-03    59.117        .28373E-04** at limit **
   3  Prefactor     .10000E-03    11.005        .43062E-05** at limit **
   4  Prefactor     .10000E-03    6.2776       -.16905E-06** at limit **
   5  norm          4.0153        14.278       -.34137E-05   -.80758E-04
   6  Prefactor     .10000E-03    16.042        .38490E-05** at limit **
   7  Prefactor     .10000E-03    8.2802        .86862E-06** at limit **
   8  Prefactor     .10000E-03    16.509        .72529E-06** at limit **
   9  Prefactor     .10000E-03    2.9211       -.62234E-07** at limit **
  10  norm          .94804        .92759       -.55540E-07   -.41077E-04
  11  norm          .10000E-03    2.5194       -.29855E-07** at limit **
  12  Prefactor     .10000E-03    10.301       -.49158E-05** at limit **
  13  Prefactor     107.69        59.074       -.10418E-04    .15764E-03
  14  Prefactor     .10000E-03    65.390       -.19618E-04** at limit **
  15  Prefactor     8.6604        10.301        .26393E-06    .28138E-03
  16  Prefactor     20.164        30.959       -.49993E-05    .21538E-03
  17  norm          .10002E-03    16.430       -.36742E-06** at limit **
  18  Prefactor     .10000E-03    20.096       -.92738E-05** at limit **
  19  Prefactor     .10000E-03    3.7773       -.38995E-07** at limit **
  20  Prefactor     .10015E-03    204.56       -.12804E-03** at limit **
  21  Prefactor     6.0245        21.846       -.12807E-04    .14852E-03
  22  Prefactor     .10000E-03    22.945        .31481E-05** at limit **
  23  Prefactor     6.2747        8.3001       -.65744E-06   -.13916E-03
  24  Normalizat    .88306        .19713        .24614E-05    .58644E-03
  25  Prefactor     1.0819        .14333        .14741E-05    .84121E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.6511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.01529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.948037
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 107.69
  Prefactor  = 0.0001
  Prefactor  = 8.6604
  Prefactor  = 20.1641
  norm       = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100145
  Prefactor  = 6.0245
  Prefactor  = 0.0001
  Prefactor  = 6.27468
  Normalizat = 0.883059
  Prefactor  = 1.08191
 **********
 **   18 **HESSE 
 **********

 FCN=   6140.338     FROM HESSE     STATUS=OK           419 CALLS     3295 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6511        9.6468        .25045E-03   -1.5382    
   2  Prefactor     .10000E-03    59.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.3935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.0153        14.281        .20132E-03   -1.5307    
   6  Prefactor     .10000E-03    16.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9279        .13078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .94804        .89531        .70480E-03   -1.5513    
  11  norm          .10000E-03    2.5327        .12142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     107.69        59.033        .19376E-03   -1.3629    
  14  Prefactor     .10000E-03    65.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.6604        9.4692        .13614E-03   -1.5119    
  16  Prefactor     20.164        30.885        .89179E-04   -1.4810    
  17  norm          .10002E-03    87.949        .56444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.8872        .29641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10015E-03    204.88        .42341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0245        21.798        .16327E-03   -1.5217    
  22  Prefactor     .10000E-03    23.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.2747        8.2974        .16027E-03   -1.5207    
  24  Normalizat    .88306        .22746        .29878E-03   -.97058    
  25  Prefactor     1.0819        .16610        .20202E-03   -.90047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39014e-09
Minuit parameter uncertainties:
  1  9.6525
  2  6.52672e-05
  3  1.24724e-05
  4  1.67474e-05
  5  14.2936
  6  1.29797e-05
  7  4.63147e-06
  8  1.92827e-05
  9  6.05033e-06
  10  0.895323
  11  6.80521e-06
  12  6.62995e-05
  13  59.0654
  14  1.93904e-06
  15  9.4708
  16  30.9093
  17  0.00234453
  18  1.53333e-05
  19  9.33148e-07
  20  0.0109529
  21  21.8272
  22  8.31944e-05
  23  8.29887
  24  0.22771
  25  0.16618
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  9.480e-01  8.953e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.082e+00  1.662e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  8.831e-01  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.67e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.42e-05

TS (Fixed Index): 2.00
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809357/likelihoodResults_354412801_354672001_4FGL_J2323.5-0317_daily_bin444.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) = 6139.88402273
delta logL = 0.453576525438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6139.88270051
delta logL = 0.45489874637

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6139.883     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90415        10.769        .11578E-01    .73066E-03
   2  alpha         2.8657        3.9156        .40375        .37507E-04
   3  Normalizat    .84154        .55002E-01    .68980E-01    .20030E-04
   4  Prefactor     1.0974        .40283E-01    .37688E-01    .11196E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.904146
  alpha      = 2.86567
  Normalizat = 0.841541
  Prefactor  = 1.09736
 **********
 **   18 **HESSE 
 **********

 FCN=   6139.883     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90415        .83072        .52313E-04   -1.5518    
   2  alpha         2.8657        .74848        .15003E-01    .14680    
   3  Normalizat    .84154        .22727        .30521E-03   -.98546    
   4  Prefactor     1.0974        .16572        .20065E-03   -.89551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1177e-09
Minuit parameter uncertainties:
  1  0.830726
  2  0.760405
  3  0.227529
  4  0.165794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809357': 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) = 6139.88270045
delta logL = 0.454898806606

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  9.041e-01  8.307e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.866e+00  7.604e-01  0.000e+00  5.000e+00 ( 1.000e+00)
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.097e+00  1.658e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  8.415e-01  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.94
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.87 +/- 0.76
Photon Flux (Free Index): 7.69e-08 +/- 6.39e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.25e-05

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/809357/cmap_HighResolution_354412801_354672001_4FGL_J2323.5-0317_daily_bin444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-05', comment='SUCCESS', photon_flux='3.67e-08', energy_flux2='1.71e-05', photon_flux_error='3.46e-08', dlogl='4.55e-01', energy_flux='1.50e-05', photon_flux2='7.69e-08', job_status='DONE', time_completed='2021-09-29 14:42:21.941520', photon_index_error2='0.76', photon_index2='2.87', ts='2.00', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.25e-05', EG='0.88', time_epoch_completed='1632951741.94', return_code='0', job_id='809357', GAL2='1.10', EG2='0.84', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='6.39e-08', ts2='2.94', photon_index='2.16' WHERE bin_id='444' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:42:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 809357: <4FGL_J2323.5-0317_daily_bin444> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin444> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:16 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:18 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:30:18 2021
Terminated at Wed Sep 29 14:42:22 2021
Results reported at Wed Sep 29 14:42:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin444 350.888 -3.29 354412801 354672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.5-0317 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   645.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            726 sec.

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

