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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1171
RA = 352.329, Dec = -49.9324
tmin = 542851201, tmax = 543110401
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='968480', job_status='RUN', time_executed='2021-09-29 21:31:41.330382', time_epoch_executed='1632976301.33' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968480

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968480/ft1_4FGL_J2329.3-4955_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968480/ft2_4FGL_J2329.3-4955_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968480/ft1_4FGL_J2329.3-4955_daily_bin1171.fits outfile=/scratch/kocevski/968480/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1171.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.76
user 0.59
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/968480/ft2_4FGL_J2329.3-4955_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968480/ft2_4FGL_J2329.3-4955_daily_bin1171.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/968480/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/968480/ft1_filtered_4FGL_J2329.3-4955_daily_bin1171.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.45
user 0.31
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968480/ft1_filtered_4FGL_J2329.3-4955_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/968480/ft2_4FGL_J2329.3-4955_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/968480/ltcube_542851201_543110401_4FGL_J2329.3-4955_daily_bin1171.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/968480/ft2_4FGL_J2329.3-4955_daily_bin1171.fits
.....................!
real 1.90
user 1.58
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968480/ft1_filtered_4FGL_J2329.3-4955_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/968480/ft2_4FGL_J2329.3-4955_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/968480/ltcube_542851201_543110401_4FGL_J2329.3-4955_daily_bin1171.fits outfile=/scratch/kocevski/968480/expmap_542851201_543110401_4FGL_J2329.3-4955_daily_bin1171.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/968480/ltcube_542851201_543110401_4FGL_J2329.3-4955_daily_bin1171.fits
.....................!
real 190.51
user 185.03
sys 4.92

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 183 point sources and 0 extended sources

Setting source of interest to:
4FGL J2329.3-4955 @ 352.329 -49.9324

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/968480/ft1_filtered_4FGL_J2329.3-4955_daily_bin1171.fits scfile=/scratch/kocevski/968480/ft2_4FGL_J2329.3-4955_daily_bin1171.fits outfile=/scratch/kocevski/968480/cmap_542851201_543110401_4FGL_J2329.3-4955_daily_bin1171.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.329 yref=-49.9324 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.50
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968480/ft1_filtered_4FGL_J2329.3-4955_daily_bin1171.fits scfile=/scratch/kocevski/968480/ft2_4FGL_J2329.3-4955_daily_bin1171.fits outfile=/scratch/kocevski/968480/cmap_HighResolution_542851201_543110401_4FGL_J2329.3-4955_daily_bin1171.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.329 yref=-49.9324 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.36
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968480/ft1_filtered_4FGL_J2329.3-4955_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/968480/ft2_4FGL_J2329.3-4955_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968480/Model_4FGL_J2329.3-4955_daily_bin1171.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/968480/ft1_filtered_4FGL_J2329.3-4955_daily_bin1171.fits...........................!
real 14.82
user 13.52
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/968480/ft1_filtered_4FGL_J2329.3-4955_daily_bin1171.fits', '/scratch/kocevski/968480/ft2_4FGL_J2329.3-4955_daily_bin1171.fits', expMap='/scratch/kocevski/968480/expmap_542851201_543110401_4FGL_J2329.3-4955_daily_bin1171.fits', expCube='/scratch/kocevski/968480/ltcube_542851201_543110401_4FGL_J2329.3-4955_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/968480/Model_4FGL_J2329.3-4955_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2329.3-4955'

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  7.291e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.177e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
478         beta:  1.055e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
479           Eb:  5.219e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/968480/ft1_filtered_4FGL_J2329.3-4955_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/968480/ft2_4FGL_J2329.3-4955_daily_bin1171.fits
Exposure map: /scratch/kocevski/968480/expmap_542851201_543110401_4FGL_J2329.3-4955_daily_bin1171.fits
Exposure cube: /scratch/kocevski/968480/ltcube_542851201_543110401_4FGL_J2329.3-4955_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/968480/Model_4FGL_J2329.3-4955_daily_bin1171.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) = 287.406761734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    78.915       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10499E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12569E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .38360E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.681       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    53.217       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11036E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9168       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.4356       1.0000         .10000E-03   10000.    
    25 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    233.86       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .95923E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12858E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    27.407       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .64392E-01   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .53984       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .87571       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   287.3478     FROM MIGRAD    STATUS=CONVERGED    925 CALLS     4883 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    235.38        .56998E-06** at limit **
   2  Prefactor     .10000E-03    179.89        .23727E-05** at limit **
   3  Prefactor     .10000E-03    262.42       -.91692E-06** at limit **
   4  Prefactor     .10000E-03    67.113       -.20192E-06** at limit **
   5  Prefactor     78.942        83.932        .50722E-06   -.99076E-04
   6  Prefactor     .10000E-03    35.871       -.12749E-06** at limit **
   7  norm          .10000E-03    150.26       -.15109E-06** at limit **
   8  norm          .10000E-03    32.425        .34809E-06** at limit **
   9  Prefactor     .10000E-03    9.9290        .34738E-07** at limit **
  10  Prefactor     .10000E-03    11.435        .80806E-07** at limit **
  11  Prefactor     .10000E-03    67.379        .68644E-06** at limit **
  12  Prefactor     .10000E-03    67.833        .34756E-05** at limit **
  13  Prefactor     .10000E-03    371.03       -.20992E-06** at limit **
  14  Prefactor     31.690        39.375        .67313E-06   -.17836E-04
  15  Prefactor     .10000E-03    106.46       -.13277E-06** at limit **
  16  Prefactor     .10000E-03    44.499        .17821E-06** at limit **
  17  norm          .10000E-03    49.703       -.11564E-06** at limit **
  18  norm          .10000E-03    29.980        .29896E-07** at limit **
  19  norm          53.195        54.260       -.66528E-06   -.61832E-04
  20  Prefactor     .10000E-03    18.477        .84695E-07** at limit **
  21  Prefactor     .10000E-03    107.93        .20946E-06** at limit **
  22  norm          1.9146        74.286        .55622E-05   -.34593E-05
  23  Prefactor     .10000E-03    38.072        .24643E-06** at limit **
  24  norm          2.4540        7.2550        .21804E-05   -.14121E-03
  25  norm          .10000E-03    18.667        .17816E-06** at limit **
  26  Prefactor     234.17        198.99        .45746E-05   -.10789E-03
  27  Prefactor     .10101E-03    89.466        .25333E-05** at limit **
  28  Prefactor     .10000E-03    279.31        .10082E-05** at limit **
  29  norm          .10000E-03    99.100       -.22584E-06** at limit **
  30  Prefactor     27.427        49.747        .43421E-06   -.83736E-04
  31  Prefactor     .40938        491.97        .58963E-04   -.10122E-03
  32  Normalizat    .53532        1.0350       -.32432E-04   -.21970E-03
  33  Prefactor     .87893        .95465        .62366E-06   -.12196E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.9421
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 31.6899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 53.1949
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.91461
  Prefactor  = 0.0001
  norm       = 2.45399
  norm       = 0.0001
  Prefactor  = 234.168
  Prefactor  = 0.000101005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.4268
  Prefactor  = 0.409379
  Normalizat = 0.535318
  Prefactor  = 0.878931
 **********
 **   18 **HESSE 
 **********

 FCN=   287.3478     FROM HESSE     STATUS=OK           671 CALLS     5554 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    235.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    179.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    262.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    67.137        .13586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     78.942        83.969        .22604E-03   -1.3929    
   6  Prefactor     .10000E-03    35.871        .99285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    150.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    32.430        .94402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.9290        .52216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.436        .56040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    67.413        .13617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    68.447        .13704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    371.06        .19546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.690        39.377        .71187E-04   -1.4581    
  15  Prefactor     .10000E-03    106.46        .17126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    44.503        .11061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    49.704        .11690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    29.980        .90763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          53.195        54.047        .54981E-04   -1.4248    
  20  Prefactor     .10000E-03    18.478        .71240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    107.93        .17242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9146        74.504        .25722E-03   -1.5431    
  23  Prefactor     .10000E-03    38.073        .10229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.4540        7.4573        .73430E-04   -1.5395    
  25  norm          .10000E-03    18.664        .71548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     234.17        199.91        .13234E-03   -1.2635    
  27  Prefactor     .10101E-03    389.16        .24962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    279.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    99.097        .16521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     27.427        50.306        .76524E-04   -1.4660    
  31  Prefactor     .40938        529.67        .23268E-02   -1.5580    
  32  Normalizat    .53532        1.1216        .29992E-03   -1.1081    
  33  Prefactor     .87893        1.0033        .24895E-03   -.96881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05787e-09
Minuit parameter uncertainties:
  1  0.000429769
  2  0.000795362
  3  0.000305036
  4  0.000192092
  5  84.0952
  6  4.70379e-05
  7  3.25281e-05
  8  9.14127e-05
  9  2.75236e-06
  10  7.82722e-06
  11  0.000189652
  12  0.00102467
  13  0.000612413
  14  39.4097
  15  0.00010843
  16  0.000109717
  17  9.72936e-05
  18  3.7333e-06
  19  54.0968
  20  6.56741e-06
  21  2.03157e-05
  22  23.9183
  23  4.38151e-05
  24  7.46016
  25  2.81128e-05
  26  200.496
  27  0.0398141
  28  0.000546932
  29  2.3068e-05
  30  50.3842
  31  29.7141
  32  1.17523
  33  1.02562
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  2.454e+00  7.460e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.177e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
478         beta:  1.055e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
479           Eb:  5.219e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  8.789e-01  1.026e+00  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  5.353e-01  1.175e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 352.329 -49.932
Photon Flux Upper Limit: 6.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.58e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968480/likelihoodResults_542851201_543110401_4FGL_J2329.3-4955_daily_bin1171.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) = 287.171081003
delta logL = 0.176711690178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 287.153466834
delta logL = 0.194325858662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9185       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5000       1.0000          .0000       5.0000    
     3 'Normalizat'    .37418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97473       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   287.1535     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9084        152.35        .74545E-02    .30790E-04
   2  alpha         3.5029        2.5448        .19429        .26122E-05
   3  Normalizat    .37378        .31890        .79784E-01    .27441E-05
   4  Prefactor     .97505        .33379        .45951E-01    .67340E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.90836
  alpha      = 3.50287
  Normalizat = 0.373783
  Prefactor  = 0.975046
 **********
 **   18 **HESSE 
 **********

 FCN=   287.1535     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .88E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9084        5.0216        .33183E-04   -1.5432    
   2  alpha         3.5029        1.8594        .84658E-03    .41277    
   3  Normalizat    .37378        .88341        .35340E-03   -1.1868    
   4  Prefactor     .97505        .92248        .23648E-03   -.93566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84474e-14
Minuit parameter uncertainties:
  1  5.0227
  2  2.16983
  3  0.92003
  4  0.938033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968480': 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) = 287.153464234
delta logL = 0.194328459272

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.908e+00  5.023e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  3.503e+00  2.170e+00  0.000e+00  5.000e+00 ( 1.000e+00)
478         beta:  1.055e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
479           Eb:  5.219e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  9.750e-01  9.380e-01  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  3.738e-01  9.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
Ra Dec: 352.329 -49.932

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/968480/cmap_HighResolution_542851201_543110401_4FGL_J2329.3-4955_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-04', job_status='DONE', photon_flux_upper_limit='6.78e-07', time_completed='2021-09-29 21:37:08.191986', job_id='968480', GAL2='0.98', fit_tolerance='1e-08', EG2='0.37', EG='0.54', time_epoch_completed='1632976628.19', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.94e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1171' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:37:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 968480: <4FGL_J2329.3-4955_daily_bin1171> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin1171> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 21:30:30 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:30:32 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:30:32 2021
Terminated at Wed Sep 29 21:37:09 2021
Results reported at Wed Sep 29 21:37:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1171 352.329 -49.9324 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2329.3-4955 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   330.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   396 sec.
    Turnaround time :                            399 sec.

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

