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


Performing analysis on: 4FGL_J2329.3-4733_daily_bin336
RA = 352.339, Dec = -47.5558
tmin = 326419201, tmax = 326678401
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='939836', job_status='RUN', time_executed='2021-09-29 20:45:58.345925', time_epoch_executed='1632973558.35' WHERE source_name='4FGL J2329.3-4733' and cadence='daily' and bin_id='336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/939836

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/939836/ft1_4FGL_J2329.3-4733_daily_bin336.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/939836/ft2_4FGL_J2329.3-4733_daily_bin336.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/939836/ft1_4FGL_J2329.3-4733_daily_bin336.fits outfile=/scratch/kocevski/939836/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin336.fits ra=352.339 dec=-47.5558 rad=12.0 tmin=326419201.0 tmax=326678401.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.38
user 3.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/939836/ft2_4FGL_J2329.3-4733_daily_bin336.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/939836/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin336.fits evtable="EVENTS" outfile="/scratch/kocevski/939836/ft1_filtered_4FGL_J2329.3-4733_daily_bin336.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/939836/ft1_filtered_4FGL_J2329.3-4733_daily_bin336.fits" evtable="EVENTS" scfile=/scratch/kocevski/939836/ft2_4FGL_J2329.3-4733_daily_bin336.fits sctable="SC_DATA" outfile=/scratch/kocevski/939836/ltcube_326419201_326678401_4FGL_J2329.3-4733_daily_bin336.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/939836/ft2_4FGL_J2329.3-4733_daily_bin336.fits
.....................!
real 12.06
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/939836/ft1_filtered_4FGL_J2329.3-4733_daily_bin336.fits evtable="EVENTS" scfile=/scratch/kocevski/939836/ft2_4FGL_J2329.3-4733_daily_bin336.fits sctable="SC_DATA" expcube=/scratch/kocevski/939836/ltcube_326419201_326678401_4FGL_J2329.3-4733_daily_bin336.fits outfile=/scratch/kocevski/939836/expmap_326419201_326678401_4FGL_J2329.3-4733_daily_bin336.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/939836/ltcube_326419201_326678401_4FGL_J2329.3-4733_daily_bin336.fits
.....................!
real 191.15
user 185.60
sys 5.22

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/939836/ft1_filtered_4FGL_J2329.3-4733_daily_bin336.fits scfile=/scratch/kocevski/939836/ft2_4FGL_J2329.3-4733_daily_bin336.fits outfile=/scratch/kocevski/939836/cmap_326419201_326678401_4FGL_J2329.3-4733_daily_bin336.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/939836/ft1_filtered_4FGL_J2329.3-4733_daily_bin336.fits scfile=/scratch/kocevski/939836/ft2_4FGL_J2329.3-4733_daily_bin336.fits outfile=/scratch/kocevski/939836/cmap_HighResolution_326419201_326678401_4FGL_J2329.3-4733_daily_bin336.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/939836/ft1_filtered_4FGL_J2329.3-4733_daily_bin336.fits evtable="EVENTS" scfile=/scratch/kocevski/939836/ft2_4FGL_J2329.3-4733_daily_bin336.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/939836/Model_4FGL_J2329.3-4733_daily_bin336.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/939836/ft1_filtered_4FGL_J2329.3-4733_daily_bin336.fits.....................!
real 41.88
user 40.65
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.679       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9184       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6020       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5556       1.0000         .10000E-03   10000.    
     9 'norm      '    .76640       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7728       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4866       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.013       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26505E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.261       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5444       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.8369       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9716       1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.767       1.0000         .10000E-03   10000.    
    25 'norm      '    2.1781       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.6093       1.0000         .10000E-03   10000.    
    27 'norm      '    6.7245       1.0000         .10000E-03   10000.    
    28 'norm      '    4.2683       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.7966       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    8.1821       1.0000         .10000E-03   10000.    
    34 'Prefactor '    5.2014       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .86073       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .96742       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=   5662.208     FROM MIGRAD    STATUS=CONVERGED   1032 CALLS     5296 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.675        41.896       -.11523E-05   -.10027E-04
   2  Prefactor     .10000E-03    15.751       -.39777E-05** at limit **
   3  Prefactor     .10000E-03    38.948       -.14658E-05** at limit **
   4  Prefactor     .10000E-03    3.0756        .69741E-07** at limit **
   5  Prefactor     6.9184        5.3241        .72389E-07    .49069E-05
   6  Prefactor     .10000E-03    29.417        .61464E-05** at limit **
   7  Prefactor     4.6021        5.9953        .39856E-06   -.47699E-05
   8  Prefactor     7.5548        6.9343        .15280E-05   -.10948E-03
   9  norm          .76488        2.7806       -.10289E-05   -.81620E-03
  10  Prefactor     2.7725        4.6176       -.24016E-05    .96364E-06
  11  Prefactor     .10000E-03    56.441        .79415E-05** at limit **
  12  Prefactor     4.4857        5.5984       -.17889E-05   -.62479E-04
  13  Prefactor     10.994        27.199        .17051E-04    .27049E-04
  14  Prefactor     .10000E-03    3.9902       -.11835E-06** at limit **
  15  Prefactor     .10000E-03    41.434       -.98578E-05** at limit **
  16  Prefactor     .10018E-03    5.5587       -.10130E-05** at limit **
  17  Prefactor     20.263        31.374       -.12242E-05   -.39172E-06
  18  Prefactor     8.5438        14.129       -.18397E-06   -.77913E-05
  19  norm          .10000E-03    5.4105        .76618E-07** at limit **
  20  norm          .10000E-03    2.1140        .66335E-08** at limit **
  21  norm          5.8180        10.450       -.22814E-05   -.12772E-03
  22  norm          .10000E-03    3.6529        .26900E-07** at limit **
  23  Prefactor     1.9765        6.3525        .14979E-05   -.51530E-03
  24  Prefactor     24.644        47.564       -.98008E-05   -.10468E-03
  25  norm          2.2064        12.968        .51389E-05    .25021E-03
  26  Prefactor     7.6001        14.296        .37049E-06   -.22917E-04
  27  norm          6.7244        1.8063       -.89441E-07    .10999E-03
  28  norm          4.2649        3.7657        .19234E-06   -.14143E-03
  29  Prefactor     .10000E-03    10.924        .18803E-05** at limit **
  30  Prefactor     2.7972        3.2579        .36609E-07    .77970E-04
  31  Prefactor     .10000E-03    12.301       -.98069E-05** at limit **
  32  norm          .10000E-03    13.238        .11215E-04** at limit **
  33  Prefactor     8.1829        4.7718       -.43487E-07   -.20897E-03
  34  Prefactor     5.2025        4.2380        .15200E-05    .81513E-04
  35  Normalizat    .86090        .19100       -.24260E-05    .95766E-04
  36  Prefactor     .96720        .19819        .11940E-05   -.59165E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.6747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.91841
  Prefactor  = 0.0001
  Prefactor  = 4.60205
  Prefactor  = 7.55481
  norm       = 0.764876
  Prefactor  = 2.77249
  Prefactor  = 0.0001
  Prefactor  = 4.48569
  Prefactor  = 10.9936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010018
  Prefactor  = 20.2626
  Prefactor  = 8.54377
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.81803
  norm       = 0.0001
  Prefactor  = 1.97654
  Prefactor  = 24.644
  norm       = 2.20642
  Prefactor  = 7.60011
  norm       = 6.72443
  norm       = 4.26495
  Prefactor  = 0.0001
  Prefactor  = 2.7972
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.18287
  Prefactor  = 5.20252
  Normalizat = 0.860902
  Prefactor  = 0.967203
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.208     FROM HESSE     STATUS=OK           819 CALLS     6115 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.675        41.938        .79052E-04   -1.4694    
   2  Prefactor     .10000E-03    15.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0772        .12888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9184        5.3245        .14819E-03   -1.5182    
   6  Prefactor     .10000E-03    29.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6021        5.9897        .18763E-03   -1.5279    
   8  Prefactor     7.5548        6.9297        .14590E-03   -1.5158    
   9  norm          .76488        13.920        .24628E-02   -1.5533    
  10  Prefactor     2.7725        4.5984        .19666E-03   -1.5375    
  11  Prefactor     .10000E-03    56.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4857        5.5746        .18492E-03   -1.5284    
  13  Prefactor     10.994        27.173        .12073E-03   -1.5045    
  14  Prefactor     .10000E-03    3.9975        .14675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    41.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10018E-03    31.954        .34126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.263        31.366        .88982E-04   -1.4807    
  18  Prefactor     8.5438        14.111        .13714E-03   -1.5123    
  19  norm          .10000E-03    5.4208        .17094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.1144        .10684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.8180        9.8640        .16623E-03   -1.5226    
  22  norm          .10000E-03    3.6618        .14045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.9765        6.7714        .14666E-02   -1.5427    
  24  Prefactor     24.644        44.593        .80491E-04   -1.4715    
  25  norm          2.2064        10.197        .24610E-03   -1.5411    
  26  Prefactor     7.6001        14.259        .14538E-03   -1.5157    
  27  norm          6.7244        1.8060        .47638E-04   -1.5189    
  28  norm          4.2649        3.7114        .12599E-03   -1.5295    
  29  Prefactor     .10000E-03    10.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.7972        3.2388        .13710E-03   -1.5373    
  31  Prefactor     .10000E-03    12.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    13.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     8.1829        4.7675        .11869E-03   -1.5136    
  34  Prefactor     5.2025        4.2399        .13284E-03   -1.5252    
  35  Normalizat    .86090        .22640        .24879E-03   -.97848    
  36  Prefactor     .96720        .23550        .25961E-03   -.93831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.95091e-09
Minuit parameter uncertainties:
  1  41.9859
  2  2.89262e-05
  3  1.34449e-05
  4  9.71166e-07
  5  5.32484
  6  0.000169488
  7  5.99044
  8  6.93045
  9  6.52737
  10  4.59899
  11  0.000222589
  12  5.57526
  13  27.2038
  14  5.12777e-05
  15  9.86661e-05
  16  0.00479777
  17  31.3915
  18  14.1162
  19  2.61843e-06
  20  1.46458e-06
  21  9.86674
  22  9.5192e-07
  23  6.77398
  24  44.6531
  25  9.48894
  26  14.2652
  27  1.806
  28  3.71159
  29  1.24794e-05
  30  3.23899
  31  2.07247e-06
  32  1.79385e-08
  33  4.7677
  34  4.24015
  35  0.226653
  36  0.235747
Done.

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

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  7.600e+00  1.427e+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:  9.672e-01  2.357e-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:  8.609e-01  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 352.339 -47.556
Photon Flux Upper Limit: 9.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/939836/likelihoodResults_326419201_326678401_4FGL_J2329.3-4733_daily_bin336.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) = 5662.13928335
delta logL = 0.0684135347501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5662.13567471
delta logL = 0.0720221805996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.219       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1502       1.0000          .0000       10.000    
     3 'Normalizat'    .86667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96183       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=   5662.136     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      294 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.220        17.586        .11961E-03    .10646E-04
   2  Index         2.1502        .88112        .10036E-01   -.65768E-05
   3  Normalizat    .86662        .20912        .24807E-03    .50457E-04
   4  Prefactor     .96188        .23077        .26021E-03    .58240E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2195
  Index      = 2.15019
  Normalizat = 0.866624
  Prefactor  = 0.961884
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.136     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.220        17.262        .47843E-05   -1.5038    
   2  Index         2.1502        .86526        .40145E-03   -.60646    
   3  Normalizat    .86662        .20934        .99229E-05   -.97643    
   4  Prefactor     .96188        .23101        .10408E-04   -.94011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15468e-11
Minuit parameter uncertainties:
  1  17.2692
  2  0.871783
  3  0.209538
  4  0.23125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/939836': 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) = 5662.13567468
delta logL = 0.0720222077271

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  1.122e+01  1.727e+01  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  2.150e+00  8.718e-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:  9.619e-01  2.312e-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:  8.666e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/939836/cmap_HighResolution_326419201_326678401_4FGL_J2329.3-4733_daily_bin336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.39e-03', job_status='DONE', photon_flux_upper_limit='9.50e-08', time_completed='2021-09-29 21:02:03.968457', job_id='939836', GAL2='0.96', fit_tolerance='1e-08', EG2='0.87', EG='0.86', time_epoch_completed='1632974523.97', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='7.20e-02', ts2='0.66', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='336' AND source_name='4FGL J2329.3-4733' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:02:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 939836: <4FGL_J2329.3-4733_daily_bin336> in cluster <slac> Done

Job <4FGL_J2329.3-4733_daily_bin336> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 20:45:42 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:45:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:45:43 2021
Terminated at Wed Sep 29 21:02:04 2021
Results reported at Wed Sep 29 21:02:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4733_daily_bin336 352.339 -47.5558 326419201 326678401 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 :                                   959.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            982 sec.

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

