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


Performing analysis on: 4FGL_J2329.3-4733_daily_bin1041
RA = 352.339, Dec = -47.5558
tmin = 509155201, tmax = 509414401
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='950329', job_status='RUN', time_executed='2021-09-29 21:02:00.763269', time_epoch_executed='1632974520.76' WHERE source_name='4FGL J2329.3-4733' and cadence='daily' and bin_id='1041'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950329

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950329/ft1_4FGL_J2329.3-4733_daily_bin1041.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950329/ft2_4FGL_J2329.3-4733_daily_bin1041.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950329/ft1_4FGL_J2329.3-4733_daily_bin1041.fits outfile=/scratch/kocevski/950329/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1041.fits ra=352.339 dec=-47.5558 rad=12.0 tmin=509155201.0 tmax=509414401.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.60
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950329/ft2_4FGL_J2329.3-4733_daily_bin1041.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/950329/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1041.fits evtable="EVENTS" outfile="/scratch/kocevski/950329/ft1_filtered_4FGL_J2329.3-4733_daily_bin1041.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/950329/ft1_filtered_4FGL_J2329.3-4733_daily_bin1041.fits" evtable="EVENTS" scfile=/scratch/kocevski/950329/ft2_4FGL_J2329.3-4733_daily_bin1041.fits sctable="SC_DATA" outfile=/scratch/kocevski/950329/ltcube_509155201_509414401_4FGL_J2329.3-4733_daily_bin1041.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/950329/ft2_4FGL_J2329.3-4733_daily_bin1041.fits
.....................!
real 11.87
user 11.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950329/ft1_filtered_4FGL_J2329.3-4733_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/950329/ft2_4FGL_J2329.3-4733_daily_bin1041.fits sctable="SC_DATA" expcube=/scratch/kocevski/950329/ltcube_509155201_509414401_4FGL_J2329.3-4733_daily_bin1041.fits outfile=/scratch/kocevski/950329/expmap_509155201_509414401_4FGL_J2329.3-4733_daily_bin1041.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/950329/ltcube_509155201_509414401_4FGL_J2329.3-4733_daily_bin1041.fits
.....................!
real 190.31
user 185.12
sys 4.88

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/950329/ft1_filtered_4FGL_J2329.3-4733_daily_bin1041.fits scfile=/scratch/kocevski/950329/ft2_4FGL_J2329.3-4733_daily_bin1041.fits outfile=/scratch/kocevski/950329/cmap_509155201_509414401_4FGL_J2329.3-4733_daily_bin1041.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950329/ft1_filtered_4FGL_J2329.3-4733_daily_bin1041.fits scfile=/scratch/kocevski/950329/ft2_4FGL_J2329.3-4733_daily_bin1041.fits outfile=/scratch/kocevski/950329/cmap_HighResolution_509155201_509414401_4FGL_J2329.3-4733_daily_bin1041.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.760       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.821       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.059       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9807       1.0000         .10000E-03   10000.    
     9 'norm      '    .16953E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5206       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7514       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.913       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.5348       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10805E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    8.8168       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.096       1.0000         .10000E-03   10000.    
    25 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.996       1.0000         .10000E-03   10000.    
    27 'norm      '    2.0084       1.0000         .10000E-03   10000.    
    28 'norm      '    18.634       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    10.905       1.0000         .10000E-03   10000.    
    34 'Prefactor '    5.5839       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.0023       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .98357       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=   4430.656     FROM MIGRAD    STATUS=CONVERGED   1023 CALLS     5308 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    71.733       -.15544E-05** at limit **
   2  Prefactor     23.768        27.139       -.23243E-06    .67428E-05
   3  Prefactor     24.799        40.794        .15286E-05   -.27303E-04
   4  Prefactor     17.060        15.900        .28545E-07    .33801E-05
   5  Prefactor     .10000E-03    5.6391       -.15851E-06** at limit **
   6  Prefactor     .10000E-03    12.411        .91901E-08** at limit **
   7  Prefactor     .10000E-03    3.3808       -.57138E-07** at limit **
   8  Prefactor     2.9815        6.7444        .28600E-05    .15615E-04
   9  norm          .10033E-03    7.8916        .13098E-05** at limit **
  10  Prefactor     6.5209        5.4232        .60549E-07   -.10770E-04
  11  Prefactor     .10000E-03    29.501       -.59582E-06** at limit **
  12  Prefactor     9.7512        9.4324        .68805E-06    .67851E-06
  13  Prefactor     26.921        32.578       -.10824E-06    .14877E-04
  14  Prefactor     .10000E-03    17.343       -.74679E-06** at limit **
  15  Prefactor     .10000E-03    55.129        .19051E-05** at limit **
  16  Prefactor     7.5347        7.4267        .58010E-07    .45535E-06
  17  Prefactor     .10000E-03    19.611        .10111E-05** at limit **
  18  Prefactor     .10000E-03    13.121        .60018E-07** at limit **
  19  norm          8.8161        9.5493       -.18259E-06   -.48786E-06
  20  norm          .10000E-03    2.8471       -.34755E-08** at limit **
  21  norm          .10000E-03    2.8346        .23132E-06** at limit **
  22  norm          .10000E-03    11.957        .32740E-06** at limit **
  23  Prefactor     .10000E-03    2.7696       -.46148E-09** at limit **
  24  Prefactor     26.144        59.025       -.49599E-05    .19476E-04
  25  norm          .10000E-03    10.299        .25173E-05** at limit **
  26  Prefactor     29.001        19.276        .25403E-06    .29284E-05
  27  norm          2.0082        1.4499        .35399E-07    .66640E-04
  28  norm          18.640        9.1535        .47835E-06   -.11076E-03
  29  Prefactor     .10000E-03    8.0266       -.33391E-07** at limit **
  30  Prefactor     .10000E-03    1.1107       -.22563E-07** at limit **
  31  Prefactor     .10000E-03    7.3782       -.31589E-07** at limit **
  32  norm          .10000E-03    37.651        .62043E-07** at limit **
  33  Prefactor     10.908        6.9985        .25151E-07    .17877E-04
  34  Prefactor     5.5843        5.6252        .40831E-07    .12569E-04
  35  Normalizat    1.0018        .24699       -.19141E-05   -.19609E-04
  36  Prefactor     .98415        .24218        .17160E-05   -.19318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.7678
  Prefactor  = 24.7987
  Prefactor  = 17.0597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.98147
  norm       = 0.000100333
  Prefactor  = 6.52093
  Prefactor  = 0.0001
  Prefactor  = 9.75122
  Prefactor  = 26.921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.53474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.81608
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.1445
  norm       = 0.000100002
  Prefactor  = 29.0008
  norm       = 2.00821
  norm       = 18.6396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.9077
  Prefactor  = 5.58432
  Normalizat = 1.00176
  Prefactor  = 0.984146
 **********
 **   18 **HESSE 
 **********

 FCN=   4430.656     FROM HESSE     STATUS=OK           817 CALLS     6125 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.768        27.102        .82177E-04   -1.4733    
   3  Prefactor     24.799        40.773        .80405E-04   -1.4712    
   4  Prefactor     17.060        15.900        .96971E-04   -1.4882    
   5  Prefactor     .10000E-03    5.6690        .15435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3878        .11952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9815        6.7872        .11758E-02   -1.5363    
   9  norm          .10033E-03    97.966        .34743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5209        5.4182        .13517E-03   -1.5197    
  11  Prefactor     .10000E-03    29.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.7512        9.4267        .64163E-03   -1.5083    
  13  Prefactor     26.921        32.498        .77222E-04   -1.4670    
  14  Prefactor     .10000E-03    17.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.5347        7.4253        .14610E-03   -1.5159    
  17  Prefactor     .10000E-03    19.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    144.75        .45722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.8161        9.5505        .67495E-03   -1.5114    
  20  norm          .10000E-03    2.8482        .10968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.8409        .10949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    12.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.7715        .10814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     26.144        59.735        .78418E-04   -1.4685    
  25  norm          .10000E-03    10.882        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     29.001        19.290        .74403E-04   -1.4630    
  27  norm          2.0082        1.4225        .63553E-04   -1.5425    
  28  norm          18.640        9.1172        .92783E-04   -1.4844    
  29  Prefactor     .10000E-03    8.0495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.1139        .68487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    7.3804        .17659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    37.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     10.908        6.9894        .12132E-03   -1.5047    
  34  Prefactor     5.5843        5.6200        .14687E-03   -1.5235    
  35  Normalizat    1.0018        .28722        .25854E-03   -.92972    
  36  Prefactor     .98415        .28268        .27657E-03   -.93260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38267e-09
Minuit parameter uncertainties:
  1  0.000175665
  2  27.1164
  3  40.8183
  4  15.9039
  5  1.24627e-05
  6  1.90715e-06
  7  3.33687e-06
  8  6.78892
  9  0.0114436
  10  5.41857
  11  4.0748e-05
  12  9.42809
  13  32.519
  14  5.50834e-05
  15  0.000213427
  16  7.42617
  17  6.97712e-05
  18  8.2416e-05
  19  9.55214
  20  4.04289e-07
  21  1.3553e-05
  22  7.05247e-06
  23  1.95266e-07
  24  59.8722
  25  0.000321108
  26  19.2945
  27  1.42248
  28  9.11785
  29  4.8643e-06
  30  6.27842e-07
  31  8.68795e-07
  32  4.53404e-05
  33  6.98987
  34  5.62054
  35  0.287666
  36  0.283102
Done.

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

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  2.900e+01  1.929e+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.841e-01  2.831e-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.002e+00  2.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.70
Ra Dec: 352.339 -47.556
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 7.46e-08 +/- 4.96e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.43e-05

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) = 4430.5168055
delta logL = 0.139640498762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4430.49030622
delta logL = 0.166139777431

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.195       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1189       1.0000          .0000       10.000    
     3 'Normalizat'    .93801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0321       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=   4430.490     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      244 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.145        149.24        .25688E-02   -.12559E-03
   2  Index         3.1203        3.1427        .10882        .63477E-04
   3  Normalizat    .93830        .10109        .45386E-01    .48556E-05
   4  Prefactor     1.0320        .87620E-01    .61292E-01    .15829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1454
  Index      = 3.12032
  Normalizat = 0.938304
  Prefactor  = 1.03201
 **********
 **   18 **HESSE 
 **********

 FCN=   4430.490     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.145        95.698        .10275E-03   -1.4929    
   2  Index         3.1203        3.1002        .40636E-02   -.38541    
   3  Normalizat    .93830        .39352        .26570E-03   -.95127    
   4  Prefactor     1.0320        .37027        .27106E-03   -.91670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.99397e-11
Minuit parameter uncertainties:
  1  76.3217
  2  3.39628
  3  0.394733
  4  0.371195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950329': 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) = 4430.49030211
delta logL = 0.166143889589

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  1.515e+01  7.632e+01  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  3.120e+00  3.396e+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:  1.032e+00  3.712e-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:  9.383e-01  3.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.15
Ra Dec: 352.339 -47.556
Photon Index (Free Index): 3.12 +/- 3.40
Photon Flux (Free Index): 1.19e-07 +/- 1.85e-07
Energy Flux (Free Index): 2.25e-05 +/- 1.24e-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/950329/cmap_HighResolution_509155201_509414401_4FGL_J2329.3-4733_daily_bin1041.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.46e-08', energy_flux2='2.25e-05', photon_flux_error='4.96e-08', dlogl='1.66e-01', energy_flux='2.15e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-29 21:14:17.834051', photon_index_error2='3.40', photon_index2='3.12', ts='5.70', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='1.00', time_epoch_completed='1632975257.83', return_code='0', job_id='950329', GAL2='1.03', EG2='0.94', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='1.85e-07', ts2='6.15', photon_index='2.51' WHERE bin_id='1041' AND source_name='4FGL J2329.3-4733' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:14:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 950329: <4FGL_J2329.3-4733_daily_bin1041> in cluster <slac> Done

Job <4FGL_J2329.3-4733_daily_bin1041> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 21:00:35 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:00:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 21:00:36 2021
Terminated at Wed Sep 29 21:14:18 2021
Results reported at Wed Sep 29 21:14:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4733_daily_bin1041 352.339 -47.5558 509155201 509414401 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 :                                   715.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

