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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin1600
RA = 350.916, Dec = -6.2953
tmin = 654048001, tmax = 654307201
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='820951', job_status='RUN', time_executed='2021-09-29 15:06:23.456746', time_epoch_executed='1632953183.46' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/820951

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/820951/ft1_4FGL_J2323.6-0617_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/820951/ft2_4FGL_J2323.6-0617_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/820951/ft1_4FGL_J2323.6-0617_daily_bin1600.fits outfile=/scratch/kocevski/820951/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin1600.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=654048001.0 tmax=654307201.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.64
user 3.44
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/820951/ft1_filtered_4FGL_J2323.6-0617_daily_bin1600.fits" evtable="EVENTS" scfile=/scratch/kocevski/820951/ft2_4FGL_J2323.6-0617_daily_bin1600.fits sctable="SC_DATA" outfile=/scratch/kocevski/820951/ltcube_654048001_654307201_4FGL_J2323.6-0617_daily_bin1600.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/820951/ft2_4FGL_J2323.6-0617_daily_bin1600.fits
.....................!
real 11.80
user 11.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/820951/ft1_filtered_4FGL_J2323.6-0617_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/820951/ft2_4FGL_J2323.6-0617_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/820951/ltcube_654048001_654307201_4FGL_J2323.6-0617_daily_bin1600.fits outfile=/scratch/kocevski/820951/expmap_654048001_654307201_4FGL_J2323.6-0617_daily_bin1600.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/820951/ltcube_654048001_654307201_4FGL_J2323.6-0617_daily_bin1600.fits
.....................!
real 190.48
user 186.05
sys 4.07

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/820951/ft1_filtered_4FGL_J2323.6-0617_daily_bin1600.fits scfile=/scratch/kocevski/820951/ft2_4FGL_J2323.6-0617_daily_bin1600.fits outfile=/scratch/kocevski/820951/cmap_654048001_654307201_4FGL_J2323.6-0617_daily_bin1600.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/820951/ft1_filtered_4FGL_J2323.6-0617_daily_bin1600.fits scfile=/scratch/kocevski/820951/ft2_4FGL_J2323.6-0617_daily_bin1600.fits outfile=/scratch/kocevski/820951/cmap_HighResolution_654048001_654307201_4FGL_J2323.6-0617_daily_bin1600.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/820951/ft1_filtered_4FGL_J2323.6-0617_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/820951/ft2_4FGL_J2323.6-0617_daily_bin1600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/820951/Model_4FGL_J2323.6-0617_daily_bin1600.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/820951/ft1_filtered_4FGL_J2323.6-0617_daily_bin1600.fits.....................!
real 50.62
user 49.29
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.342       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2537       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4675       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.008       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32731E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    39.868       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13330E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.366       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8611       1.0000         .10000E-03   10000.    
    13 'norm      '    .90370       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.090       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.425       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5913       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4457       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.438       1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.555       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77670       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91462       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=   5460.131     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3744 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8927       -.29616E-07** at limit **
   2  Prefactor     39.362        44.362        .21195E-05    .12038E-05
   3  Prefactor     .10000E-03    13.645       -.59836E-05** at limit **
   4  norm          1.2529        1.1460        .94347E-06   -.84565E-03
   5  Prefactor     3.4845        61.087       -.22336E-04    .27604E-04
   6  Prefactor     12.009        9.7982        .82073E-06    .44168E-04
   7  Prefactor     .10186E-03    7.4802        .32189E-05** at limit **
   8  norm          39.869        15.497       -.41218E-07   -.10924E-05
   9  Prefactor     .10000E-03    42.900        .33495E-05** at limit **
  10  Prefactor     .10000E-03    354.48       -.17709E-04** at limit **
  11  Prefactor     52.359        33.649        .22233E-05   -.28181E-04
  12  Prefactor     6.8630        9.3012        .15220E-05    .85053E-04
  13  norm          .90365        .92511       -.55525E-07   -.55698E-03
  14  norm          .10000E-03    2.9408       -.85603E-07** at limit **
  15  Prefactor     28.082        40.400        .52441E-06   -.44747E-05
  16  Prefactor     .10000E-03    31.135       -.89138E-07** at limit **
  17  Prefactor     .10000E-03    7.2634       -.41678E-07** at limit **
  18  Prefactor     .10000E-03    59.621       -.16452E-04** at limit **
  19  Prefactor     .10000E-03    14.649       -.18216E-05** at limit **
  20  norm          .10000E-03    13.637        .84309E-05** at limit **
  21  Prefactor     15.424        49.124        .56775E-06    .57495E-05
  22  Prefactor     1.5909        4.1898       -.10124E-05   -.90474E-03
  23  Prefactor     3.4505        153.88        .64781E-05   -.88825E-05
  24  norm          .10000E-03    .31074       -.18043E-06** at limit **
  25  norm          14.438        7.1956        .69390E-06    .40235E-03
  26  Prefactor     17.557        16.472       -.10941E-06   -.68076E-05
  27  Prefactor     .10000E-03    9.7159        .11170E-06** at limit **
  28  Normalizat    .77657        .19180       -.19227E-07   -.12031E-04
  29  Prefactor     .91469        .13939       -.25386E-06   -.25230E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 39.3618
  Prefactor  = 0.000100001
  norm       = 1.25286
  Prefactor  = 3.4845
  Prefactor  = 12.0088
  Prefactor  = 0.000101856
  norm       = 39.869
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 52.3591
  Prefactor  = 6.863
  norm       = 0.903652
  norm       = 0.0001
  Prefactor  = 28.0825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.4242
  Prefactor  = 1.59089
  Prefactor  = 3.4505
  norm       = 0.0001
  norm       = 14.4378
  Prefactor  = 17.557
  Prefactor  = 0.0001
  Normalizat = 0.776571
  Prefactor  = 0.914692
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.131     FROM HESSE     STATUS=OK           557 CALLS     4301 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8997        .14237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.362        44.357        .63903E-04   -1.4452    
   3  Prefactor     .10000E-03    13.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2529        1.1875        .56604E-04   -1.5484    
   5  Prefactor     3.4845        64.995        .21717E-03   -1.5335    
   6  Prefactor     12.009        9.7883        .11560E-03   -1.5015    
   7  Prefactor     .10186E-03    77.744        .38063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          39.869        15.497        .63482E-04   -1.4444    
   9  Prefactor     .10000E-03    43.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    361.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     52.359        33.628        .55424E-04   -1.4260    
  12  Prefactor     6.8630        9.2338        .15317E-03   -1.5184    
  13  norm          .90365        .88498        .67606E-03   -1.5518    
  14  norm          .10000E-03    2.9509        .12354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.082        40.362        .75590E-04   -1.4648    
  16  Prefactor     .10000E-03    31.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.2776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    59.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.936        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    13.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.424        49.124        .10198E-03   -1.4922    
  22  Prefactor     1.5909        4.2285        .23109E-03   -1.5456    
  23  Prefactor     3.4505        152.76        .21788E-03   -1.5336    
  24  norm          .10000E-03    .55385        .73537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.438        6.6463        .10541E-03   -1.4948    
  26  Prefactor     17.557        16.474        .95592E-04   -1.4870    
  27  Prefactor     .10000E-03    9.9703        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .77657        .22170        .28124E-03   -1.0094    
  29  Prefactor     .91469        .16219        .20382E-03   -.95630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29533e-08
Minuit parameter uncertainties:
  1  2.31745e-06
  2  44.3946
  3  0.000210187
  4  1.18748
  5  30.1358
  6  9.78957
  7  0.0240553
  8  15.4985
  9  3.26483e-05
  10  0.00232304
  11  33.6403
  12  9.23575
  13  0.884995
  14  1.02601e-05
  15  40.401
  16  3.58757e-05
  17  1.091e-05
  18  1.59639e-05
  19  7.16895e-05
  20  2.81964e-05
  21  49.2529
  22  4.22925
  23  46.0428
  24  1.20377e-05
  25  6.64661
  26  16.4784
  27  7.34978e-06
  28  0.221957
  29  0.162272
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  1.026e-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:  9.147e-01  1.623e-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:  7.766e-01  2.220e-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.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/820951/likelihoodResults_654048001_654307201_4FGL_J2323.6-0617_daily_bin1600.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) = 5460.13246895
delta logL = -0.00161294519057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5460.130856
delta logL = 3.45607986674e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2382       1.0000          .0000       5.0000    
     3 'Normalizat'    .77657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91469       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=   5460.131     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      242 TOTAL
                     EDM=   .66E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0097        .12354E-02** at limit **
   2  alpha         2.1875        3.3823        .16576        .30177E-08
   3  Normalizat    .77657        .20419        .28124E-03   -.16776E-04
   4  Prefactor     .91469        .16069        .20382E-03   -.24654E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.18753
  Normalizat = 0.77657
  Prefactor  = 0.914692
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.131     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .95E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9534        .24708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1875        2.6350        .66305E-02   -.12532    
   3  Normalizat    .77657        .20435        .11250E-04   -1.0094    
   4  Prefactor     .91469        .16082        .81529E-05   -.95630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4817e-13
Minuit parameter uncertainties:
  1  6.38189e-07
  2  318.594
  3  0.204552
  4  0.1609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/820951': 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) = 5460.13085599
delta logL = 1.26810846268e-08

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  6.382e-07  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.188e+00  3.186e+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:  9.147e-01  1.609e-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:  7.766e-01  2.046e-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/820951/cmap_HighResolution_654048001_654307201_4FGL_J2323.6-0617_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-05', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2021-09-29 15:18:04.493205', job_id='820951', GAL2='0.91', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632953884.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1600' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:18:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 820951: <4FGL_J2323.6-0617_daily_bin1600> in cluster <slac> Done

Job <4FGL_J2323.6-0617_daily_bin1600> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 15:06:09 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:06:12 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:06:12 2021
Terminated at Wed Sep 29 15:18:05 2021
Results reported at Wed Sep 29 15:18:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin1600 350.916 -6.2953 654048001 654307201 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 :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            716 sec.

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

