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


Performing analysis on: 4FGL_J2329.3-4733_daily_bin1163
RA = 352.339, Dec = -47.5558
tmin = 540777601, tmax = 541036801
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='950523', job_status='RUN', time_executed='2021-09-29 21:02:12.048111', time_epoch_executed='1632974532.05' WHERE source_name='4FGL J2329.3-4733' and cadence='daily' and bin_id='1163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950523

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950523/ft1_4FGL_J2329.3-4733_daily_bin1163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950523/ft2_4FGL_J2329.3-4733_daily_bin1163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950523/ft1_4FGL_J2329.3-4733_daily_bin1163.fits outfile=/scratch/kocevski/950523/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1163.fits ra=352.339 dec=-47.5558 rad=12.0 tmin=540777601.0 tmax=541036801.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.66
user 3.45
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950523/ft2_4FGL_J2329.3-4733_daily_bin1163.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/950523/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1163.fits evtable="EVENTS" outfile="/scratch/kocevski/950523/ft1_filtered_4FGL_J2329.3-4733_daily_bin1163.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950523/ft1_filtered_4FGL_J2329.3-4733_daily_bin1163.fits" evtable="EVENTS" scfile=/scratch/kocevski/950523/ft2_4FGL_J2329.3-4733_daily_bin1163.fits sctable="SC_DATA" outfile=/scratch/kocevski/950523/ltcube_540777601_541036801_4FGL_J2329.3-4733_daily_bin1163.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/950523/ft2_4FGL_J2329.3-4733_daily_bin1163.fits
.....................!
real 11.92
user 11.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950523/ft1_filtered_4FGL_J2329.3-4733_daily_bin1163.fits evtable="EVENTS" scfile=/scratch/kocevski/950523/ft2_4FGL_J2329.3-4733_daily_bin1163.fits sctable="SC_DATA" expcube=/scratch/kocevski/950523/ltcube_540777601_541036801_4FGL_J2329.3-4733_daily_bin1163.fits outfile=/scratch/kocevski/950523/expmap_540777601_541036801_4FGL_J2329.3-4733_daily_bin1163.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/950523/ltcube_540777601_541036801_4FGL_J2329.3-4733_daily_bin1163.fits
.....................!
real 191.29
user 185.62
sys 5.30

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/950523/ft1_filtered_4FGL_J2329.3-4733_daily_bin1163.fits scfile=/scratch/kocevski/950523/ft2_4FGL_J2329.3-4733_daily_bin1163.fits outfile=/scratch/kocevski/950523/cmap_540777601_541036801_4FGL_J2329.3-4733_daily_bin1163.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950523/ft1_filtered_4FGL_J2329.3-4733_daily_bin1163.fits scfile=/scratch/kocevski/950523/ft2_4FGL_J2329.3-4733_daily_bin1163.fits outfile=/scratch/kocevski/950523/cmap_HighResolution_540777601_541036801_4FGL_J2329.3-4733_daily_bin1163.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950523/ft1_filtered_4FGL_J2329.3-4733_daily_bin1163.fits evtable="EVENTS" scfile=/scratch/kocevski/950523/ft2_4FGL_J2329.3-4733_daily_bin1163.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950523/Model_4FGL_J2329.3-4733_daily_bin1163.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/950523/ft1_filtered_4FGL_J2329.3-4733_daily_bin1163.fits.....................!
real 35.06
user 33.64
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950523/ft1_filtered_4FGL_J2329.3-4733_daily_bin1163.fits', '/scratch/kocevski/950523/ft2_4FGL_J2329.3-4733_daily_bin1163.fits', expMap='/scratch/kocevski/950523/expmap_540777601_541036801_4FGL_J2329.3-4733_daily_bin1163.fits', expCube='/scratch/kocevski/950523/ltcube_540777601_541036801_4FGL_J2329.3-4733_daily_bin1163.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950523/Model_4FGL_J2329.3-4733_daily_bin1163.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/950523/ft1_filtered_4FGL_J2329.3-4733_daily_bin1163.fits
Spacecraft file(s): /scratch/kocevski/950523/ft2_4FGL_J2329.3-4733_daily_bin1163.fits
Exposure map: /scratch/kocevski/950523/expmap_540777601_541036801_4FGL_J2329.3-4733_daily_bin1163.fits
Exposure cube: /scratch/kocevski/950523/ltcube_540777601_541036801_4FGL_J2329.3-4733_daily_bin1163.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950523/Model_4FGL_J2329.3-4733_daily_bin1163.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) = 4242.33364796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.578       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3706       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0887       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7948       1.0000         .10000E-03   10000.    
    11 'Prefactor '    114.70       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20625E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8667       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.838       1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.211       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.5441       1.0000         .10000E-03   10000.    
    22 'norm      '    20.763       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.9407       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.2922       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.9703       1.0000         .10000E-03   10000.    
    27 'norm      '    .61763       1.0000         .10000E-03   10000.    
    28 'norm      '    11.488       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .16279E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.6050       1.0000         .10000E-03   10000.    
    31 'Prefactor '    39.878       1.0000         .10000E-03   10000.    
    32 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    2.5725       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.2022       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .78491       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=   4242.329     FROM MIGRAD    STATUS=CONVERGED    992 CALLS     5289 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.555       -.82483E-05** at limit **
   2  Prefactor     .10000E-03    10.481        .13016E-05** at limit **
   3  Prefactor     .10000E-03    17.998        .39022E-05** at limit **
   4  Prefactor     10.573        14.918        .44909E-06    .33115E-04
   5  Prefactor     .10000E-03    6.6264       -.55330E-06** at limit **
   6  Prefactor     .10000E-03    19.908        .16543E-05** at limit **
   7  Prefactor     3.3739        10.794        .90753E-06   -.60757E-03
   8  Prefactor     3.0903        9.7813        .78408E-06   -.74117E-03
   9  norm          .10000E-03    6.2607        .35726E-06** at limit **
  10  Prefactor     6.7960        5.4553       -.19415E-06   -.50884E-03
  11  Prefactor     114.71        82.107        .37146E-05    .13494E-04
  12  Prefactor     .10002E-03    6.0945        .13733E-05** at limit **
  13  Prefactor     .10000E-03    27.646       -.11057E-04** at limit **
  14  Prefactor     .10000E-03    4.4256       -.26122E-07** at limit **
  15  Prefactor     .10000E-03    42.453        .23624E-04** at limit **
  16  Prefactor     1.8687        6.2464        .10902E-05   -.12830E-02
  17  Prefactor     16.845        34.224        .59878E-05    .61325E-05
  18  Prefactor     43.212        24.395        .67075E-08   -.31503E-05
  19  norm          .10000E-03    17.109        .33349E-05** at limit **
  20  norm          .10000E-03    3.2259        .12260E-07** at limit **
  21  norm          7.5436        7.0330        .28986E-07   -.79943E-05
  22  norm          20.764        15.241        .79507E-07   -.48232E-05
  23  Prefactor     3.9409        6.4597       -.31045E-07   -.26593E-04
  24  Prefactor     .10000E-03    34.414        .59349E-06** at limit **
  25  norm          1.2927        10.043        .54019E-06   -.12236E-03
  26  Prefactor     4.9710        18.666       -.26336E-08   -.15797E-04
  27  norm          .61763        .93303        .83464E-07   -.69245E-03
  28  norm          11.486        9.2342        .46919E-07   -.44013E-04
  29  Prefactor     .10000E-03    72.839       -.13657E-04** at limit **
  30  Prefactor     4.6044        4.5039       -.79350E-06   -.52417E-04
  31  Prefactor     39.879        27.235        .37048E-06    .45970E-05
  32  norm          .10000E-03    14.400       -.72699E-05** at limit **
  33  Prefactor     2.5720        4.0038        .66165E-06    .18283E-03
  34  Prefactor     .10000E-03    2.0042        .49204E-07** at limit **
  35  Normalizat    1.2022        .22570       -.48766E-07   -.25030E-04
  36  Prefactor     .78472        .23290       -.13383E-05    .61672E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.3739
  Prefactor  = 3.09027
  norm       = 0.0001
  Prefactor  = 6.79596
  Prefactor  = 114.709
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.86871
  Prefactor  = 16.8452
  Prefactor  = 43.2118
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.54359
  norm       = 20.7639
  Prefactor  = 3.94094
  Prefactor  = 0.0001
  norm       = 1.29268
  Prefactor  = 4.97101
  norm       = 0.61763
  norm       = 11.4858
  Prefactor  = 0.0001
  Prefactor  = 4.60444
  Prefactor  = 39.8792
  norm       = 0.0001
  Prefactor  = 2.57198
  Prefactor  = 0.0001
  Normalizat = 1.2022
  Prefactor  = 0.784718
 **********
 **   18 **HESSE 
 **********

 FCN=   4242.329     FROM HESSE     STATUS=OK           815 CALLS     6104 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.573        14.931        .12319E-03   -1.5058    
   5  Prefactor     .10000E-03    6.6591        .16372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.3739        11.454        .11021E-02   -1.5341    
   8  Prefactor     3.0903        10.639        .11538E-02   -1.5356    
   9  norm          .10000E-03    6.2785        .15918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7960        5.4586        .64401E-03   -1.5187    
  11  Prefactor     114.71        82.602        .37565E-04   -1.3562    
  12  Prefactor     .10002E-03    17.129        .30599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4355        .13381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    42.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8687        12.699        .15245E-02   -1.5435    
  17  Prefactor     16.845        34.183        .97604E-04   -1.4887    
  18  Prefactor     43.212        24.494        .60986E-04   -1.4392    
  19  norm          .10000E-03    17.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.2286        .11423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.5436        6.9718        .14601E-03   -1.5159    
  22  norm          20.764        15.238        .87901E-04   -1.4796    
  23  Prefactor     3.9409        6.4563        .17194E-03   -1.5311    
  24  Prefactor     .10000E-03    34.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.2927        8.9522        .31191E-03   -1.5481    
  26  Prefactor     4.9710        18.705        .18039E-03   -1.5262    
  27  norm          .61763        .93432        .23484E-03   -1.5551    
  28  norm          11.486        8.7699        .11820E-03   -1.5030    
  29  Prefactor     .10000E-03    74.986        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.6044        4.4954        .12476E-03   -1.5279    
  31  Prefactor     39.879        27.219        .63474E-04   -1.4444    
  32  norm          .10000E-03    14.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     2.5720        3.9884        .15662E-03   -1.5387    
  34  Prefactor     .10000E-03    2.0231        .90030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.2022        .27957        .23451E-03   -.86535    
  36  Prefactor     .78472        .28212        .29992E-03   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35406e-08
Minuit parameter uncertainties:
  1  0.00014121
  2  1.5502e-05
  3  5.70118e-05
  4  14.9358
  5  1.65823e-06
  6  2.13715e-05
  7  11.4611
  8  10.646
  9  3.9513e-06
  10  5.459
  11  82.6849
  12  0.00111605
  13  0.000193028
  14  1.04846e-07
  15  0.000484187
  16  9.74572
  17  34.2226
  18  24.4994
  19  4.08024e-05
  20  2.26616e-07
  21  6.97251
  22  15.2404
  23  6.45744
  24  1.44287e-05
  25  6.80481
  26  18.7271
  27  0.934344
  28  8.77091
  29  0.000189666
  30  4.49577
  31  27.2278
  32  9.66259e-05
  33  3.98881
  34  9.9627e-07
  35  0.279921
  36  0.282644
Done.

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

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  4.971e+00  1.873e+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:  7.847e-01  2.826e-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.202e+00  2.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 352.339 -47.556
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950523/likelihoodResults_540777601_541036801_4FGL_J2329.3-4733_daily_bin1163.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) = 4242.29273923
delta logL = 0.035842430003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4242.26917925
delta logL = 0.0594024074826

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0603       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3227       1.0000          .0000       10.000    
     3 'Normalizat'    1.1883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79447       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=   4242.269     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      257 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0599        499.75        .19605E-03   -.15506E-03
   2  Index         3.3227        7.3310        .78930E-02   -.36441E-04
   3  Normalizat    1.1883        .26458        .23561E-03   -.17018E-03
   4  Prefactor     .79447        .28067        .14912E-02   -.11401E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.05992
  Index      = 3.32275
  Normalizat = 1.18832
  Prefactor  = 0.794473
 **********
 **   18 **HESSE 
 **********

 FCN=   4242.269     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0599        13.312        .78421E-05   -1.5421    
   2  Index         3.3227        2.4881        .31572E-03   -.34208    
   3  Normalizat    1.1883        .26847        .47122E-04   -.86965    
   4  Prefactor     .79447        .28068        .59647E-04   -.99932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44599e-10
Minuit parameter uncertainties:
  1  10.4762
  2  2.6213
  3  0.268783
  4  0.281189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950523': 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) = 4242.26917924
delta logL = 0.0594024108132

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  2.060e+00  1.048e+01  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  3.323e+00  2.621e+00  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:  7.945e-01  2.812e-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.188e+00  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 352.339 -47.556

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/950523/cmap_HighResolution_540777601_541036801_4FGL_J2329.3-4733_daily_bin1163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.86e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-29 21:16:02.413755', job_id='950523', GAL2='0.79', fit_tolerance='1e-08', EG2='1.19', EG='1.20', time_epoch_completed='1632975362.41', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.94e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1163' AND source_name='4FGL J2329.3-4733' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:16:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 950523: <4FGL_J2329.3-4733_daily_bin1163> in cluster <slac> Done

Job <4FGL_J2329.3-4733_daily_bin1163> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 21:00:52 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:00:54 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:00:54 2021
Terminated at Wed Sep 29 21:16:03 2021
Results reported at Wed Sep 29 21:16:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4733_daily_bin1163 352.339 -47.5558 540777601 541036801 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 :                                   800.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            911 sec.

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

