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


Performing analysis on: 4FGL_J2329.3-4733_daily_bin1404
RA = 352.339, Dec = -47.5558
tmin = 603244801, tmax = 603504001
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='951887', job_status='RUN', time_executed='2021-09-29 21:06:11.271660', time_epoch_executed='1632974771.27' WHERE source_name='4FGL J2329.3-4733' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/951887

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/951887/ft1_4FGL_J2329.3-4733_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/951887/ft2_4FGL_J2329.3-4733_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/951887/ft1_4FGL_J2329.3-4733_daily_bin1404.fits outfile=/scratch/kocevski/951887/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1404.fits ra=352.339 dec=-47.5558 rad=12.0 tmin=603244801.0 tmax=603504001.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 2.89
user 2.68
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/951887/ft2_4FGL_J2329.3-4733_daily_bin1404.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/951887/ft2_4FGL_J2329.3-4733_daily_bin1404.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/951887/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1404.fits evtable="EVENTS" outfile="/scratch/kocevski/951887/ft1_filtered_4FGL_J2329.3-4733_daily_bin1404.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.47
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/951887/ft1_filtered_4FGL_J2329.3-4733_daily_bin1404.fits" evtable="EVENTS" scfile=/scratch/kocevski/951887/ft2_4FGL_J2329.3-4733_daily_bin1404.fits sctable="SC_DATA" outfile=/scratch/kocevski/951887/ltcube_603244801_603504001_4FGL_J2329.3-4733_daily_bin1404.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/951887/ft2_4FGL_J2329.3-4733_daily_bin1404.fits
.....................!
real 12.33
user 11.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/951887/ft1_filtered_4FGL_J2329.3-4733_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/951887/ft2_4FGL_J2329.3-4733_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/951887/ltcube_603244801_603504001_4FGL_J2329.3-4733_daily_bin1404.fits outfile=/scratch/kocevski/951887/expmap_603244801_603504001_4FGL_J2329.3-4733_daily_bin1404.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/951887/ltcube_603244801_603504001_4FGL_J2329.3-4733_daily_bin1404.fits
.....................!
real 190.43
user 185.01
sys 5.11

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 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J2329.3-4733 @ 352.339 -47.5558

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/951887/ft1_filtered_4FGL_J2329.3-4733_daily_bin1404.fits scfile=/scratch/kocevski/951887/ft2_4FGL_J2329.3-4733_daily_bin1404.fits outfile=/scratch/kocevski/951887/cmap_603244801_603504001_4FGL_J2329.3-4733_daily_bin1404.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=352.339 yref=-47.5558 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/951887/ft1_filtered_4FGL_J2329.3-4733_daily_bin1404.fits scfile=/scratch/kocevski/951887/ft2_4FGL_J2329.3-4733_daily_bin1404.fits outfile=/scratch/kocevski/951887/cmap_HighResolution_603244801_603504001_4FGL_J2329.3-4733_daily_bin1404.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=352.339 yref=-47.5558 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/951887/ft1_filtered_4FGL_J2329.3-4733_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/951887/ft2_4FGL_J2329.3-4733_daily_bin1404.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/951887/Model_4FGL_J2329.3-4733_daily_bin1404.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/951887/ft1_filtered_4FGL_J2329.3-4733_daily_bin1404.fits.....................!
real 29.23
user 28.00
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/951887/ft1_filtered_4FGL_J2329.3-4733_daily_bin1404.fits', '/scratch/kocevski/951887/ft2_4FGL_J2329.3-4733_daily_bin1404.fits', expMap='/scratch/kocevski/951887/expmap_603244801_603504001_4FGL_J2329.3-4733_daily_bin1404.fits', expCube='/scratch/kocevski/951887/ltcube_603244801_603504001_4FGL_J2329.3-4733_daily_bin1404.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/951887/Model_4FGL_J2329.3-4733_daily_bin1404.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2329.3-4733'

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  3.273e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  2.507e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
462        Scale:  1.077e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/951887/ft1_filtered_4FGL_J2329.3-4733_daily_bin1404.fits
Spacecraft file(s): /scratch/kocevski/951887/ft2_4FGL_J2329.3-4733_daily_bin1404.fits
Exposure map: /scratch/kocevski/951887/expmap_603244801_603504001_4FGL_J2329.3-4733_daily_bin1404.fits
Exposure cube: /scratch/kocevski/951887/ltcube_603244801_603504001_4FGL_J2329.3-4733_daily_bin1404.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/951887/Model_4FGL_J2329.3-4733_daily_bin1404.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) = 3165.66954171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.302       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17902E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10474E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7980       1.0000         .10000E-03   10000.    
     9 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3987       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .48939E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10836E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2460       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.2188       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.7153       1.0000         .10000E-03   10000.    
    25 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.639       1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    1.0378       1.0000         .10000E-03   10000.    
    33 'Prefactor '    10.245       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.1042       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.1053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3165.667     FROM MIGRAD    STATUS=CONVERGED   1028 CALLS     5345 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.257        113.31       -.22531E-05   -.71024E-04
   2  Prefactor     .10000E-03    92.211        .34170E-05** at limit **
   3  Prefactor     .10000E-03    42.209        .46501E-06** at limit **
   4  Prefactor     .10000E-03    7.9288        .19101E-06** at limit **
   5  Prefactor     .10000E-03    5.6355        .10779E-06** at limit **
   6  Prefactor     .10000E-03    58.122       -.23394E-05** at limit **
   7  Prefactor     .10000E-03    2.3783        .29775E-07** at limit **
   8  Prefactor     5.7992        8.8775        .28123E-05   -.15674E-03
   9  norm          .10000E-03    9.1829        .12329E-06** at limit **
  10  Prefactor     8.3911        13.542        .63974E-07    .11766E-04
  11  Prefactor     .10001E-03    178.62        .20702E-05** at limit **
  12  Prefactor     .10000E-03    25.951       -.12988E-06** at limit **
  13  Prefactor     .10000E-03    18.643        .32871E-06** at limit **
  14  Prefactor     .10322E-03    15.999       -.23344E-05** at limit **
  15  Prefactor     .10000E-03    58.638       -.78429E-06** at limit **
  16  Prefactor     7.2669        17.789        .19454E-06    .15350E-04
  17  Prefactor     .10000E-03    26.005       -.25643E-06** at limit **
  18  Prefactor     .10000E-03    34.685        .79339E-06** at limit **
  19  norm          .10000E-03    16.067       -.15985E-06** at limit **
  20  norm          .10000E-03    3.4360        .68591E-08** at limit **
  21  norm          .10000E-03    5.3084       -.52890E-06** at limit **
  22  norm          .10000E-03    8.5651       -.17908E-06** at limit **
  23  Prefactor     9.2185        9.1379        .89697E-08    .51913E-05
  24  Prefactor     3.6033        77.757        .94707E-05    .14083E-03
  25  norm          .10000E-03    4.4637       -.22098E-05** at limit **
  26  Prefactor     21.643        21.256        .70434E-08    .66645E-05
  27  norm          .10000E-03    1.1295        .11427E-06** at limit **
  28  norm          .10000E-03    1.5863       -.58990E-07** at limit **
  29  Prefactor     .10000E-03    21.149        .23455E-06** at limit **
  30  Prefactor     .10000E-03    5.3016        .15219E-06** at limit **
  31  Prefactor     .10000E-03    40.066        .69459E-06** at limit **
  32  norm          1.1072        27.817        .16215E-06   -.18828E-04
  33  Prefactor     10.237        8.2862       -.24176E-08   -.40377E-04
  34  Prefactor     .10000E-03    3.2510        .49758E-07** at limit **
  35  Normalizat    1.1043        .26431        .72524E-06    .10559E-03
  36  Prefactor     1.1053        .28049       -.10192E-05    .14316E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.2571
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 5.79916
  norm       = 0.0001
  Prefactor  = 8.39113
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103224
  Prefactor  = 0.000100002
  Prefactor  = 7.26687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.21851
  Prefactor  = 3.60328
  norm       = 0.0001
  Prefactor  = 21.6429
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10723
  Prefactor  = 10.237
  Prefactor  = 0.0001
  Normalizat = 1.10431
  Prefactor  = 1.10527
 **********
 **   18 **HESSE 
 **********

 FCN=   3165.667     FROM HESSE     STATUS=OK           805 CALLS     6150 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.257        113.77        .46271E-04   -1.3971    
   2  Prefactor     .10000E-03    94.971        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.9711        .15473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.6944        .13042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    58.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3798        .84741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7992        8.5985        .83397E-03   -1.5226    
   9  norm          .10000E-03    9.1860        .16657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.3911        13.538        .13833E-03   -1.5129    
  11  Prefactor     .10001E-03    179.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10322E-03    19.274        .73925E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    58.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.2669        17.775        .14901E-03   -1.5169    
  17  Prefactor     .10000E-03    26.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    16.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.4367        .10186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.3567        .12652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.5837        .16091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.2185        9.1323        .13200E-03   -1.5101    
  24  Prefactor     3.6033        78.019        .20950E-03   -1.5328    
  25  norm          .10000E-03    6.9319        .21124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.643        21.291        .86105E-04   -1.4777    
  27  norm          .10000E-03    1.1658        .11629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.5871        .69209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    21.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    5.5224        .25211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    40.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          1.1072        148.56        .52614E-02   -1.5498    
  33  Prefactor     10.237        8.9327        .12473E-03   -1.5068    
  34  Prefactor     .10000E-03    3.2729        .99022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.1043        .33291        .24263E-03   -.89614    
  36  Prefactor     1.1053        .35031        .26806E-03   -.89298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05733e-08
Minuit parameter uncertainties:
  1  114.102
  2  0.00121288
  3  0.000146179
  4  2.61182e-05
  5  2.17855e-07
  6  0.00102079
  7  1.18821e-06
  8  8.60031
  9  3.62203e-05
  10  13.543
  11  0.00271095
  12  0.000113791
  13  0.000127828
  14  0.0157697
  15  0.000614595
  16  17.7881
  17  0.000140487
  18  0.000255374
  19  7.0119e-05
  20  7.45243e-07
  21  2.20105e-05
  22  5.43651e-05
  23  9.13369
  24  33.5829
  25  5.25553e-05
  26  21.2986
  27  1.79617e-06
  28  5.91228e-07
  29  4.99783e-06
  30  1.03645e-05
  31  0.000217129
  32  25.7152
  33  8.93383
  34  5.17632e-06
  35  0.333542
  36  0.35104
Done.

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

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  2.164e+01  2.130e+01  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  2.507e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
462        Scale:  1.077e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.105e+00  3.510e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.104e+00  3.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.94
Ra Dec: 352.339 -47.556
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 5.57e-08 +/- 5.47e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.58e-05

TS (Fixed Index): 2.94
Ra Dec: 352.339 -47.556
Photon Flux Upper Limit: 1.86e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/951887/likelihoodResults_603244801_603504001_4FGL_J2329.3-4733_daily_bin1404.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) = 3165.65150642
delta logL = 0.0155131765841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3165.64510323
delta logL = 0.0219163593238

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.344       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3070       1.0000          .0000       10.000    
     3 'Normalizat'    1.1177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0965       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+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=   3165.645     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      282 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.333        26.388        .81188E-04    .38298E-04
   2  Index         2.3064        .97859        .89696E-02    .14975E-03
   3  Normalizat    1.1185        .32057        .24132E-03   -.59830E-04
   4  Prefactor     1.0959        .34816        .26909E-03    .60626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.333
  Index      = 2.30639
  Normalizat = 1.1185
  Prefactor  = 1.0959
 **********
 **   18 **HESSE 
 **********

 FCN=   3165.645     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.333        25.897        .16238E-04   -1.4721    
   2  Index         2.3064        .95903        .17939E-02   -.56892    
   3  Normalizat    1.1185        .32054        .96529E-05   -.89160    
   4  Prefactor     1.0959        .34842        .10764E-04   -.89598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60645e-10
Minuit parameter uncertainties:
  1  25.9092
  2  0.967511
  3  0.321101
  4  0.349144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/951887': 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) = 3165.64509986
delta logL = 0.0219197304809

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  2.433e+01  2.591e+01  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  2.306e+00  9.675e-01  0.000e+00  1.000e+01 (-1.000e+00)
462        Scale:  1.077e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.096e+00  3.491e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.118e+00  3.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.00
Ra Dec: 352.339 -47.556
Photon Index (Free Index): 2.31 +/- 0.97
Photon Flux (Free Index): 4.48e-08 +/- 6.77e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.75e-05

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/951887/cmap_HighResolution_603244801_603504001_4FGL_J2329.3-4733_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', comment='SUCCESS', photon_flux='5.57e-08', energy_flux2='1.68e-05', photon_flux_error='5.47e-08', dlogl='2.19e-02', energy_flux='1.60e-05', photon_flux2='4.48e-08', job_status='DONE', time_completed='2021-09-29 21:18:07.170020', photon_index_error2='0.97', photon_index2='2.31', ts='2.94', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.86e-07', energy_flux_error2='1.75e-05', EG='1.10', time_epoch_completed='1632975487.17', return_code='0', job_id='951887', GAL2='1.10', EG2='1.12', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='6.77e-08', ts2='3.00', photon_index='2.51' WHERE bin_id='1404' AND source_name='4FGL J2329.3-4733' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:18:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 951887: <4FGL_J2329.3-4733_daily_bin1404> in cluster <slac> Done

Job <4FGL_J2329.3-4733_daily_bin1404> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 21:05:40 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:05:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 21:05:41 2021
Terminated at Wed Sep 29 21:18:07 2021
Results reported at Wed Sep 29 21:18:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4733_daily_bin1404 352.339 -47.5558 603244801 603504001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2329.3-4733 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   682.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            747 sec.

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

