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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin653
RA = 350.916, Dec = -6.2953
tmin = 408585601, tmax = 408844801
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='817481', job_status='RUN', time_executed='2021-09-29 14:55:32.703579', time_epoch_executed='1632952532.7' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817481

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817481/ft1_4FGL_J2323.6-0617_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817481/ft2_4FGL_J2323.6-0617_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817481/ft1_4FGL_J2323.6-0617_daily_bin653.fits outfile=/scratch/kocevski/817481/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin653.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=408585601.0 tmax=408844801.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.29
user 4.04
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817481/ft1_filtered_4FGL_J2323.6-0617_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/817481/ft2_4FGL_J2323.6-0617_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/817481/ltcube_408585601_408844801_4FGL_J2323.6-0617_daily_bin653.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/817481/ft2_4FGL_J2323.6-0617_daily_bin653.fits
.....................!
real 12.24
user 11.85
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817481/ft1_filtered_4FGL_J2323.6-0617_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/817481/ft2_4FGL_J2323.6-0617_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/817481/ltcube_408585601_408844801_4FGL_J2323.6-0617_daily_bin653.fits outfile=/scratch/kocevski/817481/expmap_408585601_408844801_4FGL_J2323.6-0617_daily_bin653.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/817481/ltcube_408585601_408844801_4FGL_J2323.6-0617_daily_bin653.fits
.....................!
real 190.71
user 185.39
sys 4.85

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/817481/ft1_filtered_4FGL_J2323.6-0617_daily_bin653.fits scfile=/scratch/kocevski/817481/ft2_4FGL_J2323.6-0617_daily_bin653.fits outfile=/scratch/kocevski/817481/cmap_408585601_408844801_4FGL_J2323.6-0617_daily_bin653.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/817481/ft1_filtered_4FGL_J2323.6-0617_daily_bin653.fits scfile=/scratch/kocevski/817481/ft2_4FGL_J2323.6-0617_daily_bin653.fits outfile=/scratch/kocevski/817481/cmap_HighResolution_408585601_408844801_4FGL_J2323.6-0617_daily_bin653.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/817481/ft1_filtered_4FGL_J2323.6-0617_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/817481/ft2_4FGL_J2323.6-0617_daily_bin653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/817481/Model_4FGL_J2323.6-0617_daily_bin653.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/817481/ft1_filtered_4FGL_J2323.6-0617_daily_bin653.fits.......................!
real 25.45
user 24.12
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.228       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.305       1.0000         .10000E-03   10000.    
     4 'norm      '    .10592E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.958       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11467E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.033       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .28654       1.0000         .10000E-03   10000.    
    14 'norm      '    .14927E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    71.540       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.415       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .42254E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11805E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10462E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    32.579       1.0000         .10000E-03   10000.    
    26 'Prefactor '    23.232       1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.651       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1878       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77129       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=   1593.941     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3771 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5886        .87815E-07** at limit **
   2  Prefactor     46.276        73.555        .49819E-06    .34433E-04
   3  Prefactor     23.278        27.671        .56085E-05    .36217E-03
   4  norm          .10000E-03    1.8119       -.24259E-05** at limit **
   5  Prefactor     .10000E-03    57.073       -.81138E-06** at limit **
   6  Prefactor     15.927        30.639        .63190E-06    .41244E-04
   7  Prefactor     .10000E-03    24.398       -.22655E-06** at limit **
   8  norm          .10000E-03    14.229        .44260E-07** at limit **
   9  Prefactor     .10000E-03    35.525        .21010E-06** at limit **
  10  Prefactor     15.003        111.96       -.11075E-05    .43784E-05
  11  Prefactor     .10000E-03    46.190        .28596E-06** at limit **
  12  Prefactor     .10000E-03    16.418       -.73772E-06** at limit **
  13  norm          .28849        4.2737        .41087E-06   -.16873E-03
  14  norm          .10000E-03    38.464       -.17402E-05** at limit **
  15  Prefactor     71.770        214.28        .11928E-05    .35386E-04
  16  Prefactor     .10000E-03    75.420        .82538E-06** at limit **
  17  Prefactor     69.455        46.256        .49375E-06    .63484E-04
  18  Prefactor     .10000E-03    302.01       -.86691E-06** at limit **
  19  Prefactor     .10000E-03    22.634        .86185E-06** at limit **
  20  norm          .10000E-03    33.831        .27044E-06** at limit **
  21  Prefactor     .10000E-03    81.091       -.17551E-06** at limit **
  22  Prefactor     .10000E-03    8.6691        .22862E-06** at limit **
  23  Prefactor     .10000E-03    81.770        .10165E-05** at limit **
  24  norm          .10000E-03    2.1391       -.39000E-06** at limit **
  25  norm          32.617        18.924        .48004E-06    .14729E-03
  26  Prefactor     23.227        47.178        .91126E-07   -.95081E-05
  27  Prefactor     14.668        16.985        .14324E-06   -.13936E-04
  28  Normalizat    1.1862        .44622       -.15182E-05    .16265E-03
  29  Prefactor     .77245        .31691        .53132E-06    .12733E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 46.2761
  Prefactor  = 23.2778
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 15.9271
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.288495
  norm       = 0.000100002
  Prefactor  = 71.7704
  Prefactor  = 0.0001
  Prefactor  = 69.4549
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 32.6169
  Prefactor  = 23.2272
  Prefactor  = 14.668
  Normalizat = 1.18616
  Prefactor  = 0.772452
 **********
 **   18 **HESSE 
 **********

 FCN=   1593.941     FROM HESSE     STATUS=OK           545 CALLS     4316 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5886        .10742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     46.276        73.509        .29486E-03   -1.4346    
   3  Prefactor     23.278        30.006        .82974E-04   -1.4743    
   4  norm          .10000E-03    2.6485        .98369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    57.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.927        30.684        .10026E-03   -1.4910    
   7  Prefactor     .10000E-03    24.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    14.231        .14712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.003        112.95        .10330E-03   -1.4933    
  11  Prefactor     .10000E-03    46.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.383        .15770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .28849        7.3701        .14890E-02   -1.5601    
  14  norm          .10000E-03    39.291        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     71.770        213.95        .23732E-03   -1.4012    
  16  Prefactor     .10000E-03    75.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     69.455        46.288        .24090E-03   -1.4039    
  18  Prefactor     .10000E-03    301.96        .21238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    33.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    81.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.6861        .11476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    81.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.7552        .93899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          32.617        15.877        .70202E-04   -1.4565    
  26  Prefactor     23.227        47.228        .83104E-04   -1.4744    
  27  Prefactor     14.668        17.196        .10464E-03   -1.4942    
  28  Normalizat    1.1862        .53647        .28253E-03   -.87032    
  29  Prefactor     .77245        .37854        .25692E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3483e-09
Minuit parameter uncertainties:
  1  1.40325e-05
  2  73.6538
  3  30.0258
  4  0.000119735
  5  0.000401425
  6  30.7141
  7  8.41216e-05
  8  1.04773e-05
  9  0.000178263
  10  82.5473
  11  3.55692e-05
  12  0.000139323
  13  2.91621
  14  0.000617014
  15  216.31
  16  0.000345351
  17  46.3122
  18  0.00170372
  19  0.000185026
  20  0.000202191
  21  2.76915e-05
  22  4.12968e-05
  23  0.000657859
  24  1.0107e-05
  25  15.879
  26  47.3041
  27  17.2013
  28  0.538984
  29  0.379821
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  6.170e-04  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.725e-01  3.798e-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.186e+00  5.390e-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: 2.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/817481/likelihoodResults_408585601_408844801_4FGL_J2323.6-0617_daily_bin653.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1593.94077441
delta logL = -0.00012135017846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1593.94065489
delta logL = -1.82385269909e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33206E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4799       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77253       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1593.941     FROM MIGRAD    STATUS=FAILED        86 CALLS      225 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10736E-03    193.97        .34505E-02** at limit **
   2  alpha         2.8138        3.2797        .82307E-01   -.72516E-06
   3  Normalizat    1.1862        .48892        .28254E-03    .64767E-04
   4  Prefactor     .77245        .36898        .25692E-03    .63533E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1593.941     FROM SIMPLEX   STATUS=UNCHANGED    116 CALLS      341 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10736E-03    193.97        .12591E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8138        3.2797        .25665E-03    .12585    
   3  Normalizat    1.1862        .48892        .63594E-04   -.87032    
   4  Prefactor     .77245        .36898        .99622E-04   -1.0075    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1593.941     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      371 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    81.805        .69010E-03** at limit **
   2  alpha         2.8975        3.1163        .32923E-02    .25208E-07
   3  Normalizat    1.1862        .48928        .56508E-04   -.92356E-04
   4  Prefactor     .77245        .36936        .10277E-04   -.90492E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  alpha      = 2.89753
  Normalizat = 1.18615
  Prefactor  = 0.772454
 **********
 **   18 **HESSE 
 **********

 FCN=   1593.941     FROM HESSE     STATUS=OK            23 CALLS      394 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    81.725        .13802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8975        3.5356        .65845E-03    .15969    
   3  Normalizat    1.1862        .48961        .11302E-04   -.87032    
   4  Prefactor     .77245        .36965        .20553E-05   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19461e-10
Minuit parameter uncertainties:
  1  0.00109419
  2  538.91
  3  0.491518
  4  0.370841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817481': 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) = 1593.9406524
delta logL = 6.60748582959e-07

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  1.094e-03  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.898e+00  5.389e+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:  7.725e-01  3.708e-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.186e+00  4.915e-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/817481/cmap_HighResolution_408585601_408844801_4FGL_J2323.6-0617_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.09e-05', job_status='DONE', photon_flux_upper_limit='2.33e-07', time_completed='2021-09-29 15:02:43.926420', job_id='817481', GAL2='0.77', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1632952963.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='6.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='653' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:02:43 PDT 2021


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

Job <4FGL_J2323.6-0617_daily_bin653> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:55:14 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:55:16 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:55:16 2021
Terminated at Wed Sep 29 15:02:44 2021
Results reported at Wed Sep 29 15:02:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin653 350.916 -6.2953 408585601 408844801 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 :                                   430.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   448 sec.
    Turnaround time :                            450 sec.

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

