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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin241
RA = 350.916, Dec = -6.2953
tmin = 301795201, tmax = 302054401
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='814718', job_status='RUN', time_executed='2021-09-29 14:48:30.464901', time_epoch_executed='1632952110.46' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814718

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814718/ft1_4FGL_J2323.6-0617_daily_bin241.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814718/ft2_4FGL_J2323.6-0617_daily_bin241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814718/ft1_4FGL_J2323.6-0617_daily_bin241.fits outfile=/scratch/kocevski/814718/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin241.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=301795201.0 tmax=302054401.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.03
user 3.79
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814718/ft1_filtered_4FGL_J2323.6-0617_daily_bin241.fits" evtable="EVENTS" scfile=/scratch/kocevski/814718/ft2_4FGL_J2323.6-0617_daily_bin241.fits sctable="SC_DATA" outfile=/scratch/kocevski/814718/ltcube_301795201_302054401_4FGL_J2323.6-0617_daily_bin241.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/814718/ft2_4FGL_J2323.6-0617_daily_bin241.fits
.....................!
real 11.80
user 11.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814718/ft1_filtered_4FGL_J2323.6-0617_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/814718/ft2_4FGL_J2323.6-0617_daily_bin241.fits sctable="SC_DATA" expcube=/scratch/kocevski/814718/ltcube_301795201_302054401_4FGL_J2323.6-0617_daily_bin241.fits outfile=/scratch/kocevski/814718/expmap_301795201_302054401_4FGL_J2323.6-0617_daily_bin241.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/814718/ltcube_301795201_302054401_4FGL_J2323.6-0617_daily_bin241.fits
.....................!
real 190.96
user 186.01
sys 4.57

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/814718/ft1_filtered_4FGL_J2323.6-0617_daily_bin241.fits scfile=/scratch/kocevski/814718/ft2_4FGL_J2323.6-0617_daily_bin241.fits outfile=/scratch/kocevski/814718/cmap_301795201_302054401_4FGL_J2323.6-0617_daily_bin241.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/814718/ft1_filtered_4FGL_J2323.6-0617_daily_bin241.fits scfile=/scratch/kocevski/814718/ft2_4FGL_J2323.6-0617_daily_bin241.fits outfile=/scratch/kocevski/814718/cmap_HighResolution_301795201_302054401_4FGL_J2323.6-0617_daily_bin241.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/814718/ft1_filtered_4FGL_J2323.6-0617_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/814718/ft2_4FGL_J2323.6-0617_daily_bin241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/814718/Model_4FGL_J2323.6-0617_daily_bin241.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/814718/ft1_filtered_4FGL_J2323.6-0617_daily_bin241.fits.....................!
real 46.90
user 45.61
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13821E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7664       1.0000         .10000E-03   10000.    
     4 'norm      '    .10745E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11254E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.885       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.243       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .46445       1.0000         .10000E-03   10000.    
    14 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.720       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.671       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3970       1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.310       1.0000         .10000E-03   10000.    
    24 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.8608       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.5832       1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.578       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3043       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71966       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=   4795.478     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3758 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.322        .18468E-05** at limit **
   2  Prefactor     .10000E-03    29.097        .50798E-05** at limit **
   3  Prefactor     1.7923        35.356        .53745E-05   -.13519E-04
   4  norm          .10000E-03    .66205       -.34411E-06** at limit **
   5  Prefactor     .10001E-03    159.18       -.10261E-05** at limit **
   6  Prefactor     12.890        12.826       -.17822E-05    .38323E-04
   7  Prefactor     .10000E-03    24.382       -.10003E-04** at limit **
   8  norm          .10000E-03    18.676        .29420E-05** at limit **
   9  Prefactor     .10000E-03    12.889        .66643E-06** at limit **
  10  Prefactor     15.239        54.641       -.26071E-06    .45912E-05
  11  Prefactor     .10000E-03    11.980       -.46403E-06** at limit **
  12  Prefactor     .10000E-03    4.2032       -.77464E-08** at limit **
  13  norm          .46442        .87858       -.21778E-06   -.13269E-02
  14  norm          .10000E-03    3.8862        .58150E-07** at limit **
  15  Prefactor     .10000E-03    21.350        .62672E-05** at limit **
  16  Prefactor     26.715        40.997        .21762E-05    .28534E-04
  17  Prefactor     .10000E-03    18.206       -.45256E-05** at limit **
  18  Prefactor     .10000E-03    586.16       -.78736E-05** at limit **
  19  Prefactor     .10000E-03    10.896        .28908E-06** at limit **
  20  norm          14.670        22.469       -.44048E-07   -.22997E-05
  21  Prefactor     .10000E-03    33.569       -.19301E-05** at limit **
  22  Prefactor     2.3971        4.9754       -.33364E-06   -.46223E-03
  23  Prefactor     53.319        36.439       -.31972E-05   -.10709E-05
  24  norm          .10000E-03    .40568        .12510E-07** at limit **
  25  norm          3.8625        6.2648       -.35378E-06   -.31858E-03
  26  Prefactor     9.5839        9.4101        .42814E-07    .11249E-04
  27  Prefactor     14.578        10.235        .10953E-07   -.75478E-04
  28  Normalizat    1.3042        .21706        .25555E-06    .97593E-04
  29  Prefactor     .71976        .15468        .27416E-06    .78146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.79231
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 12.8904
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.464423
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7152
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6698
  Prefactor  = 0.0001
  Prefactor  = 2.39707
  Prefactor  = 53.3191
  norm       = 0.0001
  norm       = 3.86254
  Prefactor  = 9.58385
  Prefactor  = 14.5784
  Normalizat = 1.30417
  Prefactor  = 0.719757
 **********
 **   18 **HESSE 
 **********

 FCN=   4795.478     FROM HESSE     STATUS=OK           551 CALLS     4309 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.395        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7923        25.896        .31515E-03   -1.5440    
   4  norm          .10000E-03    .87968        .94878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    161.14        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.890        12.767        .11159E-03   -1.4990    
   7  Prefactor     .10000E-03    24.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    18.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.239        54.804        .10259E-03   -1.4927    
  11  Prefactor     .10000E-03    11.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2054        .13848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .46442        .80802        .84828E-03   -1.5572    
  14  norm          .10000E-03    9.3312        .26228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.715        41.022        .77499E-04   -1.4674    
  17  Prefactor     .10000E-03    18.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    586.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.670        22.225        .10457E-03   -1.4942    
  21  Prefactor     .10000E-03    33.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.3971        4.9306        .19094E-03   -1.5398    
  23  Prefactor     53.319        36.388        .54933E-04   -1.4246    
  24  norm          .10000E-03    .65042        .78667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.8625        5.7809        .19653E-03   -1.5315    
  26  Prefactor     9.5839        9.4105        .12945E-03   -1.5089    
  27  Prefactor     14.578        10.254        .10490E-03   -1.4944    
  28  Normalizat    1.3042        .25618        .24230E-03   -.83442    
  29  Prefactor     .71976        .18123        .23617E-03   -1.0276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.344e-10
Minuit parameter uncertainties:
  1  7.55622e-05
  2  7.86168e-06
  3  13.6323
  4  3.13736e-05
  5  0.0019305
  6  12.7697
  7  3.20574e-05
  8  2.81153e-05
  9  2.8925e-06
  10  54.9861
  11  2.9335e-06
  12  8.70666e-07
  13  0.808038
  14  8.52457e-06
  15  6.19985e-06
  16  41.0656
  17  2.47479e-05
  18  0.0005187
  19  3.31605e-05
  20  22.2371
  21  1.79982e-06
  22  4.93144
  23  36.4028
  24  4.74729e-06
  25  5.7817
  26  9.41194
  27  10.2548
  28  0.256432
  29  0.181376
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  8.525e-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:  7.198e-01  1.814e-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.304e+00  2.564e-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: 6.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814718/likelihoodResults_301795201_302054401_4FGL_J2323.6-0617_daily_bin241.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) = 4795.47824685
delta logL = -0.000509110582243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4795.47773892
delta logL = -1.18299522001e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2131       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72003       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=   4795.478     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      255 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    573.80        .45871E-01** at limit **
   2  alpha         2.1958        2.7665        .41499        .93103E-05
   3  Normalizat    1.3042        .10071        .54799E-01    .19235E-03
   4  Prefactor     .71976        .73101E-01    .42667E-01    .21084E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  alpha      = 2.19576
  Normalizat = 1.30417
  Prefactor  = 0.719758
 **********
 **   18 **HESSE 
 **********

 FCN=   4795.478     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.5766        .26466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1958        3.4741        .50000       -.12200    
   3  Normalizat    1.3042        .23629        .24230E-03   -.83442    
   4  Prefactor     .71976        .17744        .23617E-03   -1.0276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52066e-10
Minuit parameter uncertainties:
  1  0.000397434
  2  2.48147
  3  0.236485
  4  0.177584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814718': 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) = 4795.47773758
delta logL = 1.57609974849e-07

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  3.974e-04  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.196e+00  2.481e+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:  7.198e-01  1.776e-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.304e+00  2.365e-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/814718/cmap_HighResolution_301795201_302054401_4FGL_J2323.6-0617_daily_bin241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-05', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2021-09-29 14:59:26.981577', job_id='814718', GAL2='0.72', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1632952766.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='241' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:59:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 814718: <4FGL_J2323.6-0617_daily_bin241> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin241> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 14:46:02 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:46:03 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:46:03 2021
Terminated at Wed Sep 29 14:59:27 2021
Results reported at Wed Sep 29 14:59:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin241 350.916 -6.2953 301795201 302054401 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.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            805 sec.

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

