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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin329
RA = 350.888, Dec = -3.29
tmin = 324604801, tmax = 324864001
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='808339', job_status='RUN', time_executed='2021-09-29 14:25:52.015835', time_epoch_executed='1632950752.02' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808339

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808339/ft1_4FGL_J2323.5-0317_daily_bin329.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808339/ft2_4FGL_J2323.5-0317_daily_bin329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808339/ft1_4FGL_J2323.5-0317_daily_bin329.fits outfile=/scratch/kocevski/808339/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin329.fits ra=350.888 dec=-3.29 rad=12.0 tmin=324604801.0 tmax=324864001.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 9.61
user 9.26
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808339/ft1_filtered_4FGL_J2323.5-0317_daily_bin329.fits" evtable="EVENTS" scfile=/scratch/kocevski/808339/ft2_4FGL_J2323.5-0317_daily_bin329.fits sctable="SC_DATA" outfile=/scratch/kocevski/808339/ltcube_324604801_324864001_4FGL_J2323.5-0317_daily_bin329.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/808339/ft2_4FGL_J2323.5-0317_daily_bin329.fits
.....................!
real 11.47
user 11.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808339/ft1_filtered_4FGL_J2323.5-0317_daily_bin329.fits evtable="EVENTS" scfile=/scratch/kocevski/808339/ft2_4FGL_J2323.5-0317_daily_bin329.fits sctable="SC_DATA" expcube=/scratch/kocevski/808339/ltcube_324604801_324864001_4FGL_J2323.5-0317_daily_bin329.fits outfile=/scratch/kocevski/808339/expmap_324604801_324864001_4FGL_J2323.5-0317_daily_bin329.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/808339/ltcube_324604801_324864001_4FGL_J2323.5-0317_daily_bin329.fits
.....................!
real 192.99
user 187.24
sys 5.42

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/808339/ft1_filtered_4FGL_J2323.5-0317_daily_bin329.fits scfile=/scratch/kocevski/808339/ft2_4FGL_J2323.5-0317_daily_bin329.fits outfile=/scratch/kocevski/808339/cmap_324604801_324864001_4FGL_J2323.5-0317_daily_bin329.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808339/ft1_filtered_4FGL_J2323.5-0317_daily_bin329.fits scfile=/scratch/kocevski/808339/ft2_4FGL_J2323.5-0317_daily_bin329.fits outfile=/scratch/kocevski/808339/cmap_HighResolution_324604801_324864001_4FGL_J2323.5-0317_daily_bin329.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/808339/ft1_filtered_4FGL_J2323.5-0317_daily_bin329.fits evtable="EVENTS" scfile=/scratch/kocevski/808339/ft2_4FGL_J2323.5-0317_daily_bin329.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808339/Model_4FGL_J2323.5-0317_daily_bin329.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/808339/ft1_filtered_4FGL_J2323.5-0317_daily_bin329.fits.....................!
real 47.31
user 46.01
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5381       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.773       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9864       1.0000         .10000E-03   10000.    
     5 'norm      '    13.670       1.0000         .10000E-03   10000.    
     6 'Prefactor '    58.044       1.0000         .10000E-03   10000.    
     7 'Prefactor '    73.186       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10142E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1303       1.0000         .10000E-03   10000.    
    10 'norm      '    .89912       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7660       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23375E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.643       1.0000         .10000E-03   10000.    
    14 'Prefactor '    344.85       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3423       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    34.139       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5577       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4795       1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.100       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90495       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86303       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=   4385.946     FROM MIGRAD    STATUS=CONVERGED   1011 CALLS     3420 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5387        14.364        .25635E-03    .31310E-04
   2  Prefactor     .10000E-03    27.689        .18142E-02** at limit **
   3  Prefactor     10.779        26.448        .12207E-03    .48430E-05
   4  Prefactor     1.9860        6.4459        .29401E-03    .59355E-04
   5  norm          13.664        16.248        .10833E-03    .44810E-04
   6  Prefactor     58.044        44.146        .52658E-04   -.30830E-04
   7  Prefactor     73.194        30.737        .46930E-04   -.96899E-05
   8  Prefactor     .10000E-03    310.22        .20753E-02** at limit **
   9  Prefactor     1.1263        122.86        .43950E-03    .87613E-04
  10  norm          .89850        1.0508        .70754E-03   -.27172E-03
  11  norm          3.7717        14.139        .20804E-03    .11995E-03
  12  Prefactor     .10148E-03    185.98        .40874E-02** at limit **
  13  Prefactor     27.624        55.457        .76197E-04    .92505E-05
  14  Prefactor     344.80        292.73        .10961E-03    .14293E-04
  15  Prefactor     3.4352        68.559        .22138E-03    .21260E-04
  16  Prefactor     .10000E-03    12.729        .18142E-02** at limit **
  17  norm          34.029        54.388        .68585E-04    .66205E-04
  18  Prefactor     .10000E-03    213.20        .18142E-02** at limit **
  19  Prefactor     7.5493        10.825        .14588E-03    .15306E-03
  20  Prefactor     2.4625        181.04        .25963E-03    .40722E-05
  21  Prefactor     62.090        35.708        .50919E-04   -.23175E-04
  22  Prefactor     .10000E-03    12.261        .18142E-02** at limit **
  23  Prefactor     .10000E-03    6.0334        .15841E-02** at limit **
  24  Normalizat    .90457        .28042        .29058E-03   -.87716E-04
  25  Prefactor     .86332        .19019        .21414E-03    .35888E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.53867
  Prefactor  = 0.0001
  Prefactor  = 10.7792
  Prefactor  = 1.98603
  norm       = 13.664
  Prefactor  = 58.0438
  Prefactor  = 73.1939
  Prefactor  = 0.0001
  Prefactor  = 1.12627
  norm       = 0.898495
  norm       = 3.77166
  Prefactor  = 0.000101477
  Prefactor  = 27.6241
  Prefactor  = 344.797
  Prefactor  = 3.43518
  Prefactor  = 0.0001
  norm       = 34.0293
  Prefactor  = 0.0001
  Prefactor  = 7.5493
  Prefactor  = 2.46247
  Prefactor  = 62.0898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.904567
  Prefactor  = 0.863321
 **********
 **   18 **HESSE 
 **********

 FCN=   4385.946     FROM HESSE     STATUS=OK           403 CALLS     3823 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5387        14.358        .10254E-04   -1.5389    
   2  Prefactor     .10000E-03    27.689        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.779        26.448        .48827E-05   -1.5051    
   4  Prefactor     1.9860        6.4457        .11760E-04   -1.5426    
   5  norm          13.664        16.246        .43334E-05   -1.4968    
   6  Prefactor     58.044        44.145        .10532E-04   -1.4183    
   7  Prefactor     73.194        30.738        .18772E-05   -1.3995    
   8  Prefactor     .10000E-03    310.25        .41506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1263        117.36        .17580E-04   -1.5496    
  10  norm          .89850        1.0496        .28302E-04   -1.5518    
  11  norm          3.7717        13.833        .83215E-05   -1.5320    
  12  Prefactor     .10148E-03    194.23        .16350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.624        55.474        .30479E-05   -1.4656    
  14  Prefactor     344.80        292.65        .21921E-04   -1.1973    
  15  Prefactor     3.4352        67.805        .88554E-05   -1.5337    
  16  Prefactor     .10000E-03    12.729        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          34.029        54.252        .13717E-04   -1.4541    
  18  Prefactor     .10000E-03    213.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.5493        10.809        .58351E-05   -1.5158    
  20  Prefactor     2.4625        180.99        .10385E-04   -1.5394    
  21  Prefactor     62.090        35.705        .10184E-04   -1.4130    
  22  Prefactor     .10000E-03    12.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.0343        .31682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .90457        .28007        .11623E-04   -.96300    
  25  Prefactor     .86332        .19013        .85658E-05   -.97435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98838e-09
Minuit parameter uncertainties:
  1  12.0791
  2  1.32075e-05
  3  26.4764
  4  6.44798
  5  16.2514
  6  44.1694
  7  30.7449
  8  0.000423169
  9  23.0392
  10  1.04963
  11  13.8447
  12  0.0339843
  13  55.5776
  14  293.922
  15  30.5629
  16  1.33224e-06
  17  54.3308
  18  0.000399916
  19  10.8115
  20  42.3557
  21  35.7173
  22  3.09676e-05
  23  9.63421e-06
  24  0.280522
  25  0.190273
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  8.985e-01  1.050e+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.633e-01  1.903e-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.046e-01  2.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.23
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.48e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.66e-05

TS (Fixed Index): 1.23
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808339/likelihoodResults_324604801_324864001_4FGL_J2323.5-0317_daily_bin329.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): 102
logL (Free Index) = 4385.76203371
delta logL = 0.184377855504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4385.57610231
delta logL = 0.370309251958

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68913E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .77668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93285       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=   4385.576     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      307 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68886E-01    1.6989        .28673E-02    .22819E-02
   2  alpha         5.0000        2.5700        .46268    ** at limit **
   3  Normalizat    .77680        .11951        .70239E-01    .14982E-04
   4  Prefactor     .93276        .82914E-01    .45422E-01    .28610E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0688863
  alpha      = 5
  Normalizat = 0.776798
  Prefactor  = 0.932759
 **********
 **   18 **HESSE 
 **********

 FCN=   4385.576     FROM HESSE     STATUS=OK            35 CALLS      342 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68886E-01    .69163E-01    .12897E-04   -1.5656    
   2  alpha         5.0000        3.3095        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .77680        .27460        .31082E-03   -1.0094    
   4  Prefactor     .93276        .19080        .20711E-03   -.95006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29314e-12
Minuit parameter uncertainties:
  1  0.0691629
  2  3.02243e-05
  3  0.275085
  4  0.190933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808339': 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) = 4385.57610114
delta logL = 0.370310424737

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  6.889e-02  6.916e-02  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  5.000e+00  3.022e-05  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:  9.328e-01  1.909e-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:  7.768e-01  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.21
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.29e-07 +/- 1.29e-07
Energy Flux (Free Index): 1.75e-05 +/- 1.75e-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/808339/cmap_HighResolution_324604801_324864001_4FGL_J2323.5-0317_daily_bin329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.37e-05', comment='SUCCESS', photon_flux='3.48e-08', energy_flux2='1.75e-05', photon_flux_error='4.06e-08', dlogl='3.70e-01', energy_flux='1.42e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-29 14:37:11.452101', photon_index_error2='0.00', photon_index2='5.00', ts='1.23', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.75e-05', EG='0.90', time_epoch_completed='1632951431.45', return_code='0', job_id='808339', GAL2='0.93', EG2='0.78', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='1.29e-07', ts2='2.21', photon_index='2.16' WHERE bin_id='329' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:37:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 808339: <4FGL_J2323.5-0317_daily_bin329> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin329> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:32 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:34 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:25:34 2021
Terminated at Wed Sep 29 14:37:12 2021
Results reported at Wed Sep 29 14:37:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin329 350.888 -3.29 324604801 324864001 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 :                                   635.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            700 sec.

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

