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


Performing analysis on: 4FGL_J2329.3-4733_daily_bin1555
RA = 352.339, Dec = -47.5558
tmin = 642384001, tmax = 642643201
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='953262', job_status='RUN', time_executed='2021-09-29 21:11:00.872530', time_epoch_executed='1632975060.87' WHERE source_name='4FGL J2329.3-4733' and cadence='daily' and bin_id='1555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953262

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953262/ft1_4FGL_J2329.3-4733_daily_bin1555.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953262/ft2_4FGL_J2329.3-4733_daily_bin1555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953262/ft1_4FGL_J2329.3-4733_daily_bin1555.fits outfile=/scratch/kocevski/953262/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1555.fits ra=352.339 dec=-47.5558 rad=12.0 tmin=642384001.0 tmax=642643201.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.68
user 3.42
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953262/ft1_filtered_4FGL_J2329.3-4733_daily_bin1555.fits" evtable="EVENTS" scfile=/scratch/kocevski/953262/ft2_4FGL_J2329.3-4733_daily_bin1555.fits sctable="SC_DATA" outfile=/scratch/kocevski/953262/ltcube_642384001_642643201_4FGL_J2329.3-4733_daily_bin1555.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/953262/ft2_4FGL_J2329.3-4733_daily_bin1555.fits
.....................!
real 11.97
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953262/ft1_filtered_4FGL_J2329.3-4733_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/953262/ft2_4FGL_J2329.3-4733_daily_bin1555.fits sctable="SC_DATA" expcube=/scratch/kocevski/953262/ltcube_642384001_642643201_4FGL_J2329.3-4733_daily_bin1555.fits outfile=/scratch/kocevski/953262/expmap_642384001_642643201_4FGL_J2329.3-4733_daily_bin1555.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/953262/ltcube_642384001_642643201_4FGL_J2329.3-4733_daily_bin1555.fits
.....................!
real 190.68
user 185.01
sys 5.26

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/953262/ft1_filtered_4FGL_J2329.3-4733_daily_bin1555.fits scfile=/scratch/kocevski/953262/ft2_4FGL_J2329.3-4733_daily_bin1555.fits outfile=/scratch/kocevski/953262/cmap_642384001_642643201_4FGL_J2329.3-4733_daily_bin1555.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953262/ft1_filtered_4FGL_J2329.3-4733_daily_bin1555.fits scfile=/scratch/kocevski/953262/ft2_4FGL_J2329.3-4733_daily_bin1555.fits outfile=/scratch/kocevski/953262/cmap_HighResolution_642384001_642643201_4FGL_J2329.3-4733_daily_bin1555.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.157       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91396       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 '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.115       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2378       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10775E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.642       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.1876       1.0000         .10000E-03   10000.    
    20 'norm      '    3.1123       1.0000         .10000E-03   10000.    
    21 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11846E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.785       1.0000         .10000E-03   10000.    
    27 'norm      '    6.9613       1.0000         .10000E-03   10000.    
    28 'norm      '    .99464       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.4607       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    11.128       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.0709       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .84149       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=   5464.292     FROM MIGRAD    STATUS=CONVERGED    989 CALLS     5266 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.678        .23989E-04** at limit **
   2  Prefactor     .10000E-03    10.785        .27434E-05** at limit **
   3  Prefactor     47.150        41.305       -.50647E-05    .21859E-04
   4  Prefactor     .90295        11.138       -.25464E-05    .57870E-04
   5  Prefactor     .10000E-03    2.5060       -.54664E-07** at limit **
   6  Prefactor     .10000E-03    9.3683       -.46996E-05** at limit **
   7  Prefactor     .10000E-03    4.6729        .33250E-05** at limit **
   8  Prefactor     20.114        8.8299       -.45543E-07    .19687E-04
   9  norm          .10000E-03    3.0676        .64872E-07** at limit **
  10  Prefactor     2.2368        2.7813       -.82514E-07   -.93677E-04
  11  Prefactor     .10000E-03    91.847       -.10303E-04** at limit **
  12  Prefactor     .10000E-03    2.7884       -.15117E-06** at limit **
  13  Prefactor     10.638        21.850       -.13117E-05   -.74981E-04
  14  Prefactor     .10000E-03    6.6969        .45911E-05** at limit **
  15  Prefactor     .10000E-03    24.560       -.21224E-04** at limit **
  16  Prefactor     .10000E-03    3.6748       -.41448E-06** at limit **
  17  Prefactor     .10000E-03    14.227       -.32338E-05** at limit **
  18  Prefactor     .10000E-03    7.5598       -.87853E-07** at limit **
  19  norm          2.1898        31.599       -.29628E-05   -.72650E-04
  20  norm          3.1129        4.7613       -.99108E-07   -.10918E-03
  21  norm          .10000E-03    4.7019       -.29746E-05** at limit **
  22  norm          .10000E-03    7.2692        .18029E-05** at limit **
  23  Prefactor     .10000E-03    8.6600       -.54926E-05** at limit **
  24  Prefactor     .10000E-03    13.732        .29320E-06** at limit **
  25  norm          .10000E-03    1.5355        .14184E-07** at limit **
  26  Prefactor     12.785        15.463       -.33068E-07    .28273E-03
  27  norm          6.9611        1.8425        .20383E-07    .71569E-03
  28  norm          .99595        2.4186       -.44848E-06   -.11376E-02
  29  Prefactor     4.4520        16.960        .32532E-05   -.55820E-06
  30  Prefactor     .10000E-03    1.1986        .32558E-07** at limit **
  31  Prefactor     .10000E-03    10.801        .28801E-05** at limit **
  32  norm          .10000E-03    12.094        .61887E-05** at limit **
  33  Prefactor     .10000E-03    5.6365       -.22771E-05** at limit **
  34  Prefactor     11.127        5.3435        .19036E-07   -.11503E-03
  35  Normalizat    1.0713        .19640        .61777E-06    .17589E-03
  36  Prefactor     .84109        .20322        .37147E-06    .16536E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.1504
  Prefactor  = 0.902953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1136
  norm       = 0.0001
  Prefactor  = 2.23683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18981
  norm       = 3.11285
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.7854
  norm       = 6.96107
  norm       = 0.995947
  Prefactor  = 4.45199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1274
  Normalizat = 1.07128
  Prefactor  = 0.84109
 **********
 **   18 **HESSE 
 **********

 FCN=   5464.292     FROM HESSE     STATUS=OK           805 CALLS     6071 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     47.150        41.377        .58390E-04   -1.4334    
   4  Prefactor     .90295        41.434        .47025E-02   -1.5518    
   5  Prefactor     .10000E-03    2.5117        .11427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.3695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6962        .15600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.114        8.8429        .89305E-04   -1.4811    
   9  norm          .10000E-03    3.0679        .12645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2368        2.7724        .13324E-03   -1.5409    
  11  Prefactor     .10000E-03    92.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8132        .12049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.638        21.848        .12282E-03   -1.5056    
  14  Prefactor     .10000E-03    6.7510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.7042        .13837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.1898        31.788        .27828E-03   -1.5412    
  20  norm          3.1129        4.7504        .19363E-03   -1.5355    
  21  norm          .10000E-03    4.8923        .31253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.3193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.7885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.5469        .89415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.785        15.352        .11203E-03   -1.4993    
  27  norm          6.9611        1.8447        .47834E-04   -1.5180    
  28  norm          .99595        1.9308        .17437E-02   -1.5508    
  29  Prefactor     4.4520        16.958        .19065E-03   -1.5286    
  30  Prefactor     .10000E-03    1.2057        .78989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    10.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    12.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    5.7681        .34172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     11.127        5.3504        .11246E-03   -1.5041    
  35  Normalizat    1.0713        .23438        .22866E-03   -.90679    
  36  Prefactor     .84109        .24138        .27458E-03   -.98231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61061e-10
Minuit parameter uncertainties:
  1  1.87516e-05
  2  1.5759e-05
  3  41.4021
  4  12.2415
  5  5.46069e-06
  6  2.38248e-07
  7  1.31463e-06
  8  8.84343
  9  1.10544e-07
  10  2.77252
  11  2.36461e-05
  12  5.07334e-07
  13  21.864
  14  2.78588e-06
  15  1.77038e-07
  16  1.72001e-06
  17  1.4017e-07
  18  1.18383e-06
  19  16.6967
  20  4.75098
  21  2.99799e-05
  22  8.5016e-06
  23  6.23959e-05
  24  5.74049e-06
  25  1.30964e-06
  26  15.3566
  27  1.84476
  28  1.93089
  29  16.9765
  30  3.26532e-06
  31  1.17379e-05
  32  3.74042e-06
  33  3.41643e-05
  34  5.35062
  35  0.23461
  36  0.24169
Done.

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

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  1.279e+01  1.536e+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:  8.411e-01  2.417e-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.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 352.339 -47.556
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 3.29e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 9.47e-06 +/- 1.14e-05

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

Saving results to:
/scratch/kocevski/953262/likelihoodResults_642384001_642643201_4FGL_J2329.3-4733_daily_bin1555.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) = 5464.28983012
delta logL = 0.00223259682571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5464.28841195
delta logL = 0.00365076420803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.725       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4233       1.0000          .0000       10.000    
     3 'Normalizat'    1.0742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83891       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=   5464.288     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      265 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.725        20.019        .10812E-03   -.29474E-03
   2  Index         2.4233        1.0201        .98271E-02   -.83000E-04
   3  Normalizat    1.0742        .22308        .22840E-03   -.16044E-03
   4  Prefactor     .83886        .23869        .27491E-03   -.25259E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7251
  Index      = 2.42327
  Normalizat = 1.0742
  Prefactor  = 0.838865
 **********
 **   18 **HESSE 
 **********

 FCN=   5464.288     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.725        18.946        .43247E-05   -1.4967    
   2  Index         2.4233        .96530        .39308E-03   -.54141    
   3  Normalizat    1.0742        .22295        .45681E-04   -.90584    
   4  Prefactor     .83886        .23867        .10996E-04   -.98311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84129e-10
Minuit parameter uncertainties:
  1  18.9546
  2  0.973656
  3  0.223145
  4  0.238964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953262': 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) = 5464.28841194
delta logL = 0.00365078077175

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  1.373e+01  1.895e+01  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  2.423e+00  9.737e-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:  8.389e-01  2.390e-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.074e+00  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 352.339 -47.556
Photon Index (Free Index): 2.42 +/- 0.97
Photon Flux (Free Index): 3.06e-08 +/- 4.51e-08
Energy Flux (Free Index): 9.73e-06 +/- 1.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/953262/cmap_HighResolution_642384001_642643201_4FGL_J2329.3-4733_daily_bin1555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.30e-03', comment='SUCCESS', photon_flux='3.29e-08', energy_flux2='9.73e-06', photon_flux_error='3.95e-08', dlogl='3.65e-03', energy_flux='9.47e-06', photon_flux2='3.06e-08', job_status='DONE', time_completed='2021-09-29 21:26:47.053775', photon_index_error2='0.97', photon_index2='2.42', ts='1.02', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.19e-05', EG='1.07', time_epoch_completed='1632976007.05', return_code='0', job_id='953262', GAL2='0.84', EG2='1.07', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='4.51e-08', ts2='1.04', photon_index='2.51' WHERE bin_id='1555' AND source_name='4FGL J2329.3-4733' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:26:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 953262: <4FGL_J2329.3-4733_daily_bin1555> in cluster <slac> Done

Job <4FGL_J2329.3-4733_daily_bin1555> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 21:10:17 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:10:19 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:19 2021
Terminated at Wed Sep 29 21:26:47 2021
Results reported at Wed Sep 29 21:26:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4733_daily_bin1555 352.339 -47.5558 642384001 642643201 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 :                                   940.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

