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


Performing analysis on: 4FGL_J2323.6-0617_daily_bin211
RA = 350.916, Dec = -6.2953
tmin = 294019201, tmax = 294278401
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='814669', job_status='RUN', time_executed='2021-09-29 14:48:02.484169', time_epoch_executed='1632952082.48' WHERE source_name='4FGL J2323.6-0617' and cadence='daily' and bin_id='211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814669

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814669/ft1_4FGL_J2323.6-0617_daily_bin211.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814669/ft2_4FGL_J2323.6-0617_daily_bin211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814669/ft1_4FGL_J2323.6-0617_daily_bin211.fits outfile=/scratch/kocevski/814669/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin211.fits ra=350.916 dec=-6.2953 rad=12.0 tmin=294019201.0 tmax=294278401.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.13
user 2.92
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/814669/ft2_4FGL_J2323.6-0617_daily_bin211.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/814669/ft1_filteredMKT_4FGL_J2323.6-0617_daily_bin211.fits evtable="EVENTS" outfile="/scratch/kocevski/814669/ft1_filtered_4FGL_J2323.6-0617_daily_bin211.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/814669/ft1_filtered_4FGL_J2323.6-0617_daily_bin211.fits" evtable="EVENTS" scfile=/scratch/kocevski/814669/ft2_4FGL_J2323.6-0617_daily_bin211.fits sctable="SC_DATA" outfile=/scratch/kocevski/814669/ltcube_294019201_294278401_4FGL_J2323.6-0617_daily_bin211.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/814669/ft2_4FGL_J2323.6-0617_daily_bin211.fits
.....................!
real 11.95
user 11.61
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814669/ft1_filtered_4FGL_J2323.6-0617_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/814669/ft2_4FGL_J2323.6-0617_daily_bin211.fits sctable="SC_DATA" expcube=/scratch/kocevski/814669/ltcube_294019201_294278401_4FGL_J2323.6-0617_daily_bin211.fits outfile=/scratch/kocevski/814669/expmap_294019201_294278401_4FGL_J2323.6-0617_daily_bin211.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/814669/ltcube_294019201_294278401_4FGL_J2323.6-0617_daily_bin211.fits
.....................!
real 191.55
user 186.05
sys 5.14

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/814669/ft1_filtered_4FGL_J2323.6-0617_daily_bin211.fits scfile=/scratch/kocevski/814669/ft2_4FGL_J2323.6-0617_daily_bin211.fits outfile=/scratch/kocevski/814669/cmap_294019201_294278401_4FGL_J2323.6-0617_daily_bin211.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814669/ft1_filtered_4FGL_J2323.6-0617_daily_bin211.fits scfile=/scratch/kocevski/814669/ft2_4FGL_J2323.6-0617_daily_bin211.fits outfile=/scratch/kocevski/814669/cmap_HighResolution_294019201_294278401_4FGL_J2323.6-0617_daily_bin211.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/814669/ft1_filtered_4FGL_J2323.6-0617_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/814669/ft2_4FGL_J2323.6-0617_daily_bin211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/814669/Model_4FGL_J2323.6-0617_daily_bin211.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/814669/ft1_filtered_4FGL_J2323.6-0617_daily_bin211.fits.....................!
real 51.47
user 50.14
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.172       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.069       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6085       1.0000         .10000E-03   10000.    
    14 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.529       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18885E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.077       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .38946E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.722       1.0000         .10000E-03   10000.    
    24 'norm      '    1.5470       1.0000         .10000E-03   10000.    
    25 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3123       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77782       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=   5287.381     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3751 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.532       -.91485E-05** at limit **
   2  Prefactor     .10000E-03    36.520       -.38056E-04** at limit **
   3  Prefactor     .10000E-03    7.3368       -.33517E-05** at limit **
   4  norm          .10000E-03    .45798       -.17204E-06** at limit **
   5  Prefactor     .10000E-03    73.053        .54416E-04** at limit **
   6  Prefactor     14.169        11.941       -.29727E-06   -.33962E-03
   7  Prefactor     .10000E-03    7.4716        .41846E-05** at limit **
   8  norm          .10000E-03    47.244       -.17377E-05** at limit **
   9  Prefactor     18.072        23.354        .49628E-06    .22363E-05
  10  Prefactor     .10000E-03    24.776        .80999E-05** at limit **
  11  Prefactor     .10000E-03    13.347       -.60424E-05** at limit **
  12  Prefactor     .10000E-03    8.9809       -.29814E-05** at limit **
  13  norm          1.6087        1.0026        .43557E-07   -.12710E-03
  14  norm          .10002E-03    3.8397        .12229E-05** at limit **
  15  Prefactor     19.522        68.582       -.14494E-04    .73711E-05
  16  Prefactor     .10000E-03    83.855        .44496E-04** at limit **
  17  Prefactor     18.065        21.302        .42491E-07   -.23363E-03
  18  Prefactor     .10000E-03    131.94       -.14246E-03** at limit **
  19  Prefactor     .10005E-03    9.0300       -.90764E-06** at limit **
  20  norm          .10000E-03    12.050        .95276E-05** at limit **
  21  Prefactor     .10000E-03    93.643        .17681E-04** at limit **
  22  Prefactor     .10000E-03    2.3743        .18964E-07** at limit **
  23  Prefactor     27.731        46.581        .86494E-05    .82068E-05
  24  norm          1.5476        .67749       -.34530E-08   -.27834E-03
  25  norm          .10000E-03    4.9705        .23011E-07** at limit **
  26  Prefactor     .10000E-03    23.696        .11818E-04** at limit **
  27  Prefactor     .10000E-03    3.3000        .34104E-07** at limit **
  28  Normalizat    1.3121        .21384       -.35425E-06   -.23034E-03
  29  Prefactor     .77802        .15832       -.11778E-06   -.23281E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 14.1692
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.0721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.60873
  norm       = 0.000100016
  Prefactor  = 19.5216
  Prefactor  = 0.0001
  Prefactor  = 18.0651
  Prefactor  = 0.0001
  Prefactor  = 0.000100049
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.7311
  norm       = 1.5476
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31207
  Prefactor  = 0.778024
 **********
 **   18 **HESSE 
 **********

 FCN=   5287.381     FROM HESSE     STATUS=OK           539 CALLS     4290 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.892        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.3656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .60497        .95165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    74.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.169        11.896        .10640E-03   -1.4955    
   7  Prefactor     .10000E-03    7.5106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    48.888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.072        23.343        .94221E-04   -1.4857    
  10  Prefactor     .10000E-03    24.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.1627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6087        .98830        .54501E-04   -1.5454    
  14  norm          .10002E-03    12.364        .27448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.522        68.172        .90633E-04   -1.4824    
  16  Prefactor     .10000E-03    83.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.065        21.353        .94202E-04   -1.4858    
  18  Prefactor     .10000E-03    132.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10005E-03    43.010        .41104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    12.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    94.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.4024        .10924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.731        46.526        .76088E-04   -1.4654    
  24  norm          1.5476        .67538        .38208E-04   -1.5459    
  25  norm          .10000E-03    5.0045        .15800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    24.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.3260        .12898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3121        .25503        .24750E-03   -.83207    
  29  Prefactor     .77802        .18862        .23635E-03   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79274e-09
Minuit parameter uncertainties:
  1  0.000139642
  2  6.05117e-05
  3  2.41083e-05
  4  1.32153e-05
  5  0.000680323
  6  11.8985
  7  1.0216e-05
  8  0.000131036
  9  23.3545
  10  4.16914e-06
  11  1.72286e-06
  12  4.46657e-06
  13  0.988314
  14  0.000878073
  15  68.4461
  16  0.000110208
  17  21.3617
  18  0.000105153
  19  0.0029127
  20  1.08623e-05
  21  0.000128782
  22  2.45769e-06
  23  46.5872
  24  0.675385
  25  3.29812e-07
  26  0.000100415
  27  5.32774e-06
  28  0.255276
  29  0.188776
Done.

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

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.000e-04  8.781e-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.780e-01  1.888e-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.312e+00  2.553e-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.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814669/likelihoodResults_294019201_294278401_4FGL_J2323.6-0617_daily_bin211.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) = 5287.38171322
delta logL = -0.000383132361094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5287.38133563
delta logL = -5.54478356207e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11867E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3282       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77866       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=   5287.381     FROM MIGRAD    STATUS=FAILED       104 CALLS      272 TOTAL
                     EDM=   .36E-03    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12089E-03    6451.9        .22987E-02** at limit **
   2  alpha         3.1211        .18477        .16510        .50729E-05
   3  Normalizat    1.3121        .16320        .24750E-03    .49095E-03
   4  Prefactor     .77802        .11974        .23635E-03    .33445E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5287.379     FROM SIMPLEX   STATUS=PROGRESS     153 CALLS      425 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15019        6451.9        .34389E-03   -1.5630    
   2  alpha         3.1211        .18477        .13766E-06    .25109    
   3  Normalizat    1.3121        .16320        .36970E-06   -.83207    
   4  Prefactor     .77802        .11974        .92811E-07   -1.0054    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5287.378     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      483 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19602        15.420        .91950E-03    .46946E-04
   2  alpha         2.9900        3.9021        .66040E-01    .47253E-05
   3  Normalizat    1.3098        .24847        .49500E-04   -.41065E-04
   4  Prefactor     .77842        .18767        .47270E-04    .19409E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.196016
  alpha      = 2.99
  Normalizat = 1.3098
  Prefactor  = 0.778415
 **********
 **   18 **HESSE 
 **********

 FCN=   5287.378     FROM HESSE     STATUS=OK            27 CALLS      510 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19602        8.1434        .36780E-04   -1.5619    
   2  alpha         2.9900        3.9714        .26416E-02    .19728    
   3  Normalizat    1.3098        .24832        .99001E-05   -.83274    
   4  Prefactor     .77842        .18773        .94539E-05   -1.0053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79616e-10
Minuit parameter uncertainties:
  1  2.52657
  2  3.85759
  3  0.248545
  4  0.187881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814669': 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) = 5287.37792175
delta logL = 0.00340834188137

Extracting fit parameters...

4FGL J2323.6-0617
   Spectrum: LogParabola
388         norm:  1.960e-01  2.527e+00  1.000e-04  1.000e+04 ( 1.000e-12)
389        alpha:  2.990e+00  3.858e+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.784e-01  1.879e-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.310e+00  2.485e-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/814669/cmap_HighResolution_294019201_294278401_4FGL_J2323.6-0617_daily_bin211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-05', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-09-29 14:59:44.221815', job_id='814669', GAL2='0.78', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632952784.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='3.41e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='211' AND source_name='4FGL J2323.6-0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:59:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 814669: <4FGL_J2323.6-0617_daily_bin211> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.6-0617_daily_bin211 350.916 -6.2953 294019201 294278401 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 :                                   696.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            828 sec.

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

