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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin742
RA = 350.888, Dec = -3.29
tmin = 431654401, tmax = 431913601
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='810898', job_status='RUN', time_executed='2021-09-29 14:36:18.880645', time_epoch_executed='1632951378.88' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810898/ft1_4FGL_J2323.5-0317_daily_bin742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810898/ft2_4FGL_J2323.5-0317_daily_bin742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810898/ft1_4FGL_J2323.5-0317_daily_bin742.fits outfile=/scratch/kocevski/810898/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin742.fits ra=350.888 dec=-3.29 rad=12.0 tmin=431654401.0 tmax=431913601.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 5.99
user 5.74
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/810898/ft2_4FGL_J2323.5-0317_daily_bin742.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/810898/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin742.fits evtable="EVENTS" outfile="/scratch/kocevski/810898/ft1_filtered_4FGL_J2323.5-0317_daily_bin742.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810898/ft1_filtered_4FGL_J2323.5-0317_daily_bin742.fits" evtable="EVENTS" scfile=/scratch/kocevski/810898/ft2_4FGL_J2323.5-0317_daily_bin742.fits sctable="SC_DATA" outfile=/scratch/kocevski/810898/ltcube_431654401_431913601_4FGL_J2323.5-0317_daily_bin742.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/810898/ft2_4FGL_J2323.5-0317_daily_bin742.fits
.....................!
real 12.23
user 11.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810898/ft1_filtered_4FGL_J2323.5-0317_daily_bin742.fits evtable="EVENTS" scfile=/scratch/kocevski/810898/ft2_4FGL_J2323.5-0317_daily_bin742.fits sctable="SC_DATA" expcube=/scratch/kocevski/810898/ltcube_431654401_431913601_4FGL_J2323.5-0317_daily_bin742.fits outfile=/scratch/kocevski/810898/expmap_431654401_431913601_4FGL_J2323.5-0317_daily_bin742.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/810898/ltcube_431654401_431913601_4FGL_J2323.5-0317_daily_bin742.fits
.....................!
real 190.25
user 185.24
sys 4.62

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/810898/ft1_filtered_4FGL_J2323.5-0317_daily_bin742.fits scfile=/scratch/kocevski/810898/ft2_4FGL_J2323.5-0317_daily_bin742.fits outfile=/scratch/kocevski/810898/cmap_431654401_431913601_4FGL_J2323.5-0317_daily_bin742.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810898/ft1_filtered_4FGL_J2323.5-0317_daily_bin742.fits scfile=/scratch/kocevski/810898/ft2_4FGL_J2323.5-0317_daily_bin742.fits outfile=/scratch/kocevski/810898/cmap_HighResolution_431654401_431913601_4FGL_J2323.5-0317_daily_bin742.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.092       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2848       1.0000         .10000E-03   10000.    
     5 'norm      '    22.192       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.421       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8081       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.7918       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .73059       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14152E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    342.11       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .56649E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    60.545       1.0000         .10000E-03   10000.    
    17 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14195E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1838       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .63197       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0944       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=   2173.755     FROM MIGRAD    STATUS=CONVERGED   1061 CALLS     3438 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.099        17.587        .12029E-03   -.25045E-04
   2  Prefactor     .10000E-03    51.829        .18142E-02** at limit **
   3  Prefactor     .10000E-03    38.485        .18142E-02** at limit **
   4  Prefactor     8.3022        22.755        .13928E-03   -.54157E-04
   5  norm          22.205        28.560        .85027E-04   -.55355E-04
   6  Prefactor     28.452        74.416        .75150E-04    .20952E-04
   7  Prefactor     .10000E-03    42.798        .18142E-02** at limit **
   8  Prefactor     9.3164        344.37        .13506E-03    .29462E-06
   9  Prefactor     .10000E-03    13.428        .16667E-02** at limit **
  10  norm          .10000E-03    .53591        .33217E-03** at limit **
  11  norm          7.7858        9.5212        .14365E-03   -.26753E-03
  12  Prefactor     .69840        67.808        .40431E-02    .27996E-03
  13  Prefactor     .10000E-03    128.61        .18142E-02** at limit **
  14  Prefactor     341.79        375.54        .11003E-03   -.46114E-04
  15  Prefactor     .10084E-03    167.50        .34918E-02** at limit **
  16  Prefactor     60.548        49.776        .51565E-04   -.73462E-04
  17  norm          .10000E-03    27.864        .18142E-02** at limit **
  18  Prefactor     .10000E-03    46.419        .18142E-02** at limit **
  19  Prefactor     .10000E-03    4.7823        .99039E-03** at limit **
  20  Prefactor     .10067E-03    74.731        .10564    ** at limit **
  21  Prefactor     .10000E-03    34.695        .18142E-02** at limit **
  22  Prefactor     4.2397        50.918        .19703E-03    .12088E-04
  23  Prefactor     .10000E-03    6.9736        .12016E-02** at limit **
  24  Normalizat    .63125        .37076        .32425E-03   -.40058E-04
  25  Prefactor     1.0945        .27221        .18918E-03   -.43094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.30215
  norm       = 22.2053
  Prefactor  = 28.4522
  Prefactor  = 0.000100001
  Prefactor  = 9.3164
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 7.78578
  Prefactor  = 0.698401
  Prefactor  = 0.000100001
  Prefactor  = 341.789
  Prefactor  = 0.000100836
  Prefactor  = 60.5481
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100669
  Prefactor  = 0.0001
  Prefactor  = 4.23973
  Prefactor  = 0.0001
  Normalizat = 0.631253
  Prefactor  = 1.09451
 **********
 **   18 **HESSE 
 **********

 FCN=   2173.755     FROM HESSE     STATUS=OK           413 CALLS     3851 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.099        17.587        .48117E-05   -1.5042    
   2  Prefactor     .10000E-03    51.829        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.486        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.3022        22.754        .55713E-05   -1.5132    
   5  norm          22.205        28.556        .34011E-05   -1.4765    
   6  Prefactor     28.452        74.472        .30060E-05   -1.4641    
   7  Prefactor     .10000E-03    42.806        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.3164        344.23        .54023E-05   -1.5097    
   9  Prefactor     .10000E-03    13.429        .33335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .53591        .66433E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.7858        9.5206        .57461E-05   -1.5150    
  12  Prefactor     .69840        67.381        .16173E-03   -1.5541    
  13  Prefactor     .10000E-03    128.62        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     341.79        374.80        .22006E-04   -1.1989    
  15  Prefactor     .10084E-03    170.07        .69837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     60.548        49.507        .10313E-04   -1.4150    
  17  norm          .10000E-03    27.866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.419        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.7828        .19808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10067E-03    70.256        .11023       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.703        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2397        50.883        .78813E-05   -1.5296    
  23  Prefactor     .10000E-03    6.9738        .24032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .63125        .37098        .12970E-04   -1.0667    
  25  Prefactor     1.0945        .27227        .37837E-04   -.89642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.13277e-09
Minuit parameter uncertainties:
  1  17.5949
  2  1.0412e-05
  3  7.6601e-05
  4  22.7782
  5  28.5739
  6  74.7168
  7  0.000423898
  8  113.974
  9  0.000164505
  10  7.49605e-06
  11  9.52249
  12  13.7348
  13  0.000752704
  14  377.513
  15  0.0239089
  16  49.5404
  17  0.000148522
  18  0.000209121
  19  4.65376e-05
  20  0.0137302
  21  0.000190809
  22  29.4063
  23  1.81947e-05
  24  0.372456
  25  0.27262
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  7.496e-06  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.095e+00  2.726e-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:  6.313e-01  3.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/810898/likelihoodResults_431654401_431913601_4FGL_J2323.5-0317_daily_bin742.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) = 2173.75497498
delta logL = -2.92402019113e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2173.75494591
delta logL = -1.66884092323e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1549       1.0000          .0000       5.0000    
     3 'Normalizat'    .63125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0945       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=   2173.755     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      232 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .56119        .33233E-03** at limit **
   2  alpha         2.0183        2.6337        .16663        .76209E-07
   3  Normalizat    .63124        .34507        .32425E-03    .12815E-04
   4  Prefactor     1.0945        .26169        .18918E-03    .42023E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.01834
  Normalizat = 0.631244
  Prefactor  = 1.09452
 **********
 **   18 **HESSE 
 **********

 FCN=   2173.755     FROM HESSE     STATUS=OK            25 CALLS      257 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .54017        .66466E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0183        2.6296        .66653E-02   -.19388    
   3  Normalizat    .63124        .34527        .12970E-04   -1.0667    
   4  Prefactor     1.0945        .26185        .37837E-04   -.89642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59025e-11
Minuit parameter uncertainties:
  1  2.6187e-06
  2  114.389
  3  0.346463
  4  0.262157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810898': 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) = 2173.75494501
delta logL = 7.35166850063e-07

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  2.619e-06  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.018e+00  1.144e+02  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.095e+00  2.622e-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:  6.312e-01  3.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.888 -3.290

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/810898/cmap_HighResolution_431654401_431913601_4FGL_J2323.5-0317_daily_bin742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-05', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-29 14:44:04.223591', job_id='810898', GAL2='1.09', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1632951844.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='7.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='742' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:44:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 810898: <4FGL_J2323.5-0317_daily_bin742> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin742> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:35:19 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:35:21 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:35:21 2021
Terminated at Wed Sep 29 14:44:04 2021
Results reported at Wed Sep 29 14:44:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin742 350.888 -3.29 431654401 431913601 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 :                                   458.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   523 sec.
    Turnaround time :                            525 sec.

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

