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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin719
RA = 350.888, Dec = -3.29
tmin = 425692801, tmax = 425952001
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='810865', job_status='RUN', time_executed='2021-09-29 14:38:26.729936', time_epoch_executed='1632951506.73' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810865/ft1_4FGL_J2323.5-0317_daily_bin719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810865/ft2_4FGL_J2323.5-0317_daily_bin719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810865/ft1_4FGL_J2323.5-0317_daily_bin719.fits outfile=/scratch/kocevski/810865/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin719.fits ra=350.888 dec=-3.29 rad=12.0 tmin=425692801.0 tmax=425952001.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.54
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/810865/ft2_4FGL_J2323.5-0317_daily_bin719.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/810865/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin719.fits evtable="EVENTS" outfile="/scratch/kocevski/810865/ft1_filtered_4FGL_J2323.5-0317_daily_bin719.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/810865/ft1_filtered_4FGL_J2323.5-0317_daily_bin719.fits" evtable="EVENTS" scfile=/scratch/kocevski/810865/ft2_4FGL_J2323.5-0317_daily_bin719.fits sctable="SC_DATA" outfile=/scratch/kocevski/810865/ltcube_425692801_425952001_4FGL_J2323.5-0317_daily_bin719.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/810865/ft2_4FGL_J2323.5-0317_daily_bin719.fits
.....................!
real 12.68
user 11.64
sys 1.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810865/ft1_filtered_4FGL_J2323.5-0317_daily_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/810865/ft2_4FGL_J2323.5-0317_daily_bin719.fits sctable="SC_DATA" expcube=/scratch/kocevski/810865/ltcube_425692801_425952001_4FGL_J2323.5-0317_daily_bin719.fits outfile=/scratch/kocevski/810865/expmap_425692801_425952001_4FGL_J2323.5-0317_daily_bin719.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/810865/ltcube_425692801_425952001_4FGL_J2323.5-0317_daily_bin719.fits
.....................!
real 192.32
user 186.99
sys 5.00

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/810865/ft1_filtered_4FGL_J2323.5-0317_daily_bin719.fits scfile=/scratch/kocevski/810865/ft2_4FGL_J2323.5-0317_daily_bin719.fits outfile=/scratch/kocevski/810865/cmap_425692801_425952001_4FGL_J2323.5-0317_daily_bin719.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810865/ft1_filtered_4FGL_J2323.5-0317_daily_bin719.fits scfile=/scratch/kocevski/810865/ft2_4FGL_J2323.5-0317_daily_bin719.fits outfile=/scratch/kocevski/810865/cmap_HighResolution_425692801_425952001_4FGL_J2323.5-0317_daily_bin719.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810865/ft1_filtered_4FGL_J2323.5-0317_daily_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/810865/ft2_4FGL_J2323.5-0317_daily_bin719.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810865/Model_4FGL_J2323.5-0317_daily_bin719.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/810865/ft1_filtered_4FGL_J2323.5-0317_daily_bin719.fits.....................!
real 53.95
user 52.57
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/810865/ft1_filtered_4FGL_J2323.5-0317_daily_bin719.fits', '/scratch/kocevski/810865/ft2_4FGL_J2323.5-0317_daily_bin719.fits', expMap='/scratch/kocevski/810865/expmap_425692801_425952001_4FGL_J2323.5-0317_daily_bin719.fits', expCube='/scratch/kocevski/810865/ltcube_425692801_425952001_4FGL_J2323.5-0317_daily_bin719.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/810865/Model_4FGL_J2323.5-0317_daily_bin719.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/810865/ft1_filtered_4FGL_J2323.5-0317_daily_bin719.fits
Spacecraft file(s): /scratch/kocevski/810865/ft2_4FGL_J2323.5-0317_daily_bin719.fits
Exposure map: /scratch/kocevski/810865/expmap_425692801_425952001_4FGL_J2323.5-0317_daily_bin719.fits
Exposure cube: /scratch/kocevski/810865/ltcube_425692801_425952001_4FGL_J2323.5-0317_daily_bin719.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/810865/Model_4FGL_J2323.5-0317_daily_bin719.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) = 5555.84787074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2343       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.017       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4969       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.598       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0769       1.0000         .10000E-03   10000.    
    17 'norm      '    9.1712       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.715       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.195       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97806       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81795       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=   5555.846     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2817 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2605       -.15226E-06** at limit **
   2  Prefactor     .10000E-03    12.545       -.19747E-05** at limit **
   3  Prefactor     .10000E-03    34.192        .21354E-04** at limit **
   4  Prefactor     9.2335        8.5585       -.69594E-07   -.84312E-04
   5  norm          .10000E-03    7.7091       -.12696E-05** at limit **
   6  Prefactor     .10000E-03    27.655       -.15663E-05** at limit **
   7  Prefactor     14.017        12.203       -.32611E-07   -.11891E-04
   8  Prefactor     .10000E-03    48.406        .68660E-05** at limit **
   9  Prefactor     4.4953        7.9891       -.49644E-06   -.28059E-03
  10  norm          .10000E-03    .27440       -.50104E-07** at limit **
  11  norm          .10000E-03    3.6546       -.79420E-07** at limit **
  12  Prefactor     .10000E-03    14.886        .61948E-05** at limit **
  13  Prefactor     23.598        46.293        .70416E-06   -.22250E-04
  14  Prefactor     .10000E-03    53.875       -.20504E-04** at limit **
  15  Prefactor     .10000E-03    8.5222        .65223E-05** at limit **
  16  Prefactor     6.0745        26.660       -.26841E-05   -.48439E-04
  17  norm          9.1709        15.117       -.39033E-06   -.14692E-03
  18  Prefactor     .10000E-03    15.778        .41866E-05** at limit **
  19  Prefactor     .10000E-03    1.5553        .18741E-06** at limit **
  20  Prefactor     24.714        44.762       -.16494E-05    .12177E-04
  21  Prefactor     .10000E-03    20.442       -.15069E-04** at limit **
  22  Prefactor     .10000E-03    9.0584       -.61466E-05** at limit **
  23  Prefactor     15.194        8.8852       -.48879E-07   -.34712E-04
  24  Normalizat    .97808        .18758        .29109E-06   -.11332E-03
  25  Prefactor     .81792        .13295       -.14089E-07   -.66423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.23346
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0169
  Prefactor  = 0.0001
  Prefactor  = 4.49534
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.07449
  norm       = 9.17092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1936
  Normalizat = 0.978083
  Prefactor  = 0.817919
 **********
 **   18 **HESSE 
 **********

 FCN=   5555.846     FROM HESSE     STATUS=OK           419 CALLS     3236 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2691        .13143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.2335        8.5587        .13189E-03   -1.5100    
   5  norm          .10000E-03    7.7540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.017        12.204        .10698E-03   -1.4959    
   8  Prefactor     .10000E-03    48.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4953        7.9632        .18986E-03   -1.5284    
  10  norm          .10000E-03    .28317        .76150E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.6808        .13853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.598        46.280        .82458E-04   -1.4736    
  14  Prefactor     .10000E-03    53.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.5953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0745        26.620        .16287E-03   -1.5215    
  17  norm          9.1709        15.087        .13234E-03   -1.5102    
  18  Prefactor     .10000E-03    15.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.5638        .90671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.714        44.821        .80576E-04   -1.4713    
  21  Prefactor     .10000E-03    20.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.0813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.194        8.9008        .10275E-03   -1.4928    
  24  Normalizat    .97808        .22082        .25393E-03   -.93768    
  25  Prefactor     .81792        .15657        .20044E-03   -.99071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09854e-10
Minuit parameter uncertainties:
  1  7.56344e-08
  2  8.7844e-08
  3  5.24881e-05
  4  8.55987
  5  2.79723e-07
  6  1.725e-06
  7  12.2063
  8  1.75548e-05
  9  7.96504
  10  2.06418e-07
  11  6.72083e-06
  12  4.06896e-06
  13  46.3506
  14  3.54211e-06
  15  1.17808e-05
  16  25.4516
  17  15.0934
  18  8.25228e-07
  19  6.47883e-07
  20  44.8821
  21  5.81314e-05
  22  5.5637e-06
  23  8.9016
  24  0.221027
  25  0.156654
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  2.064e-07  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:  8.179e-01  1.567e-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:  9.781e-01  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 5.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/810865/likelihoodResults_425692801_425952001_4FGL_J2323.5-0317_daily_bin719.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) = 5555.84641577
delta logL = -0.000418033288952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5555.84508306
delta logL = 0.000914667402867

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5555.845     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      330 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97455E-03    .20671        .21980E-03** at limit **
   2  alpha         5.0000        4.5970        .50000    ** at limit **
   3  Normalizat    .97571        .22489        .25421E-03    .62550E-03
   4  Prefactor     .81900        .15926        .20032E-03    .24042E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000974554
  alpha      = 5
  Normalizat = 0.975708
  Prefactor  = 0.818999
 **********
 **   18 **HESSE 
 **********

 FCN=   5555.845     FROM HESSE     STATUS=OK            31 CALLS      361 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97455E-03    .18600        .87919E-05   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        4.9995        .50000        1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .97571        .22399        .50843E-04   -.93849    
   4  Prefactor     .81900        .15911        .40065E-04   -.99032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51309e-09
Minuit parameter uncertainties:
  1  0.0255086
  2  0.0230025
  3  0.224207
  4  0.159199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810865': 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) = 5555.84508288
delta logL = 0.000914855679184

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  9.746e-04  2.551e-02  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  5.000e+00  2.300e-02  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:  8.190e-01  1.592e-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:  9.757e-01  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.888 -3.290

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/810865/cmap_HighResolution_425692801_425952001_4FGL_J2323.5-0317_daily_bin719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', job_status='DONE', photon_flux_upper_limit='5.09e-08', time_completed='2021-09-29 14:48:47.828742', job_id='810865', GAL2='0.82', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632952127.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='9.15e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='719' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:48:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 810865: <4FGL_J2323.5-0317_daily_bin719> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin719 350.888 -3.29 425692801 425952001 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 :                                   617.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

