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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin10
RA = 350.888, Dec = -3.29
tmin = 241920001, tmax = 242179201
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='806851', job_status='RUN', time_executed='2021-09-29 14:22:48.720008', time_epoch_executed='1632950568.72' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='10'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806851

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806851/ft1_4FGL_J2323.5-0317_daily_bin10.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806851/ft2_4FGL_J2323.5-0317_daily_bin10.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806851/ft1_4FGL_J2323.5-0317_daily_bin10.fits outfile=/scratch/kocevski/806851/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin10.fits ra=350.888 dec=-3.29 rad=12.0 tmin=241920001.0 tmax=242179201.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.40
user 1.23
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806851/ft1_filtered_4FGL_J2323.5-0317_daily_bin10.fits" evtable="EVENTS" scfile=/scratch/kocevski/806851/ft2_4FGL_J2323.5-0317_daily_bin10.fits sctable="SC_DATA" outfile=/scratch/kocevski/806851/ltcube_241920001_242179201_4FGL_J2323.5-0317_daily_bin10.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/806851/ft2_4FGL_J2323.5-0317_daily_bin10.fits
.....................!
real 12.63
user 12.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806851/ft1_filtered_4FGL_J2323.5-0317_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/806851/ft2_4FGL_J2323.5-0317_daily_bin10.fits sctable="SC_DATA" expcube=/scratch/kocevski/806851/ltcube_241920001_242179201_4FGL_J2323.5-0317_daily_bin10.fits outfile=/scratch/kocevski/806851/expmap_241920001_242179201_4FGL_J2323.5-0317_daily_bin10.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/806851/ltcube_241920001_242179201_4FGL_J2323.5-0317_daily_bin10.fits
.....................!
real 190.49
user 185.25
sys 4.93

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/806851/ft1_filtered_4FGL_J2323.5-0317_daily_bin10.fits scfile=/scratch/kocevski/806851/ft2_4FGL_J2323.5-0317_daily_bin10.fits outfile=/scratch/kocevski/806851/cmap_241920001_242179201_4FGL_J2323.5-0317_daily_bin10.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806851/ft1_filtered_4FGL_J2323.5-0317_daily_bin10.fits scfile=/scratch/kocevski/806851/ft2_4FGL_J2323.5-0317_daily_bin10.fits outfile=/scratch/kocevski/806851/cmap_HighResolution_241920001_242179201_4FGL_J2323.5-0317_daily_bin10.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/806851/ft1_filtered_4FGL_J2323.5-0317_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/806851/ft2_4FGL_J2323.5-0317_daily_bin10.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806851/Model_4FGL_J2323.5-0317_daily_bin10.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/806851/ft1_filtered_4FGL_J2323.5-0317_daily_bin10.fits.....................!
real 60.41
user 59.07
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1929       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6173       1.0000         .10000E-03   10000.    
     5 'norm      '    7.4513       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17427E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.255       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .86212E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .50862E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .32616       1.0000         .10000E-03   10000.    
    11 'norm      '    .14522E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1505       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.467       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.519       1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.852       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1672       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80130       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=   6355.443     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     2605 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1897        8.8285        .30044E-06   -.11967E-03
   2  Prefactor     .10000E-03    13.057       -.97960E-07** at limit **
   3  Prefactor     .10000E-03    26.064       -.14906E-06** at limit **
   4  Prefactor     3.6172        4.8931       -.10535E-06   -.49430E-04
   5  norm          7.4494        9.7143       -.93017E-06   -.69999E-04
   6  Prefactor     .10000E-03    87.877        .44747E-05** at limit **
   7  Prefactor     10.253        14.782        .29670E-05   -.16611E-04
   8  Prefactor     .10047E-03    116.70       -.36508E-05** at limit **
   9  Prefactor     .10134E-03    11.213        .73615E-06** at limit **
  10  norm          .32784        .80597       -.30103E-06   -.19433E-02
  11  norm          .10000E-03    3.9592        .59329E-08** at limit **
  12  Prefactor     3.1496        10.512        .19866E-05   -.15877E-03
  13  Prefactor     20.445        33.626       -.17709E-04    .29193E-05
  14  Prefactor     .10000E-03    80.651       -.41363E-05** at limit **
  15  Prefactor     .10000E-03    6.5697        .15751E-06** at limit **
  16  Prefactor     34.508        24.868       -.52470E-05   -.70022E-05
  17  norm          .10000E-03    9.9751        .77679E-07** at limit **
  18  Prefactor     .10000E-03    19.352        .17350E-07** at limit **
  19  Prefactor     .10000E-03    2.8406        .13944E-07** at limit **
  20  Prefactor     .10000E-03    22.863        .16032E-06** at limit **
  21  Prefactor     .10000E-03    8.6683        .75294E-08** at limit **
  22  Prefactor     28.841        17.030        .64618E-06    .66597E-05
  23  Prefactor     .10000E-03    5.0607       -.34361E-07** at limit **
  24  Normalizat    1.1678        .18260        .12276E-05    .76119E-04
  25  Prefactor     .80111        .12816        .25724E-06    .11914E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.1897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.6172
  norm       = 7.44938
  Prefactor  = 0.0001
  Prefactor  = 10.2528
  Prefactor  = 0.000100468
  Prefactor  = 0.000101335
  norm       = 0.327838
  norm       = 0.0001
  Prefactor  = 3.14963
  Prefactor  = 20.4447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.5077
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8407
  Prefactor  = 0.0001
  Normalizat = 1.16777
  Prefactor  = 0.801114
 **********
 **   18 **HESSE 
 **********

 FCN=   6355.443     FROM HESSE     STATUS=OK           447 CALLS     3052 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1897        8.8224        .16132E-03   -1.5210    
   2  Prefactor     .10000E-03    13.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6172        4.8870        .20003E-03   -1.5328    
   5  norm          7.4494        9.7231        .14692E-03   -1.5162    
   6  Prefactor     .10000E-03    89.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.253        14.757        .12512E-03   -1.5067    
   8  Prefactor     .10047E-03    100.65        .15468       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10134E-03    27.876        .56375E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .32784        .78946        .10418E-03   -1.5593    
  11  norm          .10000E-03    77.194        .26970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1496        10.445        .22837E-03   -1.5353    
  13  Prefactor     20.445        33.397        .88534E-04   -1.4803    
  14  Prefactor     .10000E-03    80.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.6154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.508        24.788        .68207E-04   -1.4532    
  17  norm          .10000E-03    9.9989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.9418        .26204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.6814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     28.841        17.089        .74587E-04   -1.4633    
  23  Prefactor     .10000E-03    5.1634        .17505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1678        .21547        .24768E-03   -.87605    
  25  Prefactor     .80111        .15057        .21484E-03   -.99687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19816e-09
Minuit parameter uncertainties:
  1  8.82423
  2  5.11248e-06
  3  1.84921e-05
  4  4.88751
  5  9.72521
  6  0.000256056
  7  14.7626
  8  0.0137512
  9  0.0122077
  10  0.789489
  11  0.000215502
  12  10.4509
  13  33.4273
  14  2.58569e-05
  15  2.66599e-05
  16  24.7951
  17  9.60256e-06
  18  6.67918e-06
  19  4.4379e-06
  20  4.35442e-05
  21  5.54639e-06
  22  17.0917
  23  1.30461e-05
  24  0.21563
  25  0.15065
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.278e-01  7.895e-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.011e-01  1.506e-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:  1.168e+00  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/806851/likelihoodResults_241920001_242179201_4FGL_J2323.5-0317_daily_bin10.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) = 6354.22284364
delta logL = 1.22002170175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6354.20569807
delta logL = 1.23716726319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27535       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8819       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84035       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=   6354.206     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27536        2.7230        .60646E-02    .19403E-02
   2  alpha         3.8819        4.4311        .39482        .35213E-04
   3  Normalizat    1.0709        .48471E-01    .58116E-01   -.48465E-05
   4  Prefactor     .84030        .35592E-01    .44240E-01    .13640E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.275356
  alpha      = 3.88194
  Normalizat = 1.07093
  Prefactor  = 0.840295
 **********
 **   18 **HESSE 
 **********

 FCN=   6354.206     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27536        .88633        .27383E-04   -1.5603    
   2  alpha         3.8819        3.8207        .16844E-01    .58569    
   3  Normalizat    1.0709        .21717        .25700E-03   -.90691    
   4  Prefactor     .84030        .15460        .21011E-03   -.98260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04457e-08
Minuit parameter uncertainties:
  1  0.886368
  2  2.32005
  3  0.217351
  4  0.154679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806851': 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) = 6354.20569796
delta logL = 1.23716737445

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.754e-01  8.864e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.882e+00  2.320e+00  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.403e-01  1.547e-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:  1.071e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.88 +/- 2.32
Photon Flux (Free Index): 9.43e-08 +/- 7.00e-08
Energy Flux (Free Index): 1.49e-05 +/- 1.10e-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/806851/cmap_HighResolution_241920001_242179201_4FGL_J2323.5-0317_daily_bin10.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-05', comment='SUCCESS', energy_flux2='1.49e-05', dlogl='1.24e+00', photon_flux2='9.43e-08', job_status='DONE', time_completed='2021-09-29 14:33:36.958858', photon_index_error2='2.32', photon_index2='3.88', ts='0.21', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='8.56e-08', energy_flux_error2='1.10e-05', EG='1.17', time_epoch_completed='1632951216.96', return_code='0', job_id='806851', GAL2='0.84', EG2='1.07', return_code2='0', photon_flux_error2='7.00e-08', ts2='2.88', photon_index='2.16' WHERE bin_id='10' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:33:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 806851: <4FGL_J2323.5-0317_daily_bin10> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin10> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:20:44 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:20:45 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:20:45 2021
Terminated at Wed Sep 29 14:33:37 2021
Results reported at Wed Sep 29 14:33:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin10 350.888 -3.29 241920001 242179201 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 :                                   647.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            773 sec.

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

