/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 54 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7454
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2329.3-4733_daily_bin1571
RA = 352.339, Dec = -47.5558
tmin = 646531201, tmax = 646790401
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='953285', job_status='RUN', time_executed='2021-09-29 21:11:21.281201', time_epoch_executed='1632975081.28' WHERE source_name='4FGL J2329.3-4733' and cadence='daily' and bin_id='1571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953285

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953285/ft1_4FGL_J2329.3-4733_daily_bin1571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953285/ft2_4FGL_J2329.3-4733_daily_bin1571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953285/ft1_4FGL_J2329.3-4733_daily_bin1571.fits outfile=/scratch/kocevski/953285/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1571.fits ra=352.339 dec=-47.5558 rad=12.0 tmin=646531201.0 tmax=646790401.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.44
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953285/ft2_4FGL_J2329.3-4733_daily_bin1571.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/953285/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1571.fits evtable="EVENTS" outfile="/scratch/kocevski/953285/ft1_filtered_4FGL_J2329.3-4733_daily_bin1571.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.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953285/ft1_filtered_4FGL_J2329.3-4733_daily_bin1571.fits" evtable="EVENTS" scfile=/scratch/kocevski/953285/ft2_4FGL_J2329.3-4733_daily_bin1571.fits sctable="SC_DATA" outfile=/scratch/kocevski/953285/ltcube_646531201_646790401_4FGL_J2329.3-4733_daily_bin1571.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/953285/ft2_4FGL_J2329.3-4733_daily_bin1571.fits
.....................!
real 11.78
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953285/ft1_filtered_4FGL_J2329.3-4733_daily_bin1571.fits evtable="EVENTS" scfile=/scratch/kocevski/953285/ft2_4FGL_J2329.3-4733_daily_bin1571.fits sctable="SC_DATA" expcube=/scratch/kocevski/953285/ltcube_646531201_646790401_4FGL_J2329.3-4733_daily_bin1571.fits outfile=/scratch/kocevski/953285/expmap_646531201_646790401_4FGL_J2329.3-4733_daily_bin1571.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/953285/ltcube_646531201_646790401_4FGL_J2329.3-4733_daily_bin1571.fits
.....................!
real 189.98
user 185.19
sys 4.25

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/953285/ft1_filtered_4FGL_J2329.3-4733_daily_bin1571.fits scfile=/scratch/kocevski/953285/ft2_4FGL_J2329.3-4733_daily_bin1571.fits outfile=/scratch/kocevski/953285/cmap_646531201_646790401_4FGL_J2329.3-4733_daily_bin1571.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953285/ft1_filtered_4FGL_J2329.3-4733_daily_bin1571.fits scfile=/scratch/kocevski/953285/ft2_4FGL_J2329.3-4733_daily_bin1571.fits outfile=/scratch/kocevski/953285/cmap_HighResolution_646531201_646790401_4FGL_J2329.3-4733_daily_bin1571.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/953285/ft1_filtered_4FGL_J2329.3-4733_daily_bin1571.fits evtable="EVENTS" scfile=/scratch/kocevski/953285/ft2_4FGL_J2329.3-4733_daily_bin1571.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953285/Model_4FGL_J2329.3-4733_daily_bin1571.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/953285/ft1_filtered_4FGL_J2329.3-4733_daily_bin1571.fits.....................!
real 37.14
user 35.87
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.055       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.739       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0899       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6218       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9805       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13759E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3713       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-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 '    9.7230       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.328       1.0000         .10000E-03   10000.    
    19 'norm      '    11.813       1.0000         .10000E-03   10000.    
    20 'norm      '    .63951       1.0000         .10000E-03   10000.    
    21 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.972       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .68543E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .21891E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.9954       1.0000         .10000E-03   10000.    
    27 'norm      '    1.9746       1.0000         .10000E-03   10000.    
    28 'norm      '    2.0145       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .51451E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .68189       1.0000         .10000E-03   10000.    
    34 'Prefactor '    2.2112       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.1268       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .68603       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=   4469.801     FROM MIGRAD    STATUS=CONVERGED   1017 CALLS     5318 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.068        58.719       -.24389E-05    .11228E-04
   2  Prefactor     22.748        22.080        .34479E-06    .16083E-04
   3  Prefactor     .10000E-03    12.375        .32038E-06** at limit **
   4  Prefactor     .10000E-03    3.2208       -.54419E-08** at limit **
   5  Prefactor     3.0928        6.4649        .39535E-05    .31600E-04
   6  Prefactor     .10000E-03    8.8397       -.21483E-06** at limit **
   7  Prefactor     4.6239        6.8278        .12878E-05    .20685E-04
   8  Prefactor     4.9816        5.6236        .10523E-08    .24133E-04
   9  norm          .10000E-03    4.1906       -.18643E-07** at limit **
  10  Prefactor     .10000E-03    6.1207       -.26580E-06** at limit **
  11  Prefactor     .10000E-03    159.93        .26276E-05** at limit **
  12  Prefactor     9.3746        9.1029       -.70882E-07   -.11978E-03
  13  Prefactor     .10000E-03    38.467        .17567E-05** at limit **
  14  Prefactor     .10000E-03    8.1031       -.53378E-06** at limit **
  15  Prefactor     .10000E-03    40.972       -.32848E-05** at limit **
  16  Prefactor     9.7151        10.360       -.14148E-06    .63683E-05
  17  Prefactor     .10000E-03    26.837        .26893E-05** at limit **
  18  Prefactor     31.332        20.239        .21898E-06   -.65943E-05
  19  norm          11.811        10.855        .77859E-08    .19445E-04
  20  norm          .63826        8.1711        .21863E-06   -.88536E-04
  21  norm          .10000E-03    2.2161        .32320E-07** at limit **
  22  norm          .10000E-03    24.895       -.10753E-05** at limit **
  23  Prefactor     18.970        14.265       -.11868E-06    .20620E-04
  24  Prefactor     .10000E-03    179.18       -.49239E-05** at limit **
  25  norm          .10000E-03    2.9401        .14126E-06** at limit **
  26  Prefactor     5.9980        24.788        .41748E-06    .20261E-04
  27  norm          1.9750        1.4547       -.15773E-07   -.47041E-04
  28  norm          2.0045        3.7333        .37367E-06    .28688E-03
  29  Prefactor     .10000E-03    17.319        .99026E-05** at limit **
  30  Prefactor     .10000E-03    .86948       -.20385E-07** at limit **
  31  Prefactor     .10000E-03    25.257       -.72480E-06** at limit **
  32  norm          .10000E-03    7.7427        .57303E-06** at limit **
  33  Prefactor     .68344        3.7351        .38895E-06   -.63963E-04
  34  Prefactor     2.2111        3.2447       -.37028E-07    .25691E-05
  35  Normalizat    1.1265        .20893        .13470E-06    .23584E-03
  36  Prefactor     .68608        .21060        .62630E-07    .19073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.0681
  Prefactor  = 22.7481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.09277
  Prefactor  = 0.0001
  Prefactor  = 4.62393
  Prefactor  = 4.98161
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.37457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.71513
  Prefactor  = 0.0001
  Prefactor  = 31.3323
  norm       = 11.8111
  norm       = 0.638263
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.9699
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.998
  norm       = 1.975
  norm       = 2.00445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.683444
  Prefactor  = 2.21113
  Normalizat = 1.12653
  Prefactor  = 0.686083
 **********
 **   18 **HESSE 
 **********

 FCN=   4469.801     FROM HESSE     STATUS=OK           813 CALLS     6131 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.068        58.820        .51774E-04   -1.4156    
   2  Prefactor     22.748        22.049        .83999E-04   -1.4754    
   3  Prefactor     .10000E-03    12.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2216        .11718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0928        7.4888        .11536E-02   -1.5356    
   6  Prefactor     .10000E-03    8.8425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6239        6.9990        .93609E-03   -1.5278    
   8  Prefactor     4.9816        5.6262        .16363E-03   -1.5262    
   9  norm          .10000E-03    4.1917        .13367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.3479        .32275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    160.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.3746        9.1378        .13091E-03   -1.5096    
  13  Prefactor     .10000E-03    38.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.1841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.7151        10.369        .12851E-03   -1.5084    
  17  Prefactor     .10000E-03    26.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.332        20.229        .71586E-04   -1.4588    
  19  norm          11.811        10.856        .11656E-03   -1.5020    
  20  norm          .63826        18.660        .34953E-02   -1.5548    
  21  norm          .10000E-03    2.2225        .97181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    25.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.970        13.989        .91953E-04   -1.4837    
  24  Prefactor     .10000E-03    184.25        .41983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.2402        .21690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.9980        24.030        .16399E-03   -1.5218    
  27  norm          1.9750        1.4445        .61602E-04   -1.5427    
  28  norm          2.0045        3.6429        .16663E-03   -1.5425    
  29  Prefactor     .10000E-03    25.583        .37398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .87153        .60870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    25.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    7.7409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .68344        3.6931        .24748E-03   -1.5543    
  34  Prefactor     2.2111        3.2226        .13936E-03   -1.5411    
  35  Normalizat    1.1265        .25043        .21728E-03   -.88905    
  36  Prefactor     .68608        .25155        .28665E-03   -1.0407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87748e-08
Minuit parameter uncertainties:
  1  58.8771
  2  22.0566
  3  1.96873e-05
  4  2.05202e-06
  5  7.49105
  6  2.3621e-06
  7  7.00024
  8  5.62679
  9  1.89782e-06
  10  2.55478e-05
  11  0.000222631
  12  9.13916
  13  0.000137676
  14  2.16103e-05
  15  1.44689e-05
  16  10.3708
  17  3.77835e-05
  18  20.2337
  19  10.8579
  20  6.90397
  21  2.7159e-06
  22  3.41596e-06
  23  13.9918
  24  0.000768763
  25  9.41322e-06
  26  24.0275
  27  1.44448
  28  3.64326
  29  9.93021e-05
  30  1.94965e-06
  31  6.30119e-05
  32  4.4618e-06
  33  3.17752
  34  3.22288
  35  0.250695
  36  0.251968
Done.

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

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  5.998e+00  2.403e+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:  6.861e-01  2.520e-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.127e+00  2.507e-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.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953285/likelihoodResults_646531201_646790401_4FGL_J2329.3-4733_daily_bin1571.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) = 4469.45239332
delta logL = 0.348392518023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4469.39517597
delta logL = 0.405609870558

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0717       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1393       1.0000          .0000       10.000    
     3 'Normalizat'    1.0715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72530       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.

 FCN=   4469.395     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      256 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0618        23.067        .11718E-01    .73565E-03
   2  Index         4.1438        3.3675        .10558        .12260E-03
   3  Normalizat    1.0709        .44646E-01    .39301E-01    .52679E-05
   4  Prefactor     .72609        .47076E-01    .63104E-01    .15209E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06176
  Index      = 4.14385
  Normalizat = 1.07089
  Prefactor  = 0.726091
 **********
 **   18 **HESSE 
 **********

 FCN=   4469.395     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0618        62.360        .72815E-04   -1.5502    
   2  Index         4.1438        7.0452        .57009E-02   -.17208    
   3  Normalizat    1.0709        .20735        .22168E-03   -.90692    
   4  Prefactor     .72609        .21396        .27915E-03   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.73741e-07
Minuit parameter uncertainties:
  1  16.2912
  2  7.61122
  3  0.207511
  4  0.214198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953285': 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): 102
logL (Free Index) = 4469.39516878
delta logL = 0.405617061869

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  1.062e+00  1.629e+01  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  4.144e+00  7.611e+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.261e-01  2.142e-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.071e+00  2.075e-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/953285/cmap_HighResolution_646531201_646790401_4FGL_J2329.3-4733_daily_bin1571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.81e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-29 21:25:37.498915', job_id='953285', GAL2='0.73', fit_tolerance='1e-08', EG2='1.07', EG='1.13', time_epoch_completed='1632975937.5', return_code2='102', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='4.06e-01', ts2='1.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1571' AND source_name='4FGL J2329.3-4733' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:25:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 953285: <4FGL_J2329.3-4733_daily_bin1571> in cluster <slac> Done

Job <4FGL_J2329.3-4733_daily_bin1571> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 21:10:18 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:10:20 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:10:20 2021
Terminated at Wed Sep 29 21:25:38 2021
Results reported at Wed Sep 29 21:25:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4733_daily_bin1571 352.339 -47.5558 646531201 646790401 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 :                                   849.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            920 sec.

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

