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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin990
RA = 350.916, Dec = -6.2953
tmin = 495936001, tmax = 496195201
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='819028', job_status='RUN', time_executed='2021-09-29 15:00:36.529036', time_epoch_executed='1632952836.53' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/819028

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/819028/ft1_4FGL_J2323.6-0617_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/819028/ft2_4FGL_J2323.6-0617_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/819028/ft1_4FGL_J2323.6-0617_daily_bin990.fits outfile=/scratch/kocevski/819028/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin990.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=495936001.0 tmax=496195201.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.49
user 3.24
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/819028/ft2_4FGL_J2323.6-0617_daily_bin990.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/819028/ft2_4FGL_J2323.6-0617_daily_bin990.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/819028/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin990.fits evtable="EVENTS" outfile="/scratch/kocevski/819028/ft1_filtered_4FGL_J2323.6-0617_daily_bin990.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/819028/ft1_filtered_4FGL_J2323.6-0617_daily_bin990.fits" evtable="EVENTS" scfile=/scratch/kocevski/819028/ft2_4FGL_J2323.6-0617_daily_bin990.fits sctable="SC_DATA" outfile=/scratch/kocevski/819028/ltcube_495936001_496195201_4FGL_J2323.6-0617_daily_bin990.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/819028/ft2_4FGL_J2323.6-0617_daily_bin990.fits
.....................!
real 11.77
user 11.45
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/819028/ft1_filtered_4FGL_J2323.6-0617_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/819028/ft2_4FGL_J2323.6-0617_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/819028/ltcube_495936001_496195201_4FGL_J2323.6-0617_daily_bin990.fits outfile=/scratch/kocevski/819028/expmap_495936001_496195201_4FGL_J2323.6-0617_daily_bin990.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/819028/ltcube_495936001_496195201_4FGL_J2323.6-0617_daily_bin990.fits
.....................!
real 191.15
user 185.66
sys 5.06

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 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J2323.6-0617 @ 350.916 -6.2953

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/819028/ft1_filtered_4FGL_J2323.6-0617_daily_bin990.fits scfile=/scratch/kocevski/819028/ft2_4FGL_J2323.6-0617_daily_bin990.fits outfile=/scratch/kocevski/819028/cmap_495936001_496195201_4FGL_J2323.6-0617_daily_bin990.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.916 yref=-6.2953 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/819028/ft1_filtered_4FGL_J2323.6-0617_daily_bin990.fits scfile=/scratch/kocevski/819028/ft2_4FGL_J2323.6-0617_daily_bin990.fits outfile=/scratch/kocevski/819028/cmap_HighResolution_495936001_496195201_4FGL_J2323.6-0617_daily_bin990.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.916 yref=-6.2953 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/819028/ft1_filtered_4FGL_J2323.6-0617_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/819028/ft2_4FGL_J2323.6-0617_daily_bin990.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/819028/Model_4FGL_J2323.6-0617_daily_bin990.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/819028/ft1_filtered_4FGL_J2323.6-0617_daily_bin990.fits.....................!
real 48.27
user 46.90
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/819028/ft1_filtered_4FGL_J2323.6-0617_daily_bin990.fits', '/scratch/kocevski/819028/ft2_4FGL_J2323.6-0617_daily_bin990.fits', expMap='/scratch/kocevski/819028/expmap_495936001_496195201_4FGL_J2323.6-0617_daily_bin990.fits', expCube='/scratch/kocevski/819028/ltcube_495936001_496195201_4FGL_J2323.6-0617_daily_bin990.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/819028/Model_4FGL_J2323.6-0617_daily_bin990.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.6-0617'

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.612e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/819028/ft1_filtered_4FGL_J2323.6-0617_daily_bin990.fits
Spacecraft file(s): /scratch/kocevski/819028/ft2_4FGL_J2323.6-0617_daily_bin990.fits
Exposure map: /scratch/kocevski/819028/expmap_495936001_496195201_4FGL_J2323.6-0617_daily_bin990.fits
Exposure cube: /scratch/kocevski/819028/ltcube_495936001_496195201_4FGL_J2323.6-0617_daily_bin990.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/819028/Model_4FGL_J2323.6-0617_daily_bin990.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) = 4941.21965591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3999       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.627       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.7563       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.549       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    76.343       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    21.755       1.0000         .10000E-03   10000.    
    21 'Prefactor '    56.858       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.1074       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .90783       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4941.216     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     3680 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4014        10.321       -.63313E-06   -.72767E-04
   2  Prefactor     32.630        48.894        .34136E-05   -.11041E-05
   3  Prefactor     .10000E-03    21.862        .21448E-04** at limit **
   4  norm          2.7546        1.4388       -.22661E-07   -.11242E-02
   5  Prefactor     .10000E-03    85.031       -.14279E-04** at limit **
   6  Prefactor     .10000E-03    4.6598        .43184E-07** at limit **
   7  Prefactor     .10000E-03    35.536       -.11989E-04** at limit **
   8  norm          16.550        14.215        .46538E-06   -.64889E-05
   9  Prefactor     .10000E-03    24.197        .31171E-06** at limit **
  10  Prefactor     .10000E-03    90.262       -.41724E-04** at limit **
  11  Prefactor     .10000E-03    12.322       -.11546E-04** at limit **
  12  Prefactor     .10000E-03    11.859       -.14493E-05** at limit **
  13  norm          .10000E-03    .23874        .37951E-07** at limit **
  14  norm          .10000E-03    6.6852       -.23473E-06** at limit **
  15  Prefactor     .10000E-03    11.793        .10335E-04** at limit **
  16  Prefactor     .10000E-03    41.014        .90661E-05** at limit **
  17  Prefactor     .10000E-03    27.931       -.18189E-04** at limit **
  18  Prefactor     76.309        177.70       -.37739E-04    .37146E-04
  19  Prefactor     .10000E-03    26.709       -.12409E-04** at limit **
  20  norm          21.748        22.084        .20058E-05    .25845E-03
  21  Prefactor     56.892        82.418        .39186E-04    .43472E-04
  22  Prefactor     .10000E-03    2.9319        .14520E-06** at limit **
  23  Prefactor     .10000E-03    54.207        .54746E-04** at limit **
  24  norm          1.1075        .66180        .30245E-07    .26367E-03
  25  norm          .10000E-03    3.1740        .14481E-07** at limit **
  26  Prefactor     .10000E-03    15.018        .15500E-06** at limit **
  27  Prefactor     .10000E-03    4.3994       -.25230E-07** at limit **
  28  Normalizat    .90762        .22195       -.39664E-05    .26345E-03
  29  Prefactor     1.1277        .17273        .59210E-06    .39433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.40139
  Prefactor  = 32.6302
  Prefactor  = 0.0001
  norm       = 2.7546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.55
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.3089
  Prefactor  = 0.000100002
  norm       = 21.7475
  Prefactor  = 56.8917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10753
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.907625
  Prefactor  = 1.12771
 **********
 **   18 **HESSE 
 **********

 FCN=   4941.216     FROM HESSE     STATUS=OK           533 CALLS     4213 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4014        10.311        .15865E-03   -1.5202    
   2  Prefactor     32.630        48.880        .70151E-04   -1.4565    
   3  Prefactor     .10000E-03    21.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.7546        1.4327        .58506E-04   -1.5376    
   5  Prefactor     .10000E-03    85.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6627        .14819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.550        14.222        .98455E-04   -1.4894    
   9  Prefactor     .10000E-03    24.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    91.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .24059        .33511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.8563        .35476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     76.309        177.20        .45957E-04   -1.3959    
  19  Prefactor     .10000E-03    26.957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          21.748        21.967        .85875E-04   -1.4775    
  21  Prefactor     56.892        82.800        .53201E-04   -1.4198    
  22  Prefactor     .10000E-03    2.9537        .11732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    54.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.1075        .65477        .42815E-04   -1.5497    
  25  norm          .10000E-03    3.1845        .12222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.4213        .14395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .90762        .25884        .29393E-03   -.96193    
  29  Prefactor     1.1277        .20206        .21092E-03   -.88586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98928e-10
Minuit parameter uncertainties:
  1  10.3134
  2  48.94
  3  2.63808e-05
  4  1.43274
  5  0.000260733
  6  3.98063e-06
  7  0.000234919
  8  14.225
  9  4.6148e-05
  10  0.000276114
  11  1.12766e-05
  12  0.000104457
  13  1.8636e-06
  14  6.26685e-05
  15  4.60806e-06
  16  6.24415e-05
  17  0.000126873
  18  178.448
  19  0.000504292
  20  21.9748
  21  82.9685
  22  1.78872e-05
  23  0.000278067
  24  0.654769
  25  3.04345e-06
  26  1.04365e-05
  27  3.9433e-06
  28  0.259195
  29  0.202202
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  6.267e-05  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.239e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.128e+00  2.022e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  9.076e-01  2.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.916 -6.295
Photon Flux Upper Limit: 8.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/819028/likelihoodResults_495936001_496195201_4FGL_J2323.6-0617_daily_bin990.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) = 4941.21669158
delta logL = -0.000696126077855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4941.21599603
delta logL = -5.84760528e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11188E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2077       1.0000          .0000       5.0000    
     3 'Normalizat'    .90759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1278       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+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.

 FCN=   4941.216     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      243 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    957.86        .36285E-02** at limit **
   2  alpha         1.6448        2.6726        .16605        .14391E-06
   3  Normalizat    .90762        .55095E-01    .29393E-03    .53355E-03
   4  Prefactor     1.1277        .43886E-01    .21092E-03    .61388E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.64483
  Normalizat = 0.907623
  Prefactor  = 1.12771
 **********
 **   18 **HESSE 
 **********

 FCN=   4941.216     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.158        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6448        2.8786        .66420E-02   -.34912    
   3  Normalizat    .90762        .25231        .58786E-04   -.96193    
   4  Prefactor     1.1277        .20087        .42183E-04   -.88586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99706e-10
Minuit parameter uncertainties:
  1  9.06372e-05
  2  207.472
  3  0.252638
  4  0.201006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/819028': 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) = 4941.21599228
delta logL = 3.16495425068e-06

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  9.064e-05  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  1.645e+00  2.075e+02  0.000e+00  5.000e+00 ( 1.000e+00)
390         beta:  1.822e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
391           Eb:  7.592e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.128e+00  2.010e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  9.076e-01  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.916 -6.295

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/819028/cmap_HighResolution_495936001_496195201_4FGL_J2323.6-0617_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', job_status='DONE', photon_flux_upper_limit='8.03e-08', time_completed='2021-09-29 15:11:29.845460', job_id='819028', GAL2='1.13', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632953489.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='3.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='990' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:11:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 819028: <4FGL_J2323.6-0617_daily_bin990> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin990> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 15:00:24 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:00:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 15:00:25 2021
Terminated at Wed Sep 29 15:11:30 2021
Results reported at Wed Sep 29 15:11:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin990 350.916 -6.2953 495936001 496195201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.6-0617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   651.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            666 sec.

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

