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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin228
RA = 350.888, Dec = -3.29
tmin = 298425601, tmax = 298684801
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='808187', job_status='RUN', time_executed='2021-09-29 14:27:49.758533', time_epoch_executed='1632950869.76' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808187

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808187/ft1_4FGL_J2323.5-0317_daily_bin228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808187/ft2_4FGL_J2323.5-0317_daily_bin228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808187/ft1_4FGL_J2323.5-0317_daily_bin228.fits outfile=/scratch/kocevski/808187/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin228.fits ra=350.888 dec=-3.29 rad=12.0 tmin=298425601.0 tmax=298684801.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.48
user 3.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808187/ft2_4FGL_J2323.5-0317_daily_bin228.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/808187/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin228.fits evtable="EVENTS" outfile="/scratch/kocevski/808187/ft1_filtered_4FGL_J2323.5-0317_daily_bin228.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808187/ft1_filtered_4FGL_J2323.5-0317_daily_bin228.fits" evtable="EVENTS" scfile=/scratch/kocevski/808187/ft2_4FGL_J2323.5-0317_daily_bin228.fits sctable="SC_DATA" outfile=/scratch/kocevski/808187/ltcube_298425601_298684801_4FGL_J2323.5-0317_daily_bin228.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/808187/ft2_4FGL_J2323.5-0317_daily_bin228.fits
.....................!
real 11.70
user 11.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808187/ft1_filtered_4FGL_J2323.5-0317_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/808187/ft2_4FGL_J2323.5-0317_daily_bin228.fits sctable="SC_DATA" expcube=/scratch/kocevski/808187/ltcube_298425601_298684801_4FGL_J2323.5-0317_daily_bin228.fits outfile=/scratch/kocevski/808187/expmap_298425601_298684801_4FGL_J2323.5-0317_daily_bin228.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/808187/ltcube_298425601_298684801_4FGL_J2323.5-0317_daily_bin228.fits
.....................!
real 190.28
user 185.36
sys 4.40

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/808187/ft1_filtered_4FGL_J2323.5-0317_daily_bin228.fits scfile=/scratch/kocevski/808187/ft2_4FGL_J2323.5-0317_daily_bin228.fits outfile=/scratch/kocevski/808187/cmap_298425601_298684801_4FGL_J2323.5-0317_daily_bin228.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808187/ft1_filtered_4FGL_J2323.5-0317_daily_bin228.fits scfile=/scratch/kocevski/808187/ft2_4FGL_J2323.5-0317_daily_bin228.fits outfile=/scratch/kocevski/808187/cmap_HighResolution_298425601_298684801_4FGL_J2323.5-0317_daily_bin228.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/808187/ft1_filtered_4FGL_J2323.5-0317_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/808187/ft2_4FGL_J2323.5-0317_daily_bin228.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808187/Model_4FGL_J2323.5-0317_daily_bin228.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/808187/ft1_filtered_4FGL_J2323.5-0317_daily_bin228.fits....................!
real 43.57
user 42.27
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13579E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17997E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3932       1.0000         .10000E-03   10000.    
     5 'norm      '    14.367       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3099       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11861E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .28137E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.620       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .88568E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14350E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11320E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1043       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67087       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=   4080.317     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2528 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.510       -.22844E-05** at limit **
   2  Prefactor     .10000E-03    25.894        .54900E-05** at limit **
   3  Prefactor     .10462E-03    54.948       -.15657E-06** at limit **
   4  Prefactor     6.3899        11.681        .76165E-06   -.62103E-04
   5  norm          14.379        13.379        .16246E-05   -.80307E-04
   6  Prefactor     9.2764        35.544        .86406E-04   -.37922E-05
   7  Prefactor     .10000E-03    11.863        .36071E-05** at limit **
   8  Prefactor     .10000E-03    18.533        .12247E-04** at limit **
   9  Prefactor     .10000E-03    2.9290        .20454E-07** at limit **
  10  norm          .10000E-03    .83471        .45613E-06** at limit **
  11  norm          .10000E-03    3.7588        .52536E-06** at limit **
  12  Prefactor     12.622        12.600       -.34243E-06   -.76063E-04
  13  Prefactor     .10000E-03    20.038       -.12172E-04** at limit **
  14  Prefactor     .10000E-03    803.22       -.16241E-03** at limit **
  15  Prefactor     .10000E-03    31.142       -.52656E-06** at limit **
  16  Prefactor     .10000E-03    12.880       -.34693E-05** at limit **
  17  norm          .10000E-03    13.215        .29824E-06** at limit **
  18  Prefactor     .10000E-03    32.075        .54202E-06** at limit **
  19  Prefactor     .10000E-03    2.9742        .16259E-06** at limit **
  20  Prefactor     .10000E-03    60.087       -.12282E-04** at limit **
  21  Prefactor     .10000E-03    59.732        .11292E-04** at limit **
  22  Prefactor     .10000E-03    6.5261        .60153E-07** at limit **
  23  Prefactor     .10000E-03    11.113       -.11593E-05** at limit **
  24  Normalizat    1.1043        .19952       -.27774E-05   -.15092E-03
  25  Prefactor     .67069        .14354       -.32170E-05   -.11929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000104615
  Prefactor  = 6.38986
  norm       = 14.3789
  Prefactor  = 9.27637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.000100001
  Prefactor  = 12.6218
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1043
  Prefactor  = 0.670694
 **********
 **   18 **HESSE 
 **********

 FCN=   4080.317     FROM HESSE     STATUS=OK           425 CALLS     2953 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.384        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10462E-03    55.517        .12595       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.3899        11.667        .15874E-03   -1.5202    
   5  norm          14.379        13.379        .10567E-03   -1.4949    
   6  Prefactor     9.2764        35.512        .13135E-03   -1.5099    
   7  Prefactor     .10000E-03    11.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9316        .10676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.6370        .11196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.780        .24006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.622        12.600        .11276E-03   -1.4997    
  13  Prefactor     .10000E-03    20.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    804.44        .18298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.291        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.0153        .10748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    60.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    61.621        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.5374        .15937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1043        .22727        .22869E-03   -.89614    
  25  Prefactor     .67069        .16408        .20547E-03   -1.0469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09262e-09
Minuit parameter uncertainties:
  1  0.000238149
  2  3.91259e-05
  3  0.0320433
  4  11.6712
  5  13.3822
  6  35.5931
  7  7.71875e-05
  8  2.91065e-05
  9  7.43186e-06
  10  8.5796e-05
  11  0.000159341
  12  12.6023
  13  1.4765e-05
  14  0.00370969
  15  0.000544412
  16  1.46369e-05
  17  5.05723e-05
  18  6.07391e-05
  19  3.35795e-05
  20  0.00039175
  21  0.000306738
  22  2.18326e-05
  23  0.000112555
  24  0.227473
  25  0.164196
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  8.580e-05  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:  6.707e-01  1.642e-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.104e+00  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/808187/likelihoodResults_298425601_298684801_4FGL_J2323.5-0317_daily_bin228.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) = 4080.31899321
delta logL = -0.0018489605186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4080.31714564
delta logL = -1.38806717587e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1341       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67082       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4080.317     FROM MIGRAD    STATUS=FAILED       107 CALLS      268 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    467.27        .11287E-02** at limit **
   2  alpha         1.8176        4.0390        .50000       -.40297E-05
   3  Normalizat    1.1043        .76830E-01    .22869E-03    .25056E-02
   4  Prefactor     .67070        .55670E-01    .20547E-03    .28268E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4080.317     FROM SIMPLEX   STATUS=UNCHANGED    180 CALLS      448 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    467.27        .34936E-03** at limit **
   2  alpha         1.8176        4.0390        .10721E-05   -.40297E-05
   3  Normalizat    1.1043        .76830E-01    .70626E-07    .25056E-02
   4  Prefactor     .67070        .55670E-01    .35224E-07    .28268E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4080.317     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      497 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5600         .0000    ** at limit **
   2  alpha         1.8175        4.0908         .0000       -.40422E-05
   3  Normalizat    1.1043        .22505         .0000       -.24035E-04
   4  Prefactor     .67069        .16207         .0000        .15492E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.81751
  Normalizat = 1.1043
  Prefactor  = 0.670693
 **********
 **   18 **HESSE 
 **********

 FCN=   4080.317     FROM HESSE     STATUS=OK            27 CALLS      524 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4312        .45146E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8175        2.8748        .50000       -.27651    
   3  Normalizat    1.1043        .22507        .91478E-05   -.89614    
   4  Prefactor     .67069        .16209        .82189E-05   -1.0469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59103e-08
Minuit parameter uncertainties:
  1  2.17711e-05
  2  74.827
  3  0.22527
  4  0.162205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808187': 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) = 4080.31714023
delta logL = 4.02108162234e-06

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  2.177e-05  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.818e+00  7.483e+01  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:  6.707e-01  1.622e-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.104e+00  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/808187/cmap_HighResolution_298425601_298684801_4FGL_J2323.5-0317_daily_bin228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-05', job_status='DONE', photon_flux_upper_limit='8.80e-08', time_completed='2021-09-29 14:36:45.801543', job_id='808187', GAL2='0.67', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632951405.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='4.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='228' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:36:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 808187: <4FGL_J2323.5-0317_daily_bin228> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin228> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:18 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 14:25:19 2021
Terminated at Wed Sep 29 14:36:46 2021
Results reported at Wed Sep 29 14:36:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin228 350.888 -3.29 298425601 298684801 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 :                                   527.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            688 sec.

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

