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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin1124
RA = 350.888, Dec = -3.29
tmin = 530668801, tmax = 530928001
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='812629', job_status='RUN', time_executed='2021-09-29 14:43:21.544643', time_epoch_executed='1632951801.54' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812629

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812629/ft1_4FGL_J2323.5-0317_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812629/ft2_4FGL_J2323.5-0317_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812629/ft1_4FGL_J2323.5-0317_daily_bin1124.fits outfile=/scratch/kocevski/812629/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin1124.fits ra=350.888 dec=-3.29 rad=12.0 tmin=530668801.0 tmax=530928001.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.62
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812629/ft1_filtered_4FGL_J2323.5-0317_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/812629/ft2_4FGL_J2323.5-0317_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/812629/ltcube_530668801_530928001_4FGL_J2323.5-0317_daily_bin1124.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/812629/ft2_4FGL_J2323.5-0317_daily_bin1124.fits
.....................!
real 11.64
user 11.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812629/ft1_filtered_4FGL_J2323.5-0317_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/812629/ft2_4FGL_J2323.5-0317_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/812629/ltcube_530668801_530928001_4FGL_J2323.5-0317_daily_bin1124.fits outfile=/scratch/kocevski/812629/expmap_530668801_530928001_4FGL_J2323.5-0317_daily_bin1124.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/812629/ltcube_530668801_530928001_4FGL_J2323.5-0317_daily_bin1124.fits
.....................!
real 190.19
user 185.22
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/812629/ft1_filtered_4FGL_J2323.5-0317_daily_bin1124.fits scfile=/scratch/kocevski/812629/ft2_4FGL_J2323.5-0317_daily_bin1124.fits outfile=/scratch/kocevski/812629/cmap_530668801_530928001_4FGL_J2323.5-0317_daily_bin1124.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/812629/ft1_filtered_4FGL_J2323.5-0317_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/812629/ft2_4FGL_J2323.5-0317_daily_bin1124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/812629/Model_4FGL_J2323.5-0317_daily_bin1124.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/812629/ft1_filtered_4FGL_J2323.5-0317_daily_bin1124.fits.....................!
real 54.08
user 52.72
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    138.12       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3835       1.0000         .10000E-03   10000.    
     5 'norm      '    .34280E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.048       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5074       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.984       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10270E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.233       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12570E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .79668       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9101       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.877       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4922       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81228       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92698       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=   5523.575     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     2470 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9685        .29203E-07** at limit **
   2  Prefactor     .10057E-03    30.573       -.95497E-05** at limit **
   3  Prefactor     138.12        1.0223       -.71407E-07    .46298E-03
   4  Prefactor     5.3836        1.0292       -.33973E-06   -.13465E-03
   5  norm          .10086E-03    208.07        .37381E-05** at limit **
   6  Prefactor     41.988        8.1341       -.48052E-05    .11977E-01
   7  Prefactor     5.4975        1.3677        .14405E-05   -.35891E-03
   8  Prefactor     22.984        1.0643       -.39482E-06    .38145E-03
   9  Prefactor     .10000E-03    2.4280       -.44654E-06** at limit **
  10  norm          .10000E-03    .54372        .31561E-06** at limit **
  11  norm          .10000E-03    3.8922       -.13277E-06** at limit **
  12  Prefactor     11.231        1.2001        .10504E-05   -.16376E-03
  13  Prefactor     .10004E-03    8.3793        .27552E-05** at limit **
  14  Prefactor     .10001E-03    29.526        .65803E-05** at limit **
  15  Prefactor     .10001E-03    12.968        .60599E-05** at limit **
  16  Prefactor     .10055E-03    21.487       -.32822E-04** at limit **
  17  norm          .69730        25.127        .51274E-04   -.12150E-02
  18  Prefactor     .10048E-03    20.035        .36047E-04** at limit **
  19  Prefactor     3.9068        5.3283       -.22279E-06    .78777E-03
  20  Prefactor     .10008E-03    7.2813       -.94718E-05** at limit **
  21  Prefactor     38.876        1.1320       -.33680E-06    .50488E-03
  22  Prefactor     .10000E-03    4.3971       -.30880E-06** at limit **
  23  Prefactor     1.4944        7.5973        .11405E-04    .56066E-03
  24  Normalizat    .81218        .22975       -.20742E-05   -.15466E-03
  25  Prefactor     .92702        .16328       -.49375E-06   -.20396E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100572
  Prefactor  = 138.123
  Prefactor  = 5.38355
  norm       = 0.000100863
  Prefactor  = 41.9881
  Prefactor  = 5.49745
  Prefactor  = 22.9841
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.2313
  Prefactor  = 0.000100037
  Prefactor  = 0.000100013
  Prefactor  = 0.000100006
  Prefactor  = 0.000100546
  norm       = 0.697295
  Prefactor  = 0.000100477
  Prefactor  = 3.90676
  Prefactor  = 0.00010008
  Prefactor  = 38.8757
  Prefactor  = 0.0001
  Prefactor  = 1.4944
  Normalizat = 0.812179
  Prefactor  = 0.92702
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.575     FROM HESSE     STATUS=OK           481 CALLS     2951 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9564        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10057E-03    59.503        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     138.12        52.923        .85683E-03   -1.3352    
   4  Prefactor     5.3836        9.7633        .43300E-02   -1.5244    
   5  norm          .10086E-03    9.9613        .91931E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     41.988        51.364        .15455E-02   -1.4411    
   7  Prefactor     5.4975        18.030        .42802E-02   -1.5239    
   8  Prefactor     22.984        25.802        .20888E-02   -1.4749    
   9  Prefactor     .10000E-03    2.4281        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .33724        .22647E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.8117        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.231        12.829        .29884E-02   -1.5038    
  13  Prefactor     .10004E-03    14.730        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    61.514        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    13.008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10055E-03    23.476        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .69730        20.436        .12427       -1.5541    
  18  Prefactor     .10048E-03    22.123        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9068        6.0925        .51008E-02   -1.5313    
  20  Prefactor     .10008E-03    14.381        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     38.876        25.436        .16071E-02   -1.4460    
  22  Prefactor     .10000E-03    4.3959        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4944        7.7442        .87719E-02   -1.5463    
  24  Normalizat    .81218        .20211        .64818E-01   -.99618    
  25  Prefactor     .92702        .13852        .45348E-01   -.95203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02517e-06
Minuit parameter uncertainties:
  1  1.64293e-05
  2  0.0116833
  3  52.9414
  4  9.76618
  5  0.00586471
  6  51.4178
  7  18.0476
  8  25.8145
  9  4.14647e-05
  10  1.87676e-06
  11  6.77682e-06
  12  12.8316
  13  0.00146795
  14  0.0018212
  15  0.000561248
  16  0.00716457
  17  7.55219
  18  0.00649978
  19  6.09347
  20  0.00214186
  21  25.4427
  22  6.39286e-06
  23  6.80497
  24  0.2023
  25  0.13857
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  1.877e-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:  9.270e-01  1.386e-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:  8.122e-01  2.023e-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: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/812629/likelihoodResults_530668801_530928001_4FGL_J2323.5-0317_daily_bin1124.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) = 5523.58410728
delta logL = -0.00878012004705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5523.5753264
delta logL = 7.53925633035e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1745       1.0000          .0000       5.0000    
     3 'Normalizat'    .81218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92702       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=   5523.575     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      223 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .82646        .23175E-01** at limit **
   2  alpha         2.4968        3.3095        .41601       -.12887E-05
   3  Normalizat    .81218        .79727E-02    .64818E-01   -.29922E-03
   4  Prefactor     .92702        .58520E-02    .45348E-01   -.36874E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.49684
  Normalizat = 0.812176
  Prefactor  = 0.927021
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.575     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5707        .79570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4968        3.7479        .16640       -.12658E-02
   3  Normalizat    .81218        .21998        .28674E-03   -.99619    
   4  Prefactor     .92702        .16176        .19703E-03   -.95203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15969e-09
Minuit parameter uncertainties:
  1  2.46145e-05
  2  129.657
  3  0.220219
  4  0.161843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812629': 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) = 5523.57531815
delta logL = 9.01099974726e-06

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  2.461e-05  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.497e+00  1.297e+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:  9.270e-01  1.618e-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:  8.122e-01  2.202e-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/812629/cmap_HighResolution_530668801_530928001_4FGL_J2323.5-0317_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-05', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-09-29 14:56:17.922173', job_id='812629', GAL2='0.93', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632952577.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='9.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1124' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:56:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 812629: <4FGL_J2323.5-0317_daily_bin1124> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin1124 350.888 -3.29 530668801 530928001 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 :                                   597.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            946 sec.

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

