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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin126
RA = 350.888, Dec = -3.29
tmin = 271987201, tmax = 272246401
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='807040', job_status='RUN', time_executed='2021-09-29 14:23:54.209600', time_epoch_executed='1632950634.21' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/807040

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/807040/ft1_4FGL_J2323.5-0317_daily_bin126.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/807040/ft2_4FGL_J2323.5-0317_daily_bin126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/807040/ft1_4FGL_J2323.5-0317_daily_bin126.fits outfile=/scratch/kocevski/807040/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin126.fits ra=350.888 dec=-3.29 rad=12.0 tmin=271987201.0 tmax=272246401.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.44
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/807040/ft2_4FGL_J2323.5-0317_daily_bin126.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/807040/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin126.fits evtable="EVENTS" outfile="/scratch/kocevski/807040/ft1_filtered_4FGL_J2323.5-0317_daily_bin126.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/807040/ft1_filtered_4FGL_J2323.5-0317_daily_bin126.fits" evtable="EVENTS" scfile=/scratch/kocevski/807040/ft2_4FGL_J2323.5-0317_daily_bin126.fits sctable="SC_DATA" outfile=/scratch/kocevski/807040/ltcube_271987201_272246401_4FGL_J2323.5-0317_daily_bin126.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/807040/ft2_4FGL_J2323.5-0317_daily_bin126.fits
.....................!
real 12.09
user 11.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/807040/ft1_filtered_4FGL_J2323.5-0317_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/807040/ft2_4FGL_J2323.5-0317_daily_bin126.fits sctable="SC_DATA" expcube=/scratch/kocevski/807040/ltcube_271987201_272246401_4FGL_J2323.5-0317_daily_bin126.fits outfile=/scratch/kocevski/807040/expmap_271987201_272246401_4FGL_J2323.5-0317_daily_bin126.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/807040/ltcube_271987201_272246401_4FGL_J2323.5-0317_daily_bin126.fits
.....................!
real 190.88
user 185.51
sys 5.06

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/807040/ft1_filtered_4FGL_J2323.5-0317_daily_bin126.fits scfile=/scratch/kocevski/807040/ft2_4FGL_J2323.5-0317_daily_bin126.fits outfile=/scratch/kocevski/807040/cmap_271987201_272246401_4FGL_J2323.5-0317_daily_bin126.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/807040/ft1_filtered_4FGL_J2323.5-0317_daily_bin126.fits scfile=/scratch/kocevski/807040/ft2_4FGL_J2323.5-0317_daily_bin126.fits outfile=/scratch/kocevski/807040/cmap_HighResolution_271987201_272246401_4FGL_J2323.5-0317_daily_bin126.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/807040/ft1_filtered_4FGL_J2323.5-0317_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/807040/ft2_4FGL_J2323.5-0317_daily_bin126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/807040/Model_4FGL_J2323.5-0317_daily_bin126.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/807040/ft1_filtered_4FGL_J2323.5-0317_daily_bin126.fits.....................!
real 68.38
user 67.13
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13688E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18076       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7054       1.0000         .10000E-03   10000.    
     5 'norm      '    11.757       1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.076       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0584       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3931       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7198       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1334       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26442E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4887       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .65167       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6236       1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.523       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92398       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85481       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=   7486.324     FROM MIGRAD    STATUS=CONVERGED   1111 CALLS     3424 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    16.668        .33672E-02** at limit **
   2  Prefactor     .10036E-03    43.667        .15508    ** at limit **
   3  Prefactor     .10000E-03    14.699        .18142E-02** at limit **
   4  Prefactor     7.7016        8.0929        .14446E-03    .24711E-04
   5  norm          11.754        8.6572        .11683E-03    .42134E-04
   6  Prefactor     36.073        24.578        .66724E-04    .23854E-05
   7  Prefactor     .10000E-03    7.1385        .18142E-02** at limit **
   8  Prefactor     .10000E-03    24.781        .18142E-02** at limit **
   9  Prefactor     1.0529        9.4987        .46101E-03    .22414E-03
  10  norm          1.3931        .68705        .48595E-04   -.32027E-03
  11  norm          1.7226        4.2732        .24913E-03    .12335E-03
  12  Prefactor     3.1311        7.6291        .22902E-03   -.97492E-04
  13  Prefactor     .10004E-03    125.47        .21442E-02** at limit **
  14  Prefactor     .10000E-03    43.296        .18142E-02** at limit **
  15  Prefactor     .10000E-03    2.2954        .12787E-02** at limit **
  16  Prefactor     .10000E-03    8.4723        .18142E-02** at limit **
  17  norm          4.4915        8.7448        .19004E-03    .88537E-05
  18  Prefactor     .57967        41.978        .14836        .12824E-03
  19  Prefactor     3.6231        3.4675        .14675E-03   -.13945E-05
  20  Prefactor     47.562        34.888        .58166E-04    .19545E-06
  21  Prefactor     .10000E-03    14.312        .18142E-02** at limit **
  22  Prefactor     .10000E-03    5.8485        .18142E-02** at limit **
  23  Prefactor     .10000E-03    1.7775        .11243E-02** at limit **
  24  Normalizat    .92418        .18664        .25904E-03    .55225E-03
  25  Prefactor     .85489        .13378        .20040E-03    .51069E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100021
  Prefactor  = 0.000100356
  Prefactor  = 0.0001
  Prefactor  = 7.70162
  norm       = 11.7536
  Prefactor  = 36.0732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.0529
  norm       = 1.39306
  norm       = 1.72263
  Prefactor  = 3.13106
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.49148
  Prefactor  = 0.579666
  Prefactor  = 3.62315
  Prefactor  = 47.5618
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.924182
  Prefactor  = 0.854891
 **********
 **   18 **HESSE 
 **********

 FCN=   7486.324     FROM HESSE     STATUS=OK           421 CALLS     3845 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    16.889        .67344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10036E-03    45.341        .15139       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.700        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7016        8.0929        .57785E-05   -1.5153    
   5  norm          11.754        8.6570        .46733E-05   -1.5022    
   6  Prefactor     36.073        24.578        .26690E-05   -1.4506    
   7  Prefactor     .10000E-03    7.1393        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0529        9.4503        .18441E-04   -1.5503    
  10  norm          1.3931        .68702        .19438E-05   -1.5472    
  11  norm          1.7226        4.2639        .99653E-05   -1.5445    
  12  Prefactor     3.1311        7.6288        .91610E-05   -1.5354    
  13  Prefactor     .10004E-03    125.58        .42884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    43.296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2955        .25574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.4728        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4915        8.7446        .76016E-05   -1.5284    
  18  Prefactor     .57967        40.903        .15097       -1.5556    
  19  Prefactor     3.6231        3.4672        .58699E-05   -1.5327    
  20  Prefactor     47.562        34.898        .23266E-05   -1.4328    
  21  Prefactor     .10000E-03    14.314        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.8498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.7776        .22486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .92418        .18673        .51808E-04   -.95616    
  25  Prefactor     .85489        .13388        .40080E-04   -.97736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65328e-09
Minuit parameter uncertainties:
  1  0.00119128
  2  0.00803668
  3  2.51463e-05
  4  8.09404
  5  8.65794
  6  24.5848
  7  3.3604e-05
  8  0.00015739
  9  6.30983
  10  0.687026
  11  4.26468
  12  7.63118
  13  0.00444384
  14  1.72299e-05
  15  3.73214e-05
  16  0.000123123
  17  8.74713
  18  9.74465
  19  3.46741
  20  34.9135
  21  0.000530881
  22  4.3853e-05
  23  1.09275e-06
  24  0.186858
  25  0.133929
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.393e+00  6.870e-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:  8.549e-01  1.339e-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.242e-01  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.45
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 5.39e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 1.09e-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) = 7485.90998458
delta logL = 0.413719332218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7485.88935852
delta logL = 0.434345394397

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3205       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7357       1.0000          .0000       5.0000    
     3 'Normalizat'    .94045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84939       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=   7485.889     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      201 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3203        .72846        .95733E-02   -.30455E-03
   2  alpha         1.7356        .39061        .32706       -.38590E-04
   3  Normalizat    .94045        .15258        .45416E-01   -.36511E-03
   4  Prefactor     .84938        .11430        .44357E-01   -.49433E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32026
  alpha      = 1.73562
  Normalizat = 0.940451
  Prefactor  = 0.849383
 **********
 **   18 **HESSE 
 **********

 FCN=   7485.889     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3203        .74722        .49762E-04   -1.5478    
   2  alpha         1.7356        .44649        .12949E-01   -.31073    
   3  Normalizat    .94045        .17669        .25713E-03   -.95053    
   4  Prefactor     .84938        .13224        .20102E-03   -.97933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52094e-10
Minuit parameter uncertainties:
  1  0.747226
  2  0.449152
  3  0.176803
  4  0.132292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/807040': 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) = 7485.88935846
delta logL = 0.434345449116

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.320e+00  7.472e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.736e+00  4.492e-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.494e-01  1.323e-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.405e-01  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.33
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.74 +/- 0.45
Photon Flux (Free Index): 3.68e-08 +/- 2.62e-08
Energy Flux (Free Index): 3.07e-05 +/- 2.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/807040/cmap_HighResolution_271987201_272246401_4FGL_J2323.5-0317_daily_bin126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.39e-08', energy_flux2='3.07e-05', photon_flux_error='2.66e-08', dlogl='4.34e-01', energy_flux='2.21e-05', photon_flux2='3.68e-08', job_status='DONE', time_completed='2021-09-29 14:35:17.886601', photon_index_error2='0.45', photon_index2='1.74', ts='10.45', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='2.07e-05', EG='0.92', time_epoch_completed='1632951317.89', return_code='0', job_id='807040', GAL2='0.85', EG2='0.94', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='2.62e-08', ts2='11.33', photon_index='2.16' WHERE bin_id='126' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:35:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 807040: <4FGL_J2323.5-0317_daily_bin126> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin126 350.888 -3.29 271987201 272246401 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 :                                   683.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            857 sec.

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

