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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin171
RA = 350.888, Dec = -3.29
tmin = 283651201, tmax = 283910401
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='808099', job_status='RUN', time_executed='2021-09-29 14:28:47.965126', time_epoch_executed='1632950927.97' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808099/ft1_4FGL_J2323.5-0317_daily_bin171.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808099/ft2_4FGL_J2323.5-0317_daily_bin171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808099/ft1_4FGL_J2323.5-0317_daily_bin171.fits outfile=/scratch/kocevski/808099/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin171.fits ra=350.888 dec=-3.29 rad=12.0 tmin=283651201.0 tmax=283910401.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.57
user 3.37
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808099/ft1_filtered_4FGL_J2323.5-0317_daily_bin171.fits" evtable="EVENTS" scfile=/scratch/kocevski/808099/ft2_4FGL_J2323.5-0317_daily_bin171.fits sctable="SC_DATA" outfile=/scratch/kocevski/808099/ltcube_283651201_283910401_4FGL_J2323.5-0317_daily_bin171.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/808099/ft2_4FGL_J2323.5-0317_daily_bin171.fits
.....................!
real 12.47
user 12.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808099/ft1_filtered_4FGL_J2323.5-0317_daily_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/808099/ft2_4FGL_J2323.5-0317_daily_bin171.fits sctable="SC_DATA" expcube=/scratch/kocevski/808099/ltcube_283651201_283910401_4FGL_J2323.5-0317_daily_bin171.fits outfile=/scratch/kocevski/808099/expmap_283651201_283910401_4FGL_J2323.5-0317_daily_bin171.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/808099/ltcube_283651201_283910401_4FGL_J2323.5-0317_daily_bin171.fits
.....................!
real 190.38
user 185.87
sys 4.18

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/808099/ft1_filtered_4FGL_J2323.5-0317_daily_bin171.fits scfile=/scratch/kocevski/808099/ft2_4FGL_J2323.5-0317_daily_bin171.fits outfile=/scratch/kocevski/808099/cmap_283651201_283910401_4FGL_J2323.5-0317_daily_bin171.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.59
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808099/ft1_filtered_4FGL_J2323.5-0317_daily_bin171.fits scfile=/scratch/kocevski/808099/ft2_4FGL_J2323.5-0317_daily_bin171.fits outfile=/scratch/kocevski/808099/cmap_HighResolution_283651201_283910401_4FGL_J2323.5-0317_daily_bin171.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.60
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808099/ft1_filtered_4FGL_J2323.5-0317_daily_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/808099/ft2_4FGL_J2323.5-0317_daily_bin171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808099/Model_4FGL_J2323.5-0317_daily_bin171.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/808099/ft1_filtered_4FGL_J2323.5-0317_daily_bin171.fits.....................!
real 49.52
user 48.29
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2702       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.536       1.0000         .10000E-03   10000.    
     5 'norm      '    5.6885       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11871E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10599E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.557       1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.077       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.606       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82920       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0390       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=   4725.864     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2850 TOTAL
                     EDM=   .81E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2693        8.5147        .35688E-05    .68795E-05
   2  Prefactor     .10000E-03    20.092       -.43599E-06** at limit **
   3  Prefactor     .10000E-03    47.573       -.19442E-05** at limit **
   4  Prefactor     10.536        13.058        .22644E-06    .45302E-05
   5  norm          5.6894        16.368        .66715E-06    .40470E-05
   6  Prefactor     .10000E-03    11.456        .25081E-06** at limit **
   7  Prefactor     .10000E-03    10.260        .99271E-07** at limit **
   8  Prefactor     .10000E-03    76.700        .16776E-05** at limit **
   9  Prefactor     .10000E-03    8.6332       -.70076E-06** at limit **
  10  norm          .10000E-03    .43835       -.97721E-07** at limit **
  11  norm          .10000E-03    6.4400       -.45340E-06** at limit **
  12  Prefactor     .10000E-03    5.0144        .27798E-07** at limit **
  13  Prefactor     .10000E-03    33.383        .20261E-05** at limit **
  14  Prefactor     .10000E-03    58.888       -.24992E-05** at limit **
  15  Prefactor     .10000E-03    4.5205       -.36110E-07** at limit **
  16  Prefactor     .10000E-03    11.978        .86362E-07** at limit **
  17  norm          13.561        16.450        .79607E-07    .74897E-05
  18  Prefactor     43.969        88.789        .10807E-04   -.95591E-06
  19  Prefactor     .10000E-03    2.8898       -.12753E-06** at limit **
  20  Prefactor     .10000E-03    72.391        .11902E-05** at limit **
  21  Prefactor     .10000E-03    9.6471       -.19273E-06** at limit **
  22  Prefactor     22.606        16.063        .10440E-07   -.44104E-05
  23  Prefactor     .10000E-03    8.2439        .49208E-06** at limit **
  24  Normalizat    .82947        .21096        .61543E-06    .20001E-04
  25  Prefactor     1.0388        .15613       -.13831E-05    .41351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.2693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5357
  norm       = 5.6894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.5613
  Prefactor  = 43.9688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.6061
  Prefactor  = 0.0001
  Normalizat = 0.829467
  Prefactor  = 1.03879
 **********
 **   18 **HESSE 
 **********

 FCN=   4725.864     FROM HESSE     STATUS=OK           417 CALLS     3267 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2693        8.5693        .13629E-02   -1.5407    
   2  Prefactor     .10000E-03    20.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    47.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.536        13.056        .12344E-03   -1.5059    
   5  norm          5.6894        16.358        .16842E-03   -1.5231    
   6  Prefactor     .10000E-03    11.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    76.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.7795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .67524        .87849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.6530        .34062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0529        .15034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    58.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5288        .14264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.561        16.399        .10878E-03   -1.4971    
  18  Prefactor     43.969        89.343        .30193E-03   -1.4381    
  19  Prefactor     .10000E-03    2.9540        .22761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    73.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.6644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.606        16.068        .84245E-04   -1.4757    
  23  Prefactor     .10000E-03    8.3235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82947        .24543        .28399E-03   -.98985    
  25  Prefactor     1.0388        .18132        .19211E-03   -.91447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60035e-11
Minuit parameter uncertainties:
  1  8.57389
  2  1.38443e-06
  3  2.92135e-05
  4  13.0599
  5  16.3708
  6  4.24689e-06
  7  7.90463e-06
  8  0.000167857
  9  3.60593e-05
  10  7.80993e-07
  11  2.53083e-05
  12  4.20501e-06
  13  1.21487e-05
  14  6.01793e-06
  15  1.99411e-06
  16  7.44193e-06
  17  16.4041
  18  89.6165
  19  7.55165e-06
  20  8.7314e-05
  21  6.16805e-06
  22  16.0708
  23  1.9303e-05
  24  0.245761
  25  0.181423
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  7.810e-07  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.039e+00  1.814e-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.295e-01  2.458e-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: 7.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808099/likelihoodResults_283651201_283910401_4FGL_J2323.5-0317_daily_bin171.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) = 4725.87093269
delta logL = -0.00706092198197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4725.50339879
delta logL = 0.360472981055

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21996E-01    1.6193        .29499E-02    .11312E-02
   2  alpha         5.0000        4.1197        .46267    ** at limit **
   3  Normalizat    .77481        .10128        .66216E-01   -.42566E-04
   4  Prefactor     1.0639        .65129E-01    .39150E-01   -.73088E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0219964
  alpha      = 5
  Normalizat = 0.774806
  Prefactor  = 1.06391
 **********
 **   18 **HESSE 
 **********

 FCN=   4725.503     FROM HESSE     STATUS=OK            35 CALLS      380 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21996E-01    .35119E-01    .13855E-03   -1.5678    
   2  alpha         5.0000        3.8355        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .77481        .24694        .29296E-03   -1.0101    
   4  Prefactor     1.0639        .18229        .19007E-03   -.90628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28173e-11
Minuit parameter uncertainties:
  1  0.0351192
  2  3.89478e-05
  3  0.247296
  4  0.182399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808099': 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) = 4725.50339465
delta logL = 0.360477120006

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.200e-02  3.512e-02  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  5.000e+00  3.895e-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:  1.064e+00  1.824e-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.748e-01  2.473e-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/808099/cmap_HighResolution_283651201_283910401_4FGL_J2323.5-0317_daily_bin171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-05', job_status='DONE', photon_flux_upper_limit='7.58e-08', time_completed='2021-09-29 14:38:28.109680', job_id='808099', GAL2='1.06', fit_tolerance='1e-08', EG2='0.77', EG='0.83', time_epoch_completed='1632951508.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.60e-01', ts2='0.76', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='171' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:38:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 808099: <4FGL_J2323.5-0317_daily_bin171> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin171> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:11 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:13 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:13 2021
Terminated at Wed Sep 29 14:38:28 2021
Results reported at Wed Sep 29 14:38:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin171 350.888 -3.29 283651201 283910401 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 :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

