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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin1032
RA = 350.888, Dec = -3.29
tmin = 506822401, tmax = 507081601
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='812472', job_status='RUN', time_executed='2021-09-29 14:43:40.531489', time_epoch_executed='1632951820.53' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='1032'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812472

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812472/ft1_4FGL_J2323.5-0317_daily_bin1032.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812472/ft2_4FGL_J2323.5-0317_daily_bin1032.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812472/ft1_4FGL_J2323.5-0317_daily_bin1032.fits outfile=/scratch/kocevski/812472/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin1032.fits ra=350.888 dec=-3.29 rad=12.0 tmin=506822401.0 tmax=507081601.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.52
user 3.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812472/ft1_filtered_4FGL_J2323.5-0317_daily_bin1032.fits" evtable="EVENTS" scfile=/scratch/kocevski/812472/ft2_4FGL_J2323.5-0317_daily_bin1032.fits sctable="SC_DATA" outfile=/scratch/kocevski/812472/ltcube_506822401_507081601_4FGL_J2323.5-0317_daily_bin1032.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/812472/ft2_4FGL_J2323.5-0317_daily_bin1032.fits
.....................!
real 12.26
user 11.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812472/ft1_filtered_4FGL_J2323.5-0317_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/812472/ft2_4FGL_J2323.5-0317_daily_bin1032.fits sctable="SC_DATA" expcube=/scratch/kocevski/812472/ltcube_506822401_507081601_4FGL_J2323.5-0317_daily_bin1032.fits outfile=/scratch/kocevski/812472/expmap_506822401_507081601_4FGL_J2323.5-0317_daily_bin1032.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/812472/ltcube_506822401_507081601_4FGL_J2323.5-0317_daily_bin1032.fits
.....................!
real 192.23
user 186.96
sys 4.78

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/812472/ft1_filtered_4FGL_J2323.5-0317_daily_bin1032.fits scfile=/scratch/kocevski/812472/ft2_4FGL_J2323.5-0317_daily_bin1032.fits outfile=/scratch/kocevski/812472/cmap_506822401_507081601_4FGL_J2323.5-0317_daily_bin1032.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812472/ft1_filtered_4FGL_J2323.5-0317_daily_bin1032.fits scfile=/scratch/kocevski/812472/ft2_4FGL_J2323.5-0317_daily_bin1032.fits outfile=/scratch/kocevski/812472/cmap_HighResolution_506822401_507081601_4FGL_J2323.5-0317_daily_bin1032.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.601       1.0000         .10000E-03   10000.    
     3 'Prefactor '    172.75       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14491E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    13.745       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.499       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    141.02       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .87587       1.0000         .10000E-03   10000.    
    11 'norm      '    5.7195       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6197       1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.059       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8357       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3941       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.073       1.0000         .10000E-03   10000.    
    21 'Prefactor '    52.793       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.4528       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .57207       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7432.845     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     2476 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2498        .53240E-06** at limit **
   2  Prefactor     31.610        3.0028       -.44667E-07   -.32148E-03
   3  Prefactor     172.89        44.381       -.30962E-06   -.52325E-02
   4  Prefactor     .10806E-03    59.249        .55136E-05** at limit **
   5  norm          13.744        7.9511       -.27808E-07   -.56305E-03
   6  Prefactor     23.498        1.0414        .23864E-07   -.12718E-02
   7  Prefactor     .10020E-03    45.287       -.21557E-05** at limit **
   8  Prefactor     141.02        1.9209        .11140E-07    .43425E-03
   9  Prefactor     .10000E-03    3.1689        .44016E-06** at limit **
  10  norm          .87569        .68315       -.16668E-07   -.10365E-03
  11  norm          5.7191        4.2596       -.16481E-06   -.17889E-03
  12  Prefactor     3.6191        1.1905        .92036E-07   -.24166E-02
  13  Prefactor     38.044        4.5476        .74828E-07   -.59614E-03
  14  Prefactor     .11155E-03    38.144        .27714E-05** at limit **
  15  Prefactor     .10000E-03    6.8411       -.76121E-06** at limit **
  16  Prefactor     9.8486        2.9418       -.12586E-06    .65567E-03
  17  norm          .10000E-03    7.3357       -.40423E-06** at limit **
  18  Prefactor     .10003E-03    38.380       -.33413E-06** at limit **
  19  Prefactor     6.3923        4.1845       -.11165E-06   -.24688E-03
  20  Prefactor     33.067        1.2776        .44445E-07   -.19899E-02
  21  Prefactor     52.785        1.3931        .45572E-07   -.25207E-02
  22  Prefactor     .10000E-03    9.8163        .21155E-06** at limit **
  23  Prefactor     8.4518        1.0927        .21072E-09   -.26913E-03
  24  Normalizat    .57213        .19599       -.35039E-05   -.45307E-04
  25  Prefactor     1.0378        .14527        .22592E-05    .17020E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.61
  Prefactor  = 172.887
  Prefactor  = 0.000108055
  norm       = 13.7439
  Prefactor  = 23.4976
  Prefactor  = 0.000100198
  Prefactor  = 141.019
  Prefactor  = 0.0001
  norm       = 0.875694
  norm       = 5.71907
  Prefactor  = 3.61914
  Prefactor  = 38.0443
  Prefactor  = 0.000111547
  Prefactor  = 0.0001
  Prefactor  = 9.84858
  norm       = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 6.3923
  Prefactor  = 33.0674
  Prefactor  = 52.7849
  Prefactor  = 0.0001
  Prefactor  = 8.45176
  Normalizat = 0.572126
  Prefactor  = 1.03784
 **********
 **   18 **HESSE 
 **********

 FCN=   7432.845     FROM HESSE     STATUS=OK           485 CALLS     2961 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2403        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.610        40.916        .17819E-02   -1.4583    
   3  Prefactor     172.89        49.351        .76751E-03   -1.3071    
   4  Prefactor     .10806E-03    7.3744        .90953E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.744        7.9885        .27009E-02   -1.4966    
   6  Prefactor     23.498        32.188        .20658E-02   -1.4738    
   7  Prefactor     .10020E-03    44.042        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     141.02        47.796        .84809E-03   -1.3327    
   9  Prefactor     .10000E-03    3.1605        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .87569        .71761        .12720E-01   -1.5521    
  11  norm          5.7191        4.3233        .41988E-02   -1.5230    
  12  Prefactor     3.6191        5.8425        .53090E-02   -1.5327    
  13  Prefactor     38.044        48.243        .16242E-02   -1.4474    
  14  Prefactor     .11155E-03    80.121        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.7994        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.8486        25.745        .31943E-02   -1.5080    
  17  norm          .10000E-03    7.3276        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    38.388        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.3923        4.2201        .39682E-02   -1.5202    
  20  Prefactor     33.067        29.485        .17419E-02   -1.4557    
  21  Prefactor     52.785        24.321        .13800E-02   -1.4254    
  22  Prefactor     .10000E-03    9.7128        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.4518        5.9595        .34471E-02   -1.5126    
  24  Normalizat    .57213        .18446        .76134E-01   -1.0918    
  25  Prefactor     1.0378        .13034        .40684E-01   -.91478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46501e-07
Minuit parameter uncertainties:
  1  2.18771e-05
  2  40.9524
  3  49.363
  4  0.0154165
  5  7.98909
  6  32.2115
  7  0.00591651
  8  47.8093
  9  1.78817e-05
  10  0.717617
  11  4.32358
  12  5.84339
  13  48.2927
  14  0.060915
  15  4.97439e-05
  16  25.7742
  17  2.16322e-05
  18  0.00205443
  19  4.22025
  20  29.4978
  21  24.3258
  22  1.93394e-05
  23  5.95997
  24  0.184661
  25  0.130375
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.038e+00  1.304e-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:  5.721e-01  1.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.87
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.39e-08 +/- 2.78e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.14e-05

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

Saving results to:
/scratch/kocevski/812472/likelihoodResults_506822401_507081601_4FGL_J2323.5-0317_daily_bin1032.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) = 7432.70924961
delta logL = 0.135550730896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7432.70250774
delta logL = 0.142292604029

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81021       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5092       1.0000          .0000       5.0000    
     3 'Normalizat'    .55895       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0436       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=   7432.703     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81020        11.200        .12141E-01   -.66501E-03
   2  alpha         2.5092        3.6510        .41152        .44784E-04
   3  Normalizat    .55894        .49191E-01    .76958E-01    .45750E-04
   4  Prefactor     1.0436        .37476E-01    .40302E-01    .95821E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 0.810201
  alpha      = 2.50915
  Normalizat = 0.558939
  Prefactor  = 1.04357
 **********
 **   18 **HESSE 
 **********

 FCN=   7432.703     FROM HESSE     STATUS=OK            35 CALLS      244 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81020        .68145        .55742E-03   -1.5528    
   2  alpha         2.5092        .69227        .16517E-01    .36617E-02
   3  Normalizat    .55894        .19015        .34075E-03   -1.0976    
   4  Prefactor     1.0436        .14492        .19458E-03   -.91291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71729e-10
Minuit parameter uncertainties:
  1  0.681456
  2  0.701437
  3  0.190368
  4  0.144978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812472': 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) = 7432.70250774
delta logL = 0.142292608363

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.044e+00  1.450e-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:  5.589e-01  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.51 +/- 0.70
Photon Flux (Free Index): 4.50e-08 +/- 3.62e-08
Energy Flux (Free Index): 1.28e-05 +/- 9.68e-06

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/812472/cmap_HighResolution_506822401_507081601_4FGL_J2323.5-0317_daily_bin1032.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-05', comment='SUCCESS', photon_flux='3.39e-08', energy_flux2='1.28e-05', photon_flux_error='2.78e-08', dlogl='1.42e-01', energy_flux='1.39e-05', photon_flux2='4.50e-08', job_status='DONE', time_completed='2021-09-29 14:56:09.306429', photon_index_error2='0.70', photon_index2='2.51', ts='2.87', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='9.35e-08', energy_flux_error2='9.68e-06', EG='0.57', time_epoch_completed='1632952569.31', return_code='0', job_id='812472', GAL2='1.04', EG2='0.56', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='3.62e-08', ts2='3.16', photon_index='2.16' WHERE bin_id='1032' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:56:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 812472: <4FGL_J2323.5-0317_daily_bin1032> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin1032> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 14:40:18 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:40:20 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:40:20 2021
Terminated at Wed Sep 29 14:56:10 2021
Results reported at Wed Sep 29 14:56:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin1032 350.888 -3.29 506822401 507081601 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 :                                   715.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            952 sec.

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

