/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 116 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 = 7404
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin104
RA = 350.888, Dec = -3.29
tmin = 266284801, tmax = 266544001
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='807004', job_status='RUN', time_executed='2021-09-29 14:23:02.786191', time_epoch_executed='1632950582.79' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/807004

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/807004/ft1_4FGL_J2323.5-0317_daily_bin104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/807004/ft2_4FGL_J2323.5-0317_daily_bin104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/807004/ft1_4FGL_J2323.5-0317_daily_bin104.fits outfile=/scratch/kocevski/807004/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin104.fits ra=350.888 dec=-3.29 rad=12.0 tmin=266284801.0 tmax=266544001.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 1.40
user 1.22
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/807004/ft2_4FGL_J2323.5-0317_daily_bin104.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/807004/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin104.fits evtable="EVENTS" outfile="/scratch/kocevski/807004/ft1_filtered_4FGL_J2323.5-0317_daily_bin104.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/807004/ft1_filtered_4FGL_J2323.5-0317_daily_bin104.fits" evtable="EVENTS" scfile=/scratch/kocevski/807004/ft2_4FGL_J2323.5-0317_daily_bin104.fits sctable="SC_DATA" outfile=/scratch/kocevski/807004/ltcube_266284801_266544001_4FGL_J2323.5-0317_daily_bin104.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/807004/ft2_4FGL_J2323.5-0317_daily_bin104.fits
.....................!
real 13.09
user 12.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/807004/ft1_filtered_4FGL_J2323.5-0317_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/807004/ft2_4FGL_J2323.5-0317_daily_bin104.fits sctable="SC_DATA" expcube=/scratch/kocevski/807004/ltcube_266284801_266544001_4FGL_J2323.5-0317_daily_bin104.fits outfile=/scratch/kocevski/807004/expmap_266284801_266544001_4FGL_J2323.5-0317_daily_bin104.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/807004/ltcube_266284801_266544001_4FGL_J2323.5-0317_daily_bin104.fits
.....................!
real 191.43
user 186.21
sys 4.90

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/807004/ft1_filtered_4FGL_J2323.5-0317_daily_bin104.fits scfile=/scratch/kocevski/807004/ft2_4FGL_J2323.5-0317_daily_bin104.fits outfile=/scratch/kocevski/807004/cmap_266284801_266544001_4FGL_J2323.5-0317_daily_bin104.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/807004/ft1_filtered_4FGL_J2323.5-0317_daily_bin104.fits scfile=/scratch/kocevski/807004/ft2_4FGL_J2323.5-0317_daily_bin104.fits outfile=/scratch/kocevski/807004/cmap_HighResolution_266284801_266544001_4FGL_J2323.5-0317_daily_bin104.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/807004/ft1_filtered_4FGL_J2323.5-0317_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/807004/ft2_4FGL_J2323.5-0317_daily_bin104.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/807004/Model_4FGL_J2323.5-0317_daily_bin104.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/807004/ft1_filtered_4FGL_J2323.5-0317_daily_bin104.fits.....................!
real 62.50
user 61.20
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0214       1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.096       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7286       1.0000         .10000E-03   10000.    
     5 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.136       1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.334       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .38327       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6683       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5929       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0765       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8076       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.6817       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0770       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0565       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83765       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=   6789.709     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2906 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0204        5.0243        .16039E-05    .26715E-03
   2  Prefactor     48.093        45.001       -.51174E-06   -.27604E-04
   3  Prefactor     .10000E-03    12.848        .33489E-06** at limit **
   4  Prefactor     9.7288        8.8589        .25926E-07   -.22456E-04
   5  norm          .10000E-03    14.636       -.76506E-06** at limit **
   6  Prefactor     12.107        36.753       -.80395E-05   -.29060E-03
   7  Prefactor     38.333        22.020        .43369E-06    .37545E-04
   8  Prefactor     .10001E-03    25.783       -.59838E-05** at limit **
   9  Prefactor     .10000E-03    2.0982       -.11972E-07** at limit **
  10  norm          .38295        .65101        .19666E-06    .59300E-04
  11  norm          .10000E-03    1.0604       -.19364E-07** at limit **
  12  Prefactor     2.6681        5.9531        .34354E-06   -.95128E-04
  13  Prefactor     .10001E-03    37.002        .40913E-05** at limit **
  14  Prefactor     .10000E-03    117.79       -.16478E-05** at limit **
  15  Prefactor     .10000E-03    7.6167       -.95011E-08** at limit **
  16  Prefactor     5.5928        17.207       -.10310E-06   -.20152E-04
  17  norm          .10000E-03    4.8651       -.87492E-07** at limit **
  18  Prefactor     .10001E-03    20.915        .36637E-05** at limit **
  19  Prefactor     7.0727        3.9844        .35482E-08   -.62613E-05
  20  Prefactor     2.8055        16.258        .10760E-04   -.50941E-03
  21  Prefactor     .10000E-03    4.7659        .14154E-07** at limit **
  22  Prefactor     4.6800        12.094        .99862E-07   -.41777E-04
  23  Prefactor     3.0770        4.9498        .96172E-06    .28950E-03
  24  Normalizat    1.0566        .17166       -.58945E-06   -.23477E-05
  25  Prefactor     .83757        .12507        .86111E-07   -.26904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.02038
  Prefactor  = 48.0935
  Prefactor  = 0.0001
  Prefactor  = 9.72883
  norm       = 0.0001
  Prefactor  = 12.1067
  Prefactor  = 38.333
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 0.382952
  norm       = 0.0001
  Prefactor  = 2.66807
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.5928
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 7.0727
  Prefactor  = 2.80553
  Prefactor  = 0.0001
  Prefactor  = 4.68
  Prefactor  = 3.07698
  Normalizat = 1.05658
  Prefactor  = 0.837568
 **********
 **   18 **HESSE 
 **********

 FCN=   6789.709     FROM HESSE     STATUS=OK           427 CALLS     3333 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0204        4.9957        .28082E-03   -1.5424    
   2  Prefactor     48.093        44.993        .57820E-04   -1.4320    
   3  Prefactor     .10000E-03    12.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7288        8.8579        .12848E-03   -1.5084    
   5  norm          .10000E-03    14.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.107        38.335        .11499E-03   -1.5012    
   7  Prefactor     38.333        22.041        .64735E-04   -1.4469    
   8  Prefactor     .10001E-03    26.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1032        .11655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .38295        .57517        .82631E-03   -1.5584    
  11  norm          .10000E-03    1.0617        .82862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6681        5.9304        .24950E-03   -1.5381    
  13  Prefactor     .10001E-03    37.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    118.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.7778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5928        17.195        .16987E-03   -1.5235    
  17  norm          .10000E-03    4.8673        .17751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    21.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0727        3.9811        .11677E-03   -1.5176    
  20  Prefactor     2.8055        19.158        .12139E-02   -1.5373    
  21  Prefactor     .10000E-03    4.7706        .17569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.6800        12.100        .18599E-03   -1.5275    
  23  Prefactor     3.0770        4.9422        .22445E-03   -1.5357    
  24  Normalizat    1.0566        .20066        .25610E-03   -.91158    
  25  Prefactor     .83757        .14637        .21082E-03   -.98358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19601e-09
Minuit parameter uncertainties:
  1  4.99669
  2  45.0246
  3  4.57753e-05
  4  8.85911
  5  0.000126969
  6  38.4127
  7  22.0461
  8  0.00126061
  9  6.59641e-07
  10  0.575178
  11  1.25926e-06
  12  5.93167
  13  0.000998319
  14  0.000762992
  15  1.40947e-05
  16  17.2107
  17  9.66916e-06
  18  0.00067754
  19  3.98121
  20  14.6692
  21  3.55912e-07
  22  12.1063
  23  4.94281
  24  0.200809
  25  0.146442
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.830e-01  5.752e-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.376e-01  1.464e-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.057e+00  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/807004/likelihoodResults_266284801_266544001_4FGL_J2323.5-0317_daily_bin104.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) = 6789.68154965
delta logL = 0.027792293924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6789.6811379
delta logL = 0.0282040385473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37606       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3907       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83908       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=   6789.681     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37586        17.934        .16555E-01    .16429E-02
   2  alpha         2.3925        2.6729        .41201        .15700E-04
   3  Normalizat    1.0530        .43437E-01    .57998E-01    .10736E-04
   4  Prefactor     .83883        .33499E-01    .44224E-01    .96081E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.375864
  alpha      = 2.39251
  Normalizat = 1.05303
  Prefactor  = 0.83883
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37586        .57289        .76549E-03   -1.5585    
   2  alpha         2.3925        .99578        .26369E-01   -.43007E-01
   3  Normalizat    1.0530        .19455        .25647E-03   -.91274    
   4  Prefactor     .83883        .14470        .21066E-03   -.98312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37982e-09
Minuit parameter uncertainties:
  1  0.572898
  2  1.02425
  3  0.194683
  4  0.144764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/807004': 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) = 6789.68113444
delta logL = 0.0282075058913

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.759e-01  5.729e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.393e+00  1.024e+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.388e-01  1.448e-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.053e+00  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.63
Ra Dec: 350.888 -3.290

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/807004/cmap_HighResolution_266284801_266544001_4FGL_J2323.5-0317_daily_bin104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-05', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-09-29 14:34:28.964898', job_id='807004', GAL2='0.84', fit_tolerance='1e-08', EG2='1.05', EG='1.06', time_epoch_completed='1632951268.96', return_code2='0', ts='0.63', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.82e-02', ts2='0.68', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='104' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:34:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 807004: <4FGL_J2323.5-0317_daily_bin104> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin104> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:20:58 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:20:59 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:20:59 2021
Terminated at Wed Sep 29 14:34:29 2021
Results reported at Wed Sep 29 14:34:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin104 350.888 -3.29 266284801 266544001 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 :                                   685.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            811 sec.

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

