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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin665
RA = 350.888, Dec = -3.29
tmin = 411696001, tmax = 411955201
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='810789', job_status='RUN', time_executed='2021-09-29 14:37:21.781443', time_epoch_executed='1632951441.78' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810789

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810789/ft1_4FGL_J2323.5-0317_daily_bin665.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810789/ft2_4FGL_J2323.5-0317_daily_bin665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810789/ft1_4FGL_J2323.5-0317_daily_bin665.fits outfile=/scratch/kocevski/810789/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin665.fits ra=350.888 dec=-3.29 rad=12.0 tmin=411696001.0 tmax=411955201.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 6.16
user 5.90
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810789/ft1_filtered_4FGL_J2323.5-0317_daily_bin665.fits" evtable="EVENTS" scfile=/scratch/kocevski/810789/ft2_4FGL_J2323.5-0317_daily_bin665.fits sctable="SC_DATA" outfile=/scratch/kocevski/810789/ltcube_411696001_411955201_4FGL_J2323.5-0317_daily_bin665.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/810789/ft2_4FGL_J2323.5-0317_daily_bin665.fits
.....................!
real 12.41
user 12.09
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810789/ft1_filtered_4FGL_J2323.5-0317_daily_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/810789/ft2_4FGL_J2323.5-0317_daily_bin665.fits sctable="SC_DATA" expcube=/scratch/kocevski/810789/ltcube_411696001_411955201_4FGL_J2323.5-0317_daily_bin665.fits outfile=/scratch/kocevski/810789/expmap_411696001_411955201_4FGL_J2323.5-0317_daily_bin665.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/810789/ltcube_411696001_411955201_4FGL_J2323.5-0317_daily_bin665.fits
.....................!
real 190.31
user 184.95
sys 4.92

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/810789/ft1_filtered_4FGL_J2323.5-0317_daily_bin665.fits scfile=/scratch/kocevski/810789/ft2_4FGL_J2323.5-0317_daily_bin665.fits outfile=/scratch/kocevski/810789/cmap_411696001_411955201_4FGL_J2323.5-0317_daily_bin665.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810789/ft1_filtered_4FGL_J2323.5-0317_daily_bin665.fits scfile=/scratch/kocevski/810789/ft2_4FGL_J2323.5-0317_daily_bin665.fits outfile=/scratch/kocevski/810789/cmap_HighResolution_411696001_411955201_4FGL_J2323.5-0317_daily_bin665.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/810789/ft1_filtered_4FGL_J2323.5-0317_daily_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/810789/ft2_4FGL_J2323.5-0317_daily_bin665.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810789/Model_4FGL_J2323.5-0317_daily_bin665.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/810789/ft1_filtered_4FGL_J2323.5-0317_daily_bin665.fits....................!
real 27.74
user 26.37
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.152       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.4514       1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.850       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.372       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10790E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .93408       1.0000         .10000E-03   10000.    
    11 'norm      '    8.3037       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    88.401       1.0000         .10000E-03   10000.    
    17 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16619E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.286       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.503       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .75914E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78129       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0254       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=   1857.521     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2874 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.367        .81331E-06** at limit **
   2  Prefactor     14.102        177.23       -.10455E-03   -.25719E-04
   3  Prefactor     .10000E-03    24.833        .14365E-05** at limit **
   4  Prefactor     .10000E-03    7.6408       -.18426E-07** at limit **
   5  norm          7.4832        48.994        .23843E-04   -.43907E-04
   6  Prefactor     50.888        103.15        .45062E-04   -.42151E-04
   7  Prefactor     .10000E-03    91.097        .46089E-04** at limit **
   8  Prefactor     13.411        116.39        .77676E-04    .20206E-04
   9  Prefactor     .10002E-03    24.610       -.29287E-05** at limit **
  10  norm          .93351        2.1154        .37372E-07   -.52771E-03
  11  norm          8.3113        15.892       -.35601E-05    .16802E-06
  12  Prefactor     .10000E-03    17.178        .13724E-04** at limit **
  13  Prefactor     .10000E-03    68.597       -.48202E-04** at limit **
  14  Prefactor     .10000E-03    140.12        .80197E-04** at limit **
  15  Prefactor     .10000E-03    7.0440       -.83477E-07** at limit **
  16  Prefactor     88.400        80.381       -.88028E-06   -.78815E-04
  17  norm          .10000E-03    16.618       -.97797E-05** at limit **
  18  Prefactor     .10000E-03    216.97       -.12714E-03** at limit **
  19  Prefactor     27.289        12.276        .23507E-06    .11196E-04
  20  Prefactor     11.524        132.04        .49103E-04   -.97091E-05
  21  Prefactor     .10000E-03    37.942        .67657E-05** at limit **
  22  Prefactor     .10000E-03    20.192       -.60968E-05** at limit **
  23  Prefactor     .10001E-03    16.808        .55347E-05** at limit **
  24  Normalizat    .78123        .37341       -.44875E-06   -.26870E-03
  25  Prefactor     1.0255        .27121       -.87736E-05   -.53723E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 14.1024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.48321
  Prefactor  = 50.8881
  Prefactor  = 0.000100001
  Prefactor  = 13.4109
  Prefactor  = 0.000100018
  norm       = 0.933507
  norm       = 8.31131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.4004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2894
  Prefactor  = 11.5243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Normalizat = 0.78123
  Prefactor  = 1.02547
 **********
 **   18 **HESSE 
 **********

 FCN=   1857.521     FROM HESSE     STATUS=OK           415 CALLS     3289 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.383        .13552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.102        178.84        .10647E-03   -1.4957    
   3  Prefactor     .10000E-03    24.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.6418        .11637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.4832        49.333        .14692E-03   -1.5161    
   6  Prefactor     50.888        103.12        .56240E-04   -1.4280    
   7  Prefactor     .10000E-03    91.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.411        115.95        .10953E-03   -1.4975    
   9  Prefactor     .10002E-03    24.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .93351        2.0444        .85345E-04   -1.5515    
  11  norm          8.3113        15.663        .13912E-03   -1.5131    
  12  Prefactor     .10000E-03    17.192        .17441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    68.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    140.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.0447        .11172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     88.400        80.288        .42733E-04   -1.3825    
  17  norm          .10000E-03    16.618        .17164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    216.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.289        12.291        .76693E-04   -1.4663    
  20  Prefactor     11.524        131.69        .11812E-03   -1.5029    
  21  Prefactor     .10000E-03    37.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    49.131        .33718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .78123        .42161        .31923E-03   -1.0077    
  25  Prefactor     1.0255        .31293        .20869E-03   -.91885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77543e-09
Minuit parameter uncertainties:
  1  0.000252362
  2  100.814
  3  5.96378e-06
  4  1.30752e-06
  5  38.4734
  6  103.484
  7  0.000693923
  8  79.0722
  9  0.00133052
  10  2.04455
  11  15.6708
  12  7.35276e-05
  13  7.15741e-05
  14  8.90246e-06
  15  6.64439e-06
  16  80.3866
  17  1.64027e-06
  18  0.000524903
  19  12.2918
  20  78.1295
  21  5.39429e-05
  22  0.000142069
  23  0.00142317
  24  0.423388
  25  0.313488
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  9.335e-01  2.045e+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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.025e+00  3.135e-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.812e-01  4.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/810789/likelihoodResults_411696001_411955201_4FGL_J2323.5-0317_daily_bin665.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) = 1857.51163029
delta logL = 0.0092152734112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1857.51108474
delta logL = 0.00976082200441

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88497       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3719       1.0000          .0000       5.0000    
     3 'Normalizat'    .77486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0286       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=   1857.511     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88570        94.725        .12753E-01    .32044E-03
   2  alpha         2.3721        3.7689        .41220        .49651E-05
   3  Normalizat    .77491        .10765        .72387E-01    .54064E-05
   4  Prefactor     1.0285        .90069E-01    .41370E-01    .79646E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.885701
  alpha      = 2.37215
  Normalizat = 0.774913
  Prefactor  = 1.02855
 **********
 **   18 **HESSE 
 **********

 FCN=   1857.511     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88570        2.0001        .80277E-04   -1.5520    
   2  alpha         2.3721        1.4954        .20334E-01   -.51163E-01
   3  Normalizat    .77491        .40063        .32037E-03   -1.0101    
   4  Prefactor     1.0285        .29874        .20840E-03   -.91784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00751e-10
Minuit parameter uncertainties:
  1  2.00029
  2  1.60332
  3  0.402164
  4  0.299227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810789': 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) = 1857.51108459
delta logL = 0.00976096720092

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  8.857e-01  2.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.372e+00  1.603e+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:  1.029e+00  2.992e-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.749e-01  4.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/810789/cmap_HighResolution_411696001_411955201_4FGL_J2323.5-0317_daily_bin665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.38e-05', job_status='DONE', photon_flux_upper_limit='2.29e-07', time_completed='2021-09-29 14:44:51.673598', job_id='810789', GAL2='1.03', fit_tolerance='1e-08', EG2='0.77', EG='0.78', time_epoch_completed='1632951891.67', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.76e-03', ts2='0.29', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='665' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:44:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 810789: <4FGL_J2323.5-0317_daily_bin665> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin665 350.888 -3.29 411696001 411955201 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 :                                   427.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             307.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   587 sec.
    Turnaround time :                            582 sec.

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

