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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin547
RA = 350.916, Dec = -6.2953
tmin = 381110401, tmax = 381369601
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='816286', job_status='RUN', time_executed='2021-09-29 14:52:41.930139', time_epoch_executed='1632952361.93' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816286

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816286/ft1_4FGL_J2323.6-0617_daily_bin547.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816286/ft2_4FGL_J2323.6-0617_daily_bin547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816286/ft1_4FGL_J2323.6-0617_daily_bin547.fits outfile=/scratch/kocevski/816286/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin547.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=381110401.0 tmax=381369601.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 4.68
user 4.43
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/816286/ft2_4FGL_J2323.6-0617_daily_bin547.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/816286/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin547.fits evtable="EVENTS" outfile="/scratch/kocevski/816286/ft1_filtered_4FGL_J2323.6-0617_daily_bin547.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.54
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816286/ft1_filtered_4FGL_J2323.6-0617_daily_bin547.fits" evtable="EVENTS" scfile=/scratch/kocevski/816286/ft2_4FGL_J2323.6-0617_daily_bin547.fits sctable="SC_DATA" outfile=/scratch/kocevski/816286/ltcube_381110401_381369601_4FGL_J2323.6-0617_daily_bin547.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/816286/ft2_4FGL_J2323.6-0617_daily_bin547.fits
.....................!
real 11.66
user 11.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816286/ft1_filtered_4FGL_J2323.6-0617_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/816286/ft2_4FGL_J2323.6-0617_daily_bin547.fits sctable="SC_DATA" expcube=/scratch/kocevski/816286/ltcube_381110401_381369601_4FGL_J2323.6-0617_daily_bin547.fits outfile=/scratch/kocevski/816286/expmap_381110401_381369601_4FGL_J2323.6-0617_daily_bin547.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/816286/ltcube_381110401_381369601_4FGL_J2323.6-0617_daily_bin547.fits
.....................!
real 190.58
user 186.09
sys 4.12

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/816286/ft1_filtered_4FGL_J2323.6-0617_daily_bin547.fits scfile=/scratch/kocevski/816286/ft2_4FGL_J2323.6-0617_daily_bin547.fits outfile=/scratch/kocevski/816286/cmap_381110401_381369601_4FGL_J2323.6-0617_daily_bin547.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816286/ft1_filtered_4FGL_J2323.6-0617_daily_bin547.fits scfile=/scratch/kocevski/816286/ft2_4FGL_J2323.6-0617_daily_bin547.fits outfile=/scratch/kocevski/816286/cmap_HighResolution_381110401_381369601_4FGL_J2323.6-0617_daily_bin547.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/816286/ft1_filtered_4FGL_J2323.6-0617_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/816286/ft2_4FGL_J2323.6-0617_daily_bin547.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/816286/Model_4FGL_J2323.6-0617_daily_bin547.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/816286/ft1_filtered_4FGL_J2323.6-0617_daily_bin547.fits.....................!
real 44.57
user 43.18
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/816286/ft1_filtered_4FGL_J2323.6-0617_daily_bin547.fits', '/scratch/kocevski/816286/ft2_4FGL_J2323.6-0617_daily_bin547.fits', expMap='/scratch/kocevski/816286/expmap_381110401_381369601_4FGL_J2323.6-0617_daily_bin547.fits', expCube='/scratch/kocevski/816286/ltcube_381110401_381369601_4FGL_J2323.6-0617_daily_bin547.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/816286/Model_4FGL_J2323.6-0617_daily_bin547.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/816286/ft1_filtered_4FGL_J2323.6-0617_daily_bin547.fits
Spacecraft file(s): /scratch/kocevski/816286/ft2_4FGL_J2323.6-0617_daily_bin547.fits
Exposure map: /scratch/kocevski/816286/expmap_381110401_381369601_4FGL_J2323.6-0617_daily_bin547.fits
Exposure cube: /scratch/kocevski/816286/ltcube_381110401_381369601_4FGL_J2323.6-0617_daily_bin547.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/816286/Model_4FGL_J2323.6-0617_daily_bin547.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) = 4052.04434842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23522E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10908E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.439       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.252       1.0000         .10000E-03   10000.    
     8 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6691       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17559E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.130       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5335       1.0000         .10000E-03   10000.    
    13 'norm      '    .58787       1.0000         .10000E-03   10000.    
    14 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.7563       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7614       1.0000         .10000E-03   10000.    
    20 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11268E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8344       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .72769       1.0000         .10000E-03   10000.    
    25 'norm      '    9.2080       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11555E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3064       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .67837       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=   4052.018     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     4302 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10125E-03    7.6907       -.71216E-06** at limit **
   2  Prefactor     .10000E-03    16.222       -.64789E-07** at limit **
   3  Prefactor     .11503E-03    23.456        .50097E-05** at limit **
   4  norm          .10000E-03    .73632        .94906E-06** at limit **
   5  Prefactor     20.405        35.077       -.11480E-04    .13090E-03
   6  Prefactor     .10000E-03    5.3773        .14376E-06** at limit **
   7  Prefactor     14.247        18.699       -.31057E-06    .39076E-04
   8  norm          .10000E-03    12.698        .55125E-07** at limit **
   9  Prefactor     9.6661        15.913        .92621E-07   -.50164E-05
  10  Prefactor     .10000E-03    150.53        .81532E-05** at limit **
  11  Prefactor     16.098        29.638        .15374E-05    .35821E-04
  12  Prefactor     9.5289        9.9514        .30300E-06   -.25455E-03
  13  norm          .58799        .84435        .38940E-07   -.29476E-03
  14  norm          .10000E-03    3.1190        .12699E-07** at limit **
  15  Prefactor     .10000E-03    51.517       -.37003E-06** at limit **
  16  Prefactor     9.6517        167.92       -.11723E-04   -.15364E-04
  17  Prefactor     .10000E-03    14.158       -.72823E-06** at limit **
  18  Prefactor     .10000E-03    70.857        .23026E-05** at limit **
  19  Prefactor     8.7606        11.538        .63524E-07    .10141E-04
  20  norm          .10000E-03    10.674        .38415E-07** at limit **
  21  Prefactor     .10000E-03    107.24       -.67831E-05** at limit **
  22  Prefactor     4.8342        5.5796       -.53922E-08   -.47952E-04
  23  Prefactor     .10000E-03    21.036        .11549E-06** at limit **
  24  norm          .72852        1.0065        .43204E-07    .10281E-02
  25  norm          9.2021        10.671       -.41029E-06    .20135E-03
  26  Prefactor     .10000E-03    8.3269        .25218E-07** at limit **
  27  Prefactor     .10000E-03    2.7116        .54913E-09** at limit **
  28  Normalizat    1.3068        .23617        .13934E-05   -.81838E-04
  29  Prefactor     .67806        .17089       -.14814E-05    .21506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101248
  Prefactor  = 0.0001
  Prefactor  = 0.000115026
  norm       = 0.0001
  Prefactor  = 20.405
  Prefactor  = 0.0001
  Prefactor  = 14.247
  norm       = 0.0001
  Prefactor  = 9.66607
  Prefactor  = 0.0001
  Prefactor  = 16.098
  Prefactor  = 9.52891
  norm       = 0.587991
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.65175
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 8.76059
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.83422
  Prefactor  = 0.0001
  norm       = 0.72852
  norm       = 9.20212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30684
  Prefactor  = 0.678056
 **********
 **   18 **HESSE 
 **********

 FCN=   4052.018     FROM HESSE     STATUS=OK           571 CALLS     4873 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10125E-03    8.0264        .58562E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11503E-03    44.445        .71662E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .94237        .99893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.405        47.717        .88594E-04   -1.4804    
   6  Prefactor     .10000E-03    5.3872        .14417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.247        18.690        .10610E-03   -1.4953    
   8  norm          .10000E-03    12.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.6661        15.912        .12887E-03   -1.5086    
  10  Prefactor     .10000E-03    150.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.098        29.634        .99726E-04   -1.4905    
  12  Prefactor     9.5289        9.9345        .12979E-03   -1.5090    
  13  norm          .58799        .79395        .66856E-03   -1.5555    
  14  norm          .10000E-03    3.1339        .10973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.6517        170.28        .12829E-03   -1.5087    
  17  Prefactor     .10000E-03    14.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    70.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.7606        11.504        .13542E-03   -1.5116    
  20  norm          .10000E-03    10.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    107.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.8342        5.5577        .14600E-03   -1.5268    
  23  Prefactor     .10000E-03    21.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .72852        .98186        .58557E-03   -1.5537    
  25  norm          9.2021        10.942        .13208E-03   -1.5101    
  26  Prefactor     .10000E-03    8.3407        .17940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.7157        .10237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3068        .27882        .23684E-03   -.83362    
  29  Prefactor     .67806        .20041        .23861E-03   -1.0439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94597e-09
Minuit parameter uncertainties:
  1  0.00633104
  2  1.46067e-06
  3  0.0517228
  4  1.32143e-05
  5  47.8063
  6  1.94366e-06
  7  18.6976
  8  1.64339e-05
  9  15.9194
  10  0.000141555
  11  29.6607
  12  9.93625
  13  0.793964
  14  5.21517e-06
  15  4.02004e-05
  16  81.3506
  17  0.000304005
  18  0.000110311
  19  11.5066
  20  9.66377e-06
  21  0.000414093
  22  5.55826
  23  1.82177e-05
  24  0.981883
  25  10.944
  26  6.41563e-06
  27  1.03178e-06
  28  0.279141
  29  0.200624
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  5.215e-06  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:  6.781e-01  2.006e-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:  1.307e+00  2.791e-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: 7.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/816286/likelihoodResults_381110401_381369601_4FGL_J2323.6-0617_daily_bin547.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) = 4052.01992551
delta logL = -0.00150668914102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4052.01841879
delta logL = 2.90174284601e-08

Fit tolerance = 1e-08

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

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

 FCN=   4052.018     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      195 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.4553        .90712E-02** at limit **
   2  alpha         2.2637        3.5187        .41412       -.20075E-04
   3  Normalizat    1.3068        .22212        .53566E-01    .75604E-04
   4  Prefactor     .67805        .16754        .42109E-01    .92731E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.26374
  Normalizat = 1.30685
  Prefactor  = 0.678052
 **********
 **   18 **HESSE 
 **********

 FCN=   4052.018     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1779        .11040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2637        3.4936        .50000       -.94646E-01
   3  Normalizat    1.3068        .26021        .23684E-03   -.83362    
   4  Prefactor     .67805        .19627        .23861E-03   -1.0439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63871e-10
Minuit parameter uncertainties:
  1  5.18651e-05
  2  2.49207
  3  0.260475
  4  0.196474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816286': 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) = 4052.01841862
delta logL = 2.00099293579e-07

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  5.187e-05  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.264e+00  2.492e+00  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:  6.781e-01  1.965e-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:  1.307e+00  2.605e-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/816286/cmap_HighResolution_381110401_381369601_4FGL_J2323.6-0617_daily_bin547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-05', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2021-09-29 15:03:20.269654', job_id='816286', GAL2='0.68', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632953000.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='547' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:03:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 816286: <4FGL_J2323.6-0617_daily_bin547> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin547> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:50:42 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:50:43 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:50:43 2021
Terminated at Wed Sep 29 15:03:21 2021
Results reported at Wed Sep 29 15:03:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin547 350.916 -6.2953 381110401 381369601 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 :                                   632.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            759 sec.

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

