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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin1302
RA = 350.888, Dec = -3.29
tmin = 576806401, tmax = 577065601
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='812912', job_status='RUN', time_executed='2021-09-29 14:43:40.247862', time_epoch_executed='1632951820.25' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='1302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812912

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812912/ft1_4FGL_J2323.5-0317_daily_bin1302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812912/ft2_4FGL_J2323.5-0317_daily_bin1302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812912/ft1_4FGL_J2323.5-0317_daily_bin1302.fits outfile=/scratch/kocevski/812912/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin1302.fits ra=350.888 dec=-3.29 rad=12.0 tmin=576806401.0 tmax=577065601.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.05
user 2.83
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812912/ft1_filtered_4FGL_J2323.5-0317_daily_bin1302.fits" evtable="EVENTS" scfile=/scratch/kocevski/812912/ft2_4FGL_J2323.5-0317_daily_bin1302.fits sctable="SC_DATA" outfile=/scratch/kocevski/812912/ltcube_576806401_577065601_4FGL_J2323.5-0317_daily_bin1302.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/812912/ft2_4FGL_J2323.5-0317_daily_bin1302.fits
.....................!
real 12.39
user 12.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812912/ft1_filtered_4FGL_J2323.5-0317_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/812912/ft2_4FGL_J2323.5-0317_daily_bin1302.fits sctable="SC_DATA" expcube=/scratch/kocevski/812912/ltcube_576806401_577065601_4FGL_J2323.5-0317_daily_bin1302.fits outfile=/scratch/kocevski/812912/expmap_576806401_577065601_4FGL_J2323.5-0317_daily_bin1302.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/812912/ltcube_576806401_577065601_4FGL_J2323.5-0317_daily_bin1302.fits
.....................!
real 190.61
user 185.16
sys 5.13

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/812912/ft1_filtered_4FGL_J2323.5-0317_daily_bin1302.fits scfile=/scratch/kocevski/812912/ft2_4FGL_J2323.5-0317_daily_bin1302.fits outfile=/scratch/kocevski/812912/cmap_576806401_577065601_4FGL_J2323.5-0317_daily_bin1302.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812912/ft1_filtered_4FGL_J2323.5-0317_daily_bin1302.fits scfile=/scratch/kocevski/812912/ft2_4FGL_J2323.5-0317_daily_bin1302.fits outfile=/scratch/kocevski/812912/cmap_HighResolution_576806401_577065601_4FGL_J2323.5-0317_daily_bin1302.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/812912/ft1_filtered_4FGL_J2323.5-0317_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/812912/ft2_4FGL_J2323.5-0317_daily_bin1302.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/812912/Model_4FGL_J2323.5-0317_daily_bin1302.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/812912/ft1_filtered_4FGL_J2323.5-0317_daily_bin1302.fits.....................!
real 59.86
user 58.55
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4742       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    78.843       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.135       1.0000         .10000E-03   10000.    
     5 'norm      '    5.9195       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.998       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.826       1.0000         .10000E-03   10000.    
    10 'norm      '    .11593       1.0000         .10000E-03   10000.    
    11 'norm      '    .17621E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .46948E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1108       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10963E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11836E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4244       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    52.068       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.268       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16532       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98859       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93842       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6359.450     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     3820 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4753        8.0512       -.18072E-07    .89605E-04
   2  Prefactor     .10000E-03    19.328        .14739E-06** at limit **
   3  Prefactor     78.844        42.287       -.21580E-06    .19577E-04
   4  Prefactor     10.135        10.507       -.94806E-07    .90962E-05
   5  norm          5.9206        10.103       -.21878E-05   -.33322E-04
   6  Prefactor     .10000E-03    9.0113       -.12103E-07** at limit **
   7  Prefactor     11.999        13.824       -.72791E-08    .35601E-04
   8  Prefactor     .10002E-03    89.525       -.15781E-05** at limit **
   9  Prefactor     21.814        11.888        .11599E-05    .62642E-03
  10  norm          .11556        .76178        .27117E-06    .75614E-04
  11  norm          .10001E-03    16.625        .35203E-05** at limit **
  12  Prefactor     .10655E-03    25.295       -.55173E-05** at limit **
  13  Prefactor     .10000E-03    24.824       -.45776E-07** at limit **
  14  Prefactor     .10001E-03    170.13        .74543E-06** at limit **
  15  Prefactor     5.0969        10.339        .60427E-06    .10045E-03
  16  Prefactor     .10000E-03    147.76        .27273E-07** at limit **
  17  norm          .10000E-03    44.953        .66539E-07** at limit **
  18  Prefactor     .10000E-03    16.321        .54817E-07** at limit **
  19  Prefactor     3.4145        5.5646        .22574E-06    .14451E-03
  20  Prefactor     .10000E-03    32.727       -.28389E-06** at limit **
  21  Prefactor     52.056        34.747       -.11238E-06    .72113E-04
  22  Prefactor     11.273        22.823       -.33637E-06    .14904E-04
  23  Prefactor     .15429        6.0957       -.22801E-06   -.40446E-05
  24  Normalizat    .98865        .20835        .53082E-06    .34988E-03
  25  Prefactor     .93832        .14327        .32082E-06    .40610E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.47527
  Prefactor  = 0.000100001
  Prefactor  = 78.8435
  Prefactor  = 10.1354
  norm       = 5.92056
  Prefactor  = 0.0001
  Prefactor  = 11.9986
  Prefactor  = 0.000100016
  Prefactor  = 21.8137
  norm       = 0.115563
  norm       = 0.000100006
  Prefactor  = 0.000106548
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 5.09691
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.41448
  Prefactor  = 0.000100001
  Prefactor  = 52.056
  Prefactor  = 11.2727
  Prefactor  = 0.154294
  Normalizat = 0.988653
  Prefactor  = 0.938317
 **********
 **   18 **HESSE 
 **********

 FCN=   6359.450     FROM HESSE     STATUS=OK           437 CALLS     4257 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4753        8.0697        .14670E-03   -1.5161    
   2  Prefactor     .10000E-03    19.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     78.844        42.496        .45228E-04   -1.3930    
   4  Prefactor     10.135        10.504        .12587E-03   -1.5071    
   5  norm          5.9206        10.134        .82525E-03   -1.5221    
   6  Prefactor     .10000E-03    9.0145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.999        13.828        .11565E-03   -1.5015    
   8  Prefactor     .10002E-03    90.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.814        12.023        .85736E-04   -1.4774    
  10  norm          .11556        1.4291        .12207E-02   -1.5640    
  11  norm          .10001E-03    17.256        .34119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10655E-03    16.053        .77341E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    170.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.0969        10.169        .17784E-03   -1.5256    
  16  Prefactor     .10000E-03    150.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    45.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4145        5.4636        .19696E-03   -1.5338    
  20  Prefactor     .10000E-03    32.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     52.056        34.756        .55581E-04   -1.4264    
  22  Prefactor     11.273        22.858        .11934E-03   -1.5036    
  23  Prefactor     .15429        75.052        .37319E-02   -1.5629    
  24  Normalizat    .98865        .24528        .28538E-03   -.93412    
  25  Prefactor     .93832        .16785        .21410E-03   -.94815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55531e-08
Minuit parameter uncertainties:
  1  8.07084
  2  0.000208782
  3  42.5119
  4  10.506
  5  10.1369
  6  8.83256e-07
  7  13.8321
  8  0.00241505
  9  12.024
  10  0.81244
  11  0.000647017
  12  0.0205103
  13  4.63454e-05
  14  0.0031444
  15  10.1721
  16  0.000567362
  17  0.000335035
  18  0.000104811
  19  5.46441
  20  0.000424122
  21  34.7694
  22  22.8759
  23  6.8123
  24  0.245562
  25  0.167946
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.156e-01  8.124e-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:  9.383e-01  1.679e-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.887e-01  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/812912/likelihoodResults_576806401_577065601_4FGL_J2323.5-0317_daily_bin1302.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) = 6358.80150048
delta logL = 0.64831595058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6358.76978023
delta logL = 0.680036205704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34169       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5070       1.0000          .0000       5.0000    
     3 'Normalizat'    .92091       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96192       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=   6358.770     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      227 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34130        4.7319        .92653E-02    .16719E-02
   2  alpha         3.5083        4.2535        .46459        .43270E-04
   3  Normalizat    .92112        .42462E-01    .66567E-01    .10926E-04
   4  Prefactor     .96185        .31397E-01    .45789E-01    .13634E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.341298
  alpha      = 3.50828
  Normalizat = 0.921117
  Prefactor  = 0.961849
 **********
 **   18 **HESSE 
 **********

 FCN=   6358.770     FROM HESSE     STATUS=OK            35 CALLS      262 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34130        .82143        .42108E-03   -1.5591    
   2  alpha         3.5083        1.5402        .18919E-01    .41513    
   3  Normalizat    .92112        .23163        .29446E-03   -.95722    
   4  Prefactor     .96185        .16635        .21154E-03   -.94012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35237e-09
Minuit parameter uncertainties:
  1  0.821461
  2  1.68974
  3  0.231885
  4  0.166443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812912': 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) = 6358.76977858
delta logL = 0.680037854725

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  9.618e-01  1.664e-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.211e-01  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.51 +/- 1.69
Photon Flux (Free Index): 6.85e-08 +/- 6.62e-08
Energy Flux (Free Index): 1.18e-05 +/- 1.19e-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/812912/cmap_HighResolution_576806401_577065601_4FGL_J2323.5-0317_daily_bin1302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-05', comment='SUCCESS', energy_flux2='1.18e-05', dlogl='6.80e-01', photon_flux2='6.85e-08', job_status='DONE', time_completed='2021-09-29 14:57:04.513615', photon_index_error2='1.69', photon_index2='3.51', ts='0.02', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='8.43e-08', energy_flux_error2='1.19e-05', EG='0.99', time_epoch_completed='1632952624.51', return_code='0', job_id='812912', GAL2='0.96', EG2='0.92', return_code2='0', photon_flux_error2='6.62e-08', ts2='1.45', photon_index='2.16' WHERE bin_id='1302' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:57:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 812912: <4FGL_J2323.5-0317_daily_bin1302> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin1302> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 14:41:01 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:41:02 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:41:02 2021
Terminated at Wed Sep 29 14:57:05 2021
Results reported at Wed Sep 29 14:57:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin1302 350.888 -3.29 576806401 577065601 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 :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

