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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin150
RA = 350.888, Dec = -3.29
tmin = 278208001, tmax = 278467201
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='807077', job_status='RUN', time_executed='2021-09-29 14:23:30.993207', time_epoch_executed='1632950610.99' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/807077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/807077/ft1_4FGL_J2323.5-0317_daily_bin150.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/807077/ft2_4FGL_J2323.5-0317_daily_bin150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/807077/ft1_4FGL_J2323.5-0317_daily_bin150.fits outfile=/scratch/kocevski/807077/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin150.fits ra=350.888 dec=-3.29 rad=12.0 tmin=278208001.0 tmax=278467201.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 5.38
user 5.12
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/807077/ft1_filtered_4FGL_J2323.5-0317_daily_bin150.fits" evtable="EVENTS" scfile=/scratch/kocevski/807077/ft2_4FGL_J2323.5-0317_daily_bin150.fits sctable="SC_DATA" outfile=/scratch/kocevski/807077/ltcube_278208001_278467201_4FGL_J2323.5-0317_daily_bin150.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/807077/ft2_4FGL_J2323.5-0317_daily_bin150.fits
.....................!
real 11.80
user 11.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/807077/ft1_filtered_4FGL_J2323.5-0317_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/807077/ft2_4FGL_J2323.5-0317_daily_bin150.fits sctable="SC_DATA" expcube=/scratch/kocevski/807077/ltcube_278208001_278467201_4FGL_J2323.5-0317_daily_bin150.fits outfile=/scratch/kocevski/807077/expmap_278208001_278467201_4FGL_J2323.5-0317_daily_bin150.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/807077/ltcube_278208001_278467201_4FGL_J2323.5-0317_daily_bin150.fits
.....................!
real 190.20
user 185.64
sys 4.20

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/807077/ft1_filtered_4FGL_J2323.5-0317_daily_bin150.fits scfile=/scratch/kocevski/807077/ft2_4FGL_J2323.5-0317_daily_bin150.fits outfile=/scratch/kocevski/807077/cmap_278208001_278467201_4FGL_J2323.5-0317_daily_bin150.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/807077/ft1_filtered_4FGL_J2323.5-0317_daily_bin150.fits scfile=/scratch/kocevski/807077/ft2_4FGL_J2323.5-0317_daily_bin150.fits outfile=/scratch/kocevski/807077/cmap_HighResolution_278208001_278467201_4FGL_J2323.5-0317_daily_bin150.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/807077/ft1_filtered_4FGL_J2323.5-0317_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/807077/ft2_4FGL_J2323.5-0317_daily_bin150.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/807077/Model_4FGL_J2323.5-0317_daily_bin150.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/807077/ft1_filtered_4FGL_J2323.5-0317_daily_bin150.fits.....................!
real 59.80
user 58.41
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10801E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6979       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.083       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .74215E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.531       1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.538       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    67.276       1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6368       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.8703       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.010       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0133       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1517       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=   6267.137     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2934 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2192       -.82322E-08** at limit **
   2  Prefactor     .10000E-03    122.30        .40317E-04** at limit **
   3  Prefactor     .10000E-03    9.2813        .31500E-05** at limit **
   4  Prefactor     .10000E-03    20.593       -.22902E-04** at limit **
   5  norm          .10000E-03    4.4724        .70360E-06** at limit **
   6  Prefactor     2.6649        142.36       -.89211E-04   -.42147E-05
   7  Prefactor     12.083        12.474        .56574E-06    .95529E-04
   8  Prefactor     .10000E-03    29.349        .78176E-05** at limit **
   9  Prefactor     .10000E-03    4.4732       -.57732E-06** at limit **
  10  norm          .74591E-01    .64522       -.82584E-06   -.33547E-03
  11  norm          .10000E-03    2.4799        .62305E-08** at limit **
  12  Prefactor     19.531        16.262        .73401E-06    .56652E-04
  13  Prefactor     42.537        42.379       -.12957E-05    .31225E-04
  14  Prefactor     .10000E-03    120.41        .58627E-04** at limit **
  15  Prefactor     .10000E-03    4.6924       -.26755E-06** at limit **
  16  Prefactor     67.276        40.919       -.66070E-06    .17746E-04
  17  norm          .10000E-03    10.164       -.86085E-05** at limit **
  18  Prefactor     .10000E-03    146.24       -.12799E-03** at limit **
  19  Prefactor     2.6361        4.0791       -.32559E-06   -.13303E-03
  20  Prefactor     .10000E-03    18.997        .16577E-04** at limit **
  21  Prefactor     7.8703        22.621       -.23435E-05   -.30116E-04
  22  Prefactor     13.010        21.627       -.25368E-05   -.13595E-05
  23  Prefactor     .10000E-03    10.461        .52912E-05** at limit **
  24  Normalizat    1.0134        .21112        .24091E-05    .59080E-03
  25  Prefactor     1.1516        .15542        .18216E-05    .81200E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.66492
  Prefactor  = 12.0832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0745907
  norm       = 0.0001
  Prefactor  = 19.5314
  Prefactor  = 42.5366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.2759
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.63614
  Prefactor  = 0.0001
  Prefactor  = 7.87032
  Prefactor  = 13.0099
  Prefactor  = 0.0001
  Normalizat = 1.0134
  Prefactor  = 1.15165
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.137     FROM HESSE     STATUS=OK           417 CALLS     3351 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2225        .13872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    122.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.2847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.4825        .16349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6649        144.63        .24802E-03   -1.5381    
   7  Prefactor     12.083        12.473        .11524E-03   -1.5013    
   8  Prefactor     .10000E-03    29.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.4879        .16348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .74591E-01    1.6151        .12017E-02   -1.5653    
  11  norm          .10000E-03    2.4874        .12170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.531        16.252        .90628E-04   -1.4824    
  13  Prefactor     42.537        42.383        .61465E-04   -1.4403    
  14  Prefactor     .10000E-03    120.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7049        .16738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     67.276        40.887        .48934E-04   -1.4066    
  17  norm          .10000E-03    10.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    146.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6361        4.0528        .18846E-03   -1.5383    
  20  Prefactor     .10000E-03    19.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.8703        22.625        .14293E-03   -1.5147    
  22  Prefactor     13.010        21.652        .11105E-03   -1.4986    
  23  Prefactor     .10000E-03    10.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0134        .24453        .30057E-03   -.92583    
  25  Prefactor     1.1516        .18113        .21135E-03   -.87832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47095e-08
Minuit parameter uncertainties:
  1  6.94812e-06
  2  0.00056687
  3  5.91552e-06
  4  0.000315414
  5  8.23304e-06
  6  39.3638
  7  12.4758
  8  3.30063e-05
  9  5.61521e-06
  10  0.693737
  11  7.08567e-07
  12  16.2559
  13  42.4132
  14  6.97058e-06
  15  7.2116e-07
  16  40.9043
  17  9.11663e-07
  18  0.000533443
  19  4.05318
  20  2.40322e-05
  21  22.6494
  22  21.6655
  23  0.000102872
  24  0.244805
  25  0.181228
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  7.459e-02  6.937e-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:  1.152e+00  1.812e-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.013e+00  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/807077/likelihoodResults_278208001_278467201_4FGL_J2323.5-0317_daily_bin150.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) = 6267.04896769
delta logL = 0.0882142319988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6267.03133177
delta logL = 0.105850148245

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13726       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4640       1.0000          .0000       5.0000    
     3 'Normalizat'    .98591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1623       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=   6267.031     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      216 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13740        6.0394        .96874E-02    .31133E-02
   2  alpha         3.4666        3.0059        .45903        .45277E-04
   3  Normalizat    .98597        .34454E-01    .68793E-01   -.55494E-04
   4  Prefactor     1.1621        .25815E-01    .35590E-01   -.30760E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.137402
  alpha      = 3.4666
  Normalizat = 0.985973
  Prefactor  = 1.16214
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.031     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13740        1.2557        .60262E-04   -1.5634    
   2  alpha         3.4666        4.2304        .43163E-01    .39698    
   3  Normalizat    .98597        .25140        .30432E-03   -.93502    
   4  Prefactor     1.1621        .18339        .21051E-03   -.87504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8932e-10
Minuit parameter uncertainties:
  1  0.830484
  2  4.37895
  3  0.251704
  4  0.18349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/807077': 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) = 6267.03132928
delta logL = 0.105852642216

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.374e-01  8.305e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.467e+00  4.379e+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.162e+00  1.835e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  9.860e-01  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/807077/cmap_HighResolution_278208001_278467201_4FGL_J2323.5-0317_daily_bin150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-05', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2021-09-29 14:34:45.310191', job_id='807077', GAL2='1.16', fit_tolerance='1e-08', EG2='0.99', EG='1.01', time_epoch_completed='1632951285.31', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.06e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='150' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:34:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 807077: <4FGL_J2323.5-0317_daily_bin150> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin150 350.888 -3.29 278208001 278467201 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 :                                   673.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

