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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin554
RA = 350.888, Dec = -3.29
tmin = 382924801, tmax = 383184001
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='809524', job_status='RUN', time_executed='2021-09-29 14:31:55.656257', time_epoch_executed='1632951115.66' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809524

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809524/ft1_4FGL_J2323.5-0317_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809524/ft2_4FGL_J2323.5-0317_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809524/ft1_4FGL_J2323.5-0317_daily_bin554.fits outfile=/scratch/kocevski/809524/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin554.fits ra=350.888 dec=-3.29 rad=12.0 tmin=382924801.0 tmax=383184001.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 4.45
user 4.22
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809524/ft2_4FGL_J2323.5-0317_daily_bin554.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/809524/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin554.fits evtable="EVENTS" outfile="/scratch/kocevski/809524/ft1_filtered_4FGL_J2323.5-0317_daily_bin554.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809524/ft1_filtered_4FGL_J2323.5-0317_daily_bin554.fits" evtable="EVENTS" scfile=/scratch/kocevski/809524/ft2_4FGL_J2323.5-0317_daily_bin554.fits sctable="SC_DATA" outfile=/scratch/kocevski/809524/ltcube_382924801_383184001_4FGL_J2323.5-0317_daily_bin554.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/809524/ft2_4FGL_J2323.5-0317_daily_bin554.fits
.....................!
real 12.24
user 11.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809524/ft1_filtered_4FGL_J2323.5-0317_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/809524/ft2_4FGL_J2323.5-0317_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/809524/ltcube_382924801_383184001_4FGL_J2323.5-0317_daily_bin554.fits outfile=/scratch/kocevski/809524/expmap_382924801_383184001_4FGL_J2323.5-0317_daily_bin554.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/809524/ltcube_382924801_383184001_4FGL_J2323.5-0317_daily_bin554.fits
.....................!
real 190.29
user 185.75
sys 4.14

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/809524/ft1_filtered_4FGL_J2323.5-0317_daily_bin554.fits scfile=/scratch/kocevski/809524/ft2_4FGL_J2323.5-0317_daily_bin554.fits outfile=/scratch/kocevski/809524/cmap_382924801_383184001_4FGL_J2323.5-0317_daily_bin554.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809524/ft1_filtered_4FGL_J2323.5-0317_daily_bin554.fits scfile=/scratch/kocevski/809524/ft2_4FGL_J2323.5-0317_daily_bin554.fits outfile=/scratch/kocevski/809524/cmap_HighResolution_382924801_383184001_4FGL_J2323.5-0317_daily_bin554.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809524/ft1_filtered_4FGL_J2323.5-0317_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/809524/ft2_4FGL_J2323.5-0317_daily_bin554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809524/Model_4FGL_J2323.5-0317_daily_bin554.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/809524/ft1_filtered_4FGL_J2323.5-0317_daily_bin554.fits.....................!
real 61.19
user 59.91
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5004       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .77778E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.981       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9426       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1618       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.367       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.625       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.588       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0687       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.1915       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88027       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89098       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=   6410.461     FROM MIGRAD    STATUS=CONVERGED   1005 CALLS     3722 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4972        8.8773        .18979E-03    .50480E-03
   2  Prefactor     .10000E-03    55.243        .15363    ** at limit **
   3  Prefactor     .10000E-03    33.975        .18142E-02** at limit **
   4  Prefactor     .10000E-03    10.409        .36285E-03** at limit **
   5  norm          .10000E-03    3.7552        .15132E-02** at limit **
   6  Prefactor     .10000E-03    16.110        .18142E-02** at limit **
   7  Prefactor     .10000E-03    5.0603        .17573E-02** at limit **
   8  Prefactor     .10000E-03    26.290        .18142E-02** at limit **
   9  Prefactor     10.982        7.8417        .12090E-03    .18337E-03
  10  norm          3.9427        1.1314        .43035E-04    .17409E-03
  11  norm          .10000E-03    5.0037        .34460E-03** at limit **
  12  Prefactor     5.1614        5.7722        .17695E-03    .63607E-04
  13  Prefactor     .10000E-03    79.016        .18142E-02** at limit **
  14  Prefactor     .10000E-03    66.868        .18142E-02** at limit **
  15  Prefactor     12.367        15.018        .11391E-03    .11089E-03
  16  Prefactor     .10000E-03    9.8362        .18142E-02** at limit **
  17  norm          10.618        26.205        .12291E-03   -.77694E-05
  18  Prefactor     .10000E-03    20.594        .18142E-02** at limit **
  19  Prefactor     .10000E-03    1.7695        .10318E-02** at limit **
  20  Prefactor     18.590        33.199        .92898E-04    .62168E-04
  21  Prefactor     .10000E-03    32.155        .18142E-02** at limit **
  22  Prefactor     3.0693        10.901        .23156E-03    .42517E-04
  23  Prefactor     7.1921        6.4589        .74789E-03    .49165E-03
  24  Normalizat    .88007        .20145        .26648E-03    .44556E-03
  25  Prefactor     .89111        .14664        .20122E-03    .63180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.49721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9818
  norm       = 3.94274
  norm       = 0.0001
  Prefactor  = 5.16143
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 12.3666
  Prefactor  = 0.0001
  norm       = 10.6179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5897
  Prefactor  = 0.0001
  Prefactor  = 3.06925
  Prefactor  = 7.19214
  Normalizat = 0.880073
  Prefactor  = 0.89111
 **********
 **   18 **HESSE 
 **********

 FCN=   6410.461     FROM HESSE     STATUS=OK           411 CALLS     4133 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4972        8.8756        .75915E-05   -1.5284    
   2  Prefactor     .10000E-03    55.828        .15256       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.410        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.7554        .30263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0607        .35146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.291        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.982        7.8415        .48360E-05   -1.5045    
  10  norm          3.9427        1.1314        .17214E-05   -1.5311    
  11  norm          .10000E-03    5.0039        .68920E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1614        5.7722        .70778E-05   -1.5254    
  13  Prefactor     .10000E-03    79.029        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    66.868        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.367        15.013        .45563E-05   -1.5004    
  16  Prefactor     .10000E-03    9.8372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.618        26.197        .49166E-05   -1.5056    
  18  Prefactor     .10000E-03    20.595        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.7697        .20636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.590        33.199        .37159E-05   -1.4845    
  21  Prefactor     .10000E-03    32.180        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.0693        10.900        .92624E-05   -1.5358    
  23  Prefactor     7.1921        6.4576        .29916E-04   -1.5172    
  24  Normalizat    .88007        .20159        .53295E-04   -.97164    
  25  Prefactor     .89111        .14675        .40244E-04   -.96452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.78386e-10
Minuit parameter uncertainties:
  1  8.87821
  2  0.00010993
  3  0.000118066
  4  5.05603e-05
  5  5.77047e-06
  6  3.86775e-05
  7  3.08567e-06
  8  5.5361e-05
  9  7.84224
  10  1.13136
  11  2.82576e-05
  12  5.77285
  13  0.000575325
  14  0.000716596
  15  15.018
  16  5.86535e-06
  17  26.2256
  18  0.000160654
  19  1.00124e-05
  20  33.2319
  21  4.33554e-05
  22  10.907
  23  6.45827
  24  0.201762
  25  0.146815
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.943e+00  1.131e+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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  8.911e-01  1.468e-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.801e-01  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.66
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 4.38e-08
Energy Flux (Fixed Index): 6.25e-05 +/- 1.79e-05

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) = 6410.27075282
delta logL = 0.18993967089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6410.26197175
delta logL = 0.198720739806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0271       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9856       1.0000          .0000       5.0000    
     3 'Normalizat'    .89972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88295       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=   6410.262     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      197 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0271        1.3628        .50237E-02    .15449E-02
   2  alpha         1.9856        .30739        .19505        .60260E-06
   3  Normalizat    .89973        .16770        .44898E-01   -.39797E-04
   4  Prefactor     .88295        .12659        .44787E-01    .42258E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.02711
  alpha      = 1.98562
  Normalizat = 0.899726
  Prefactor  = 0.882946
 **********
 **   18 **HESSE 
 **********

 FCN=   6410.262     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0271        1.1691        .44874E-04   -1.5307    
   2  alpha         1.9856        .27493        .82482E-02   -.20723    
   3  Normalizat    .89973        .19327        .26407E-03   -.96470    
   4  Prefactor     .88295        .14573        .20213E-03   -.96740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12759e-10
Minuit parameter uncertainties:
  1  1.16909
  2  0.275515
  3  0.193415
  4  0.145792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809524': 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) = 6410.26197175
delta logL = 0.1987207413

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.027e+00  1.169e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.986e+00  2.755e-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:  8.829e-01  1.458e-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.997e-01  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 41.15
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.99 +/- 0.28
Photon Flux (Free Index): 1.34e-07 +/- 4.90e-08
Energy Flux (Free Index): 7.05e-05 +/- 2.56e-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/809524/cmap_HighResolution_382924801_383184001_4FGL_J2323.5-0317_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='7.05e-05', photon_flux_error='4.38e-08', dlogl='1.99e-01', energy_flux='6.25e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-29 14:43:16.326901', photon_index_error2='0.28', photon_index2='1.99', ts='40.66', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='0.88', time_epoch_completed='1632951796.33', return_code='0', job_id='809524', GAL2='0.88', EG2='0.90', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='4.90e-08', ts2='41.15', photon_index='2.16' WHERE bin_id='554' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:43:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 809524: <4FGL_J2323.5-0317_daily_bin554> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin554> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:28 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:31 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:31 2021
Terminated at Wed Sep 29 14:43:17 2021
Results reported at Wed Sep 29 14:43:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin554 350.888 -3.29 382924801 383184001 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 :                                   668.45 sec.
    Max Memory :                                 1234 MB
    Average Memory :                             269.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            769 sec.

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

