/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 226 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7404
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2323.6-0617_daily_bin943
RA = 350.916, Dec = -6.2953
tmin = 483753601, tmax = 484012801
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='818962', job_status='RUN', time_executed='2021-09-29 15:04:15.141649', time_epoch_executed='1632953055.14' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='943'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818962

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818962/ft1_4FGL_J2323.6-0617_daily_bin943.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818962/ft2_4FGL_J2323.6-0617_daily_bin943.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818962/ft1_4FGL_J2323.6-0617_daily_bin943.fits outfile=/scratch/kocevski/818962/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin943.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=483753601.0 tmax=484012801.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.55
user 5.27
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818962/ft1_filtered_4FGL_J2323.6-0617_daily_bin943.fits" evtable="EVENTS" scfile=/scratch/kocevski/818962/ft2_4FGL_J2323.6-0617_daily_bin943.fits sctable="SC_DATA" outfile=/scratch/kocevski/818962/ltcube_483753601_484012801_4FGL_J2323.6-0617_daily_bin943.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/818962/ft2_4FGL_J2323.6-0617_daily_bin943.fits
.....................!
real 11.59
user 11.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818962/ft1_filtered_4FGL_J2323.6-0617_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/818962/ft2_4FGL_J2323.6-0617_daily_bin943.fits sctable="SC_DATA" expcube=/scratch/kocevski/818962/ltcube_483753601_484012801_4FGL_J2323.6-0617_daily_bin943.fits outfile=/scratch/kocevski/818962/expmap_483753601_484012801_4FGL_J2323.6-0617_daily_bin943.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/818962/ltcube_483753601_484012801_4FGL_J2323.6-0617_daily_bin943.fits
.....................!
real 192.67
user 187.10
sys 5.22

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/818962/ft1_filtered_4FGL_J2323.6-0617_daily_bin943.fits scfile=/scratch/kocevski/818962/ft2_4FGL_J2323.6-0617_daily_bin943.fits outfile=/scratch/kocevski/818962/cmap_483753601_484012801_4FGL_J2323.6-0617_daily_bin943.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818962/ft1_filtered_4FGL_J2323.6-0617_daily_bin943.fits scfile=/scratch/kocevski/818962/ft2_4FGL_J2323.6-0617_daily_bin943.fits outfile=/scratch/kocevski/818962/cmap_HighResolution_483753601_484012801_4FGL_J2323.6-0617_daily_bin943.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818962/ft1_filtered_4FGL_J2323.6-0617_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/818962/ft2_4FGL_J2323.6-0617_daily_bin943.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818962/Model_4FGL_J2323.6-0617_daily_bin943.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/818962/ft1_filtered_4FGL_J2323.6-0617_daily_bin943.fits.....................!
real 43.69
user 42.25
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9347       1.0000         .10000E-03   10000.    
     4 'norm      '    .12287E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.216       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.190       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.456       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.626       1.0000         .10000E-03   10000.    
    13 'norm      '    7.7772       1.0000         .10000E-03   10000.    
    14 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9464       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12177E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25480E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.785       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.022       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.5377       1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.471       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1678       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80153       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=   4081.686     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3707 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1058        .45838E-07** at limit **
   2  Prefactor     .10000E-03    55.984       -.76968E-05** at limit **
   3  Prefactor     1.8997        26.358       -.17514E-05   -.26464E-03
   4  norm          .10000E-03    1.2607        .14056E-06** at limit **
   5  Prefactor     19.209        23.174        .13440E-06   -.55351E-04
   6  Prefactor     11.190        11.399       -.22729E-06   -.23243E-03
   7  Prefactor     .10000E-03    6.5929        .10859E-06** at limit **
   8  norm          .10000E-03    31.179        .11650E-04** at limit **
   9  Prefactor     .10000E-03    4.8432       -.11753E-06** at limit **
  10  Prefactor     19.508        159.94        .94301E-04    .30958E-05
  11  Prefactor     .10000E-03    13.432       -.42025E-07** at limit **
  12  Prefactor     12.620        21.311       -.17410E-04   -.16846E-03
  13  norm          7.7768        2.1916       -.23403E-06    .27594E-04
  14  norm          .10000E-03    4.4326        .10300E-06** at limit **
  15  Prefactor     .10000E-03    18.609        .87269E-05** at limit **
  16  Prefactor     .10000E-03    81.632        .86446E-05** at limit **
  17  Prefactor     9.9547        23.869       -.24909E-05   -.78893E-04
  18  Prefactor     .10000E-03    314.02       -.67735E-05** at limit **
  19  Prefactor     .10000E-03    17.934       -.83934E-05** at limit **
  20  norm          .10000E-03    28.541       -.11585E-04** at limit **
  21  Prefactor     .10000E-03    340.13        .20672E-04** at limit **
  22  Prefactor     15.784        8.3230        .20937E-05    .50026E-03
  23  Prefactor     16.025        37.954        .81852E-06    .16945E-05
  24  norm          .10000E-03    .18218        .12340E-06** at limit **
  25  norm          2.5378        2.9953        .51858E-07    .32361E-04
  26  Prefactor     24.471        24.635        .51713E-06   -.36635E-05
  27  Prefactor     .10000E-03    9.4146        .29893E-07** at limit **
  28  Normalizat    1.1673        .25495       -.53155E-05    .36976E-04
  29  Prefactor     .80183        .17730        .18054E-05   -.29029E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.8997
  norm       = 0.000100001
  Prefactor  = 19.2087
  Prefactor  = 11.1904
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5084
  Prefactor  = 0.0001
  Prefactor  = 12.6203
  norm       = 7.77679
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.95468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7843
  Prefactor  = 16.0255
  norm       = 0.0001
  norm       = 2.53778
  Prefactor  = 24.4713
  Prefactor  = 0.0001
  Normalizat = 1.16726
  Prefactor  = 0.801834
 **********
 **   18 **HESSE 
 **********

 FCN=   4081.686     FROM HESSE     STATUS=OK           549 CALLS     4256 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1239        .15417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    56.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8997        18.886        .29855E-03   -1.5432    
   4  norm          .10000E-03    2.3258        .11348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.209        22.755        .91369E-04   -1.4831    
   6  Prefactor     11.190        11.402        .59882E-03   -1.5039    
   7  Prefactor     .10000E-03    6.6056        .16022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    31.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8465        .13732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.508        158.58        .90803E-04   -1.4824    
  11  Prefactor     .10000E-03    13.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.620        21.266        .11273E-03   -1.4997    
  13  norm          7.7768        2.1944        .46670E-04   -1.5150    
  14  norm          .10000E-03    4.4419        .13126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    81.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.9547        24.259        .12706E-03   -1.5077    
  18  Prefactor     .10000E-03    314.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    28.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    344.06        .21457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.784        8.3645        .10081E-03   -1.4913    
  23  Prefactor     16.025        37.961        .10006E-03   -1.4907    
  24  norm          .10000E-03    .18741        .53201E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.5378        2.9920        .11710E-03   -1.5389    
  26  Prefactor     24.471        24.682        .80977E-04   -1.4718    
  27  Prefactor     .10000E-03    9.6070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1673        .30494        .26374E-03   -.87621    
  29  Prefactor     .80183        .21061        .23473E-03   -.99661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72992e-09
Minuit parameter uncertainties:
  1  1.07232e-05
  2  6.22331e-05
  3  11.9842
  4  7.14819e-05
  5  22.7658
  6  11.404
  7  4.82922e-06
  8  1.52097e-05
  9  2.23133e-06
  10  111.648
  11  1.20019e-05
  12  21.279
  13  2.19446
  14  5.38082e-06
  15  4.36435e-06
  16  0.000297652
  17  24.2826
  18  0.000142564
  19  8.14755e-05
  20  7.99665e-05
  21  2.03453e-05
  22  8.36511
  23  38.0187
  24  5.36695e-07
  25  2.99218
  26  24.6927
  27  4.23707e-05
  28  0.3054
  29  0.210817
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  5.381e-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:  8.018e-01  2.108e-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.167e+00  3.054e-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: 9.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/818962/likelihoodResults_483753601_484012801_4FGL_J2323.6-0617_daily_bin943.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) = 4081.68714706
delta logL = -0.0010666988951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4081.6860802
delta logL = 1.61673142429e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2642       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80180       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=   4081.686     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.0972        .90712E-02** at limit **
   2  alpha         2.2905        3.6274        .41385       -.29820E-04
   3  Normalizat    1.1673        .22981        .59635E-01   -.22166E-04
   4  Prefactor     .80184        .17377        .43741E-01   -.33959E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.29053
  Normalizat = 1.16726
  Prefactor  = 0.801838
 **********
 **   18 **HESSE 
 **********

 FCN=   4081.686     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7594        .13488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2905        3.5046        .50000       -.83886E-01
   3  Normalizat    1.1673        .26715        .26375E-03   -.87621    
   4  Prefactor     .80184        .20212        .23473E-03   -.99661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.24261e-10
Minuit parameter uncertainties:
  1  1.7439e-05
  2  2.51098
  3  0.267464
  4  0.202307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818962': 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) = 4081.68607975
delta logL = 6.044069778e-07

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  1.744e-05  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.291e+00  2.511e+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:  8.018e-01  2.023e-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.167e+00  2.675e-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/818962/cmap_HighResolution_483753601_484012801_4FGL_J2323.6-0617_daily_bin943.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-05', job_status='DONE', photon_flux_upper_limit='9.90e-08', time_completed='2021-09-29 15:14:39.289667', job_id='818962', GAL2='0.80', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632953679.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='6.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='943' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:14:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 818962: <4FGL_J2323.6-0617_daily_bin943> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin943> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 15:00:19 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:00:20 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:20 2021
Terminated at Wed Sep 29 15:14:39 2021
Results reported at Wed Sep 29 15:14:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin943 350.916 -6.2953 483753601 484012801 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 :                                   622.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            860 sec.

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

