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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin955
RA = 350.888, Dec = -3.29
tmin = 486864001, tmax = 487123201
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='811216', job_status='RUN', time_executed='2021-09-29 14:36:39.265652', time_epoch_executed='1632951399.27' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='955'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811216

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811216/ft1_4FGL_J2323.5-0317_daily_bin955.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811216/ft2_4FGL_J2323.5-0317_daily_bin955.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811216/ft1_4FGL_J2323.5-0317_daily_bin955.fits outfile=/scratch/kocevski/811216/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin955.fits ra=350.888 dec=-3.29 rad=12.0 tmin=486864001.0 tmax=487123201.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.47
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811216/ft1_filtered_4FGL_J2323.5-0317_daily_bin955.fits" evtable="EVENTS" scfile=/scratch/kocevski/811216/ft2_4FGL_J2323.5-0317_daily_bin955.fits sctable="SC_DATA" outfile=/scratch/kocevski/811216/ltcube_486864001_487123201_4FGL_J2323.5-0317_daily_bin955.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/811216/ft2_4FGL_J2323.5-0317_daily_bin955.fits
.....................!
real 11.83
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811216/ft1_filtered_4FGL_J2323.5-0317_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/811216/ft2_4FGL_J2323.5-0317_daily_bin955.fits sctable="SC_DATA" expcube=/scratch/kocevski/811216/ltcube_486864001_487123201_4FGL_J2323.5-0317_daily_bin955.fits outfile=/scratch/kocevski/811216/expmap_486864001_487123201_4FGL_J2323.5-0317_daily_bin955.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/811216/ltcube_486864001_487123201_4FGL_J2323.5-0317_daily_bin955.fits
.....................!
real 190.69
user 185.12
sys 5.25

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/811216/ft1_filtered_4FGL_J2323.5-0317_daily_bin955.fits scfile=/scratch/kocevski/811216/ft2_4FGL_J2323.5-0317_daily_bin955.fits outfile=/scratch/kocevski/811216/cmap_486864001_487123201_4FGL_J2323.5-0317_daily_bin955.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811216/ft1_filtered_4FGL_J2323.5-0317_daily_bin955.fits scfile=/scratch/kocevski/811216/ft2_4FGL_J2323.5-0317_daily_bin955.fits outfile=/scratch/kocevski/811216/cmap_HighResolution_486864001_487123201_4FGL_J2323.5-0317_daily_bin955.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811216/ft1_filtered_4FGL_J2323.5-0317_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/811216/ft2_4FGL_J2323.5-0317_daily_bin955.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811216/Model_4FGL_J2323.5-0317_daily_bin955.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/811216/ft1_filtered_4FGL_J2323.5-0317_daily_bin955.fits....................!
real 52.66
user 51.37
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.249       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.720       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.1129       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15215E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0990       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5214       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    422.24       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.721       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.043       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.6643       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0752       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83861       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=   5356.485     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2894 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5779       -.19571E-07** at limit **
   2  Prefactor     47.250        40.672        .17508E-06    .43386E-06
   3  Prefactor     14.717        35.160       -.15444E-05   -.56966E-05
   4  Prefactor     .10000E-03    6.6595       -.33731E-06** at limit **
   5  norm          8.1138        10.575       -.18919E-05   -.12515E-02
   6  Prefactor     .10012E-03    25.963       -.12666E-05** at limit **
   7  Prefactor     .10000E-03    16.894       -.14133E-04** at limit **
   8  Prefactor     .10000E-03    57.820        .13252E-04** at limit **
   9  Prefactor     .10000E-03    8.6596        .14137E-06** at limit **
  10  norm          1.0990        .91686       -.31647E-07   -.25781E-03
  11  norm          3.5189        5.4295       -.56709E-06   -.44645E-03
  12  Prefactor     .10000E-03    3.4965       -.96366E-07** at limit **
  13  Prefactor     .10000E-03    29.092        .10563E-04** at limit **
  14  Prefactor     422.25        256.80        .12839E-05   -.27250E-04
  15  Prefactor     .10000E-03    6.5918        .23484E-06** at limit **
  16  Prefactor     .10000E-03    11.856       -.90063E-06** at limit **
  17  norm          .10000E-03    16.065        .12686E-04** at limit **
  18  Prefactor     .10000E-03    55.549        .20399E-05** at limit **
  19  Prefactor     .10000E-03    1.3585       -.33719E-08** at limit **
  20  Prefactor     20.719        41.019       -.20512E-05    .29213E-04
  21  Prefactor     .10000E-03    39.511       -.19309E-04** at limit **
  22  Prefactor     14.043        18.941       -.13434E-06   -.17488E-04
  23  Prefactor     6.6645        6.6559       -.17989E-06   -.75145E-04
  24  Normalizat    1.0752        .20177        .63977E-06    .12420E-03
  25  Prefactor     .83855        .14237        .29493E-06    .20917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 47.2502
  Prefactor  = 14.7174
  Prefactor  = 0.0001
  norm       = 8.11379
  Prefactor  = 0.000100125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.09903
  norm       = 3.51895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 422.246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.7186
  Prefactor  = 0.0001
  Prefactor  = 14.0428
  Prefactor  = 6.66452
  Normalizat = 1.0752
  Prefactor  = 0.838552
 **********
 **   18 **HESSE 
 **********

 FCN=   5356.485     FROM HESSE     STATUS=OK           421 CALLS     3315 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5792        .11476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     47.250        40.674        .58333E-04   -1.4332    
   3  Prefactor     14.717        35.200        .10439E-03   -1.4941    
   4  Prefactor     .10000E-03    6.7218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.1138        10.951        .70380E-03   -1.5138    
   6  Prefactor     .10012E-03    191.35        .71787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    57.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.7659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0990        .92411        .59093E-04   -1.5498    
  11  norm          3.5189        5.4205        .20277E-03   -1.5333    
  12  Prefactor     .10000E-03    3.5025        .13365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     422.25        255.92        .99453E-04   -1.1569    
  15  Prefactor     .10000E-03    6.6313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    55.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3639        .83276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.719        41.072        .87989E-04   -1.4797    
  21  Prefactor     .10000E-03    39.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.043        19.021        .10688E-03   -1.4958    
  23  Prefactor     6.6645        6.6595        .15544E-03   -1.5192    
  24  Normalizat    1.0752        .23902        .25971E-03   -.90552    
  25  Prefactor     .83855        .16825        .21173E-03   -.98323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29838e-09
Minuit parameter uncertainties:
  1  6.48682e-07
  2  40.6976
  3  35.2492
  4  2.09349e-06
  5  10.954
  6  0.00980932
  7  5.82154e-05
  8  3.73917e-05
  9  4.1185e-06
  10  0.924123
  11  5.42129
  12  1.291e-07
  13  1.76026e-06
  14  256.614
  15  1.52702e-05
  16  2.4359e-06
  17  3.7003e-05
  18  2.34346e-05
  19  2.46603e-06
  20  41.1283
  21  0.00017997
  22  19.0288
  23  6.66023
  24  0.239256
  25  0.16835
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.099e+00  9.241e-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:  8.386e-01  1.684e-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:  1.075e+00  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.33
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.25e-08 +/- 3.58e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.47e-05

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) = 5356.30019315
delta logL = 0.184477976734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5356.1749593
delta logL = 0.309711828757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45729       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3056       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83291       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=   5356.175     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45570        .46763        .10756E-01    .84629E-03
   2  alpha         1.3037        .51672        .37984       -.91377E-04
   3  Normalizat    1.1023        .19348        .58130E-01    .21289E-04
   4  Prefactor     .83282        .14177        .44144E-01    .48789E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.455704
  alpha      = 1.30375
  Normalizat = 1.10234
  Prefactor  = 0.83282
 **********
 **   18 **HESSE 
 **********

 FCN=   5356.175     FROM HESSE     STATUS=OK            35 CALLS      246 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45570        .88849        .43849E-03   -1.5573    
   2  alpha         1.3037        .98445        .15056E-01   -.49895    
   3  Normalizat    1.1023        .22880        .25707E-03   -.89677    
   4  Prefactor     .83282        .16767        .21259E-03   -.98530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26177e-10
Minuit parameter uncertainties:
  1  0.888511
  2  1.02085
  3  0.229001
  4  0.167776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811216': 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) = 5356.17495757
delta logL = 0.309713559194

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.557e-01  8.885e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.304e+00  1.021e+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:  8.328e-01  1.678e-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:  1.102e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.96
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.30 +/- 1.02
Photon Flux (Free Index): 1.12e-08 +/- 2.12e-08
Energy Flux (Free Index): 2.62e-05 +/- 3.78e-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/811216/cmap_HighResolution_486864001_487123201_4FGL_J2323.5-0317_daily_bin955.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.25e-08', energy_flux2='2.62e-05', photon_flux_error='3.58e-08', dlogl='3.10e-01', energy_flux='1.74e-05', photon_flux2='1.12e-08', job_status='DONE', time_completed='2021-09-29 14:46:01.680615', photon_index_error2='1.02', photon_index2='1.30', ts='5.33', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='3.78e-05', EG='1.08', time_epoch_completed='1632951961.68', return_code='0', job_id='811216', GAL2='0.83', EG2='1.10', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='2.12e-08', ts2='5.96', photon_index='2.16' WHERE bin_id='955' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:46:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 811216: <4FGL_J2323.5-0317_daily_bin955> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin955 350.888 -3.29 486864001 487123201 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 :                                   554.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             371.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            619 sec.

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

