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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1058
RA = 352.329, Dec = -49.9324
tmin = 513561601, tmax = 513820801
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='968207', job_status='RUN', time_executed='2021-09-29 21:31:24.595408', time_epoch_executed='1632976284.6' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1058'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968207

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968207/ft1_4FGL_J2329.3-4955_daily_bin1058.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968207/ft2_4FGL_J2329.3-4955_daily_bin1058.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968207/ft1_4FGL_J2329.3-4955_daily_bin1058.fits outfile=/scratch/kocevski/968207/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1058.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=513561601.0 tmax=513820801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.66
user 3.45
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968207/ft1_filtered_4FGL_J2329.3-4955_daily_bin1058.fits" evtable="EVENTS" scfile=/scratch/kocevski/968207/ft2_4FGL_J2329.3-4955_daily_bin1058.fits sctable="SC_DATA" outfile=/scratch/kocevski/968207/ltcube_513561601_513820801_4FGL_J2329.3-4955_daily_bin1058.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/968207/ft2_4FGL_J2329.3-4955_daily_bin1058.fits
.....................!
real 12.17
user 11.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968207/ft1_filtered_4FGL_J2329.3-4955_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/968207/ft2_4FGL_J2329.3-4955_daily_bin1058.fits sctable="SC_DATA" expcube=/scratch/kocevski/968207/ltcube_513561601_513820801_4FGL_J2329.3-4955_daily_bin1058.fits outfile=/scratch/kocevski/968207/expmap_513561601_513820801_4FGL_J2329.3-4955_daily_bin1058.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/968207/ltcube_513561601_513820801_4FGL_J2329.3-4955_daily_bin1058.fits
.....................!
real 192.04
user 186.08
sys 5.58

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/968207/ft1_filtered_4FGL_J2329.3-4955_daily_bin1058.fits scfile=/scratch/kocevski/968207/ft2_4FGL_J2329.3-4955_daily_bin1058.fits outfile=/scratch/kocevski/968207/cmap_513561601_513820801_4FGL_J2329.3-4955_daily_bin1058.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968207/ft1_filtered_4FGL_J2329.3-4955_daily_bin1058.fits scfile=/scratch/kocevski/968207/ft2_4FGL_J2329.3-4955_daily_bin1058.fits outfile=/scratch/kocevski/968207/cmap_HighResolution_513561601_513820801_4FGL_J2329.3-4955_daily_bin1058.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968207/ft1_filtered_4FGL_J2329.3-4955_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/968207/ft2_4FGL_J2329.3-4955_daily_bin1058.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968207/Model_4FGL_J2329.3-4955_daily_bin1058.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/968207/ft1_filtered_4FGL_J2329.3-4955_daily_bin1058.fits.....................!
real 37.69
user 36.40
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/968207/ft1_filtered_4FGL_J2329.3-4955_daily_bin1058.fits', '/scratch/kocevski/968207/ft2_4FGL_J2329.3-4955_daily_bin1058.fits', expMap='/scratch/kocevski/968207/expmap_513561601_513820801_4FGL_J2329.3-4955_daily_bin1058.fits', expCube='/scratch/kocevski/968207/ltcube_513561601_513820801_4FGL_J2329.3-4955_daily_bin1058.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/968207/Model_4FGL_J2329.3-4955_daily_bin1058.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/968207/ft1_filtered_4FGL_J2329.3-4955_daily_bin1058.fits
Spacecraft file(s): /scratch/kocevski/968207/ft2_4FGL_J2329.3-4955_daily_bin1058.fits
Exposure map: /scratch/kocevski/968207/expmap_513561601_513820801_4FGL_J2329.3-4955_daily_bin1058.fits
Exposure cube: /scratch/kocevski/968207/ltcube_513561601_513820801_4FGL_J2329.3-4955_daily_bin1058.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/968207/Model_4FGL_J2329.3-4955_daily_bin1058.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) = 4905.05857817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    10.893       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .52829       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0298       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .62924E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.2255       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3189       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.581       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8435       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5029       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11498       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.6239       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.139       1.0000         .10000E-03   10000.    
    24 'norm      '    .17891       1.0000         .10000E-03   10000.    
    25 'norm      '    .22198E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.855       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .33744       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .57591       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.7849       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4905.052     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     3886 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10068E-03    17.654        .33020E-05** at limit **
   2  Prefactor     10.900        8.8569       -.45276E-05    .86160E-02
   3  Prefactor     .79871        125.94       -.22757E-04   -.92967E-03
   4  Prefactor     3.0305        1.0352        .25873E-06    .50152E-03
   5  Prefactor     .10000E-03    7.0600        .84151E-05** at limit **
   6  Prefactor     .10003E-03    1.5133       -.15992E-05** at limit **
   7  norm          .10101E-03    43.033        .40534E-05** at limit **
   8  norm          5.2252        1.1932       -.49274E-06   -.13400E-02
   9  Prefactor     6.3196        2.9984       -.18638E-05   -.44451E-02
  10  Prefactor     14.578        2.6748       -.86101E-06   -.71726E-02
  11  Prefactor     1.8559        1.5352       -.17277E-05    .15323E-03
  12  Prefactor     6.4888        1.1756        .23014E-06    .43146E-04
  13  Prefactor     .10050E-03    14.567       -.49418E-05** at limit **
  14  Prefactor     .10000E-03    5.9775        .40822E-05** at limit **
  15  Prefactor     .10031E-03    14.058       -.65366E-06** at limit **
  16  Prefactor     .12540E-03    465.90        .58248E-04** at limit **
  17  norm          .10000E-03    4.5506       -.55487E-05** at limit **
  18  norm          .10000E-03    3.8492        .97439E-06** at limit **
  19  norm          .10000E-03    3.2208       -.64724E-06** at limit **
  20  Prefactor     .10000E-03    3.5194       -.83262E-06** at limit **
  21  Prefactor     .10003E-03    18.908       -.10472E-04** at limit **
  22  norm          6.6200        4.6476       -.27497E-05   -.36756E-02
  23  Prefactor     15.143        1.2353       -.36827E-06    .15638E-03
  24  norm          .18159        1.6173       -.75066E-06   -.88637E-04
  25  norm          .10007E-03    21.709       -.16284E-04** at limit **
  26  Prefactor     18.829        5.7546        .25620E-05   -.55863E-02
  27  Prefactor     .10000E-03    1.2869       -.19064E-06** at limit **
  28  Prefactor     .10000E-03    9.7372        .39748E-05** at limit **
  29  norm          .10001E-03    10.884        .21977E-05** at limit **
  30  Prefactor     .32660        4.7924       -.33764E-05   -.26510E-02
  31  Prefactor     .10000E-03    2.9544       -.17525E-05** at limit **
  32  Normalizat    .57549        .26290        .15000E-05    .55011E-04
  33  Prefactor     1.7850        .29412        .63280E-05    .92286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100675
  Prefactor  = 10.9004
  Prefactor  = 0.798711
  Prefactor  = 3.0305
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  norm       = 0.000101013
  norm       = 5.22517
  Prefactor  = 6.31959
  Prefactor  = 14.5783
  Prefactor  = 1.85589
  Prefactor  = 6.48878
  Prefactor  = 0.000100496
  Prefactor  = 0.0001
  Prefactor  = 0.000100312
  Prefactor  = 0.000125398
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  norm       = 6.61998
  Prefactor  = 15.1433
  norm       = 0.181592
  norm       = 0.000100074
  Prefactor  = 18.8291
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.000100007
  Prefactor  = 0.326604
  Prefactor  = 0.0001
  Normalizat = 0.575493
  Prefactor  = 1.78505
 **********
 **   18 **HESSE 
 **********

 FCN=   4905.052     FROM HESSE     STATUS=OK           789 CALLS     4675 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10068E-03    27.295        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.900        33.503        .30348E-02   -1.5048    
   3  Prefactor     .79871        53.877        .14675       -1.5529    
   4  Prefactor     3.0305        8.3331        .58282E-02   -1.5360    
   5  Prefactor     .10000E-03    7.0312        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    9.8214        .77403E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10101E-03    52.422        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.2252        5.2426        .43961E-02   -1.5251    
   9  Prefactor     6.3196        5.4679        .39920E-02   -1.5205    
  10  Prefactor     14.578        8.5656        .26223E-02   -1.4944    
  11  Prefactor     1.8559        131.79        .76793E-02   -1.5436    
  12  Prefactor     6.4888        13.415        .39345E-02   -1.5198    
  13  Prefactor     .10050E-03    36.021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.9466        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10031E-03    33.933        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12540E-03    17.225        .95824E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.5557        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.8471        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.2189        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5211        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10003E-03    43.432        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.6200        5.9437        .38980E-02   -1.5193    
  23  Prefactor     15.143        16.633        .25735E-02   -1.4929    
  24  norm          .18159        1.0789        .24058E-01   -1.5623    
  25  norm          .10007E-03    5.5733        .50898E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.829        26.152        .23060E-02   -1.4840    
  27  Prefactor     .10000E-03    1.2816        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.7508        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10001E-03    10.924        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .32660        3.7361        .71308E-01   -1.5594    
  31  Prefactor     .10000E-03    2.9374        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .57549        .24533        .77322E-01   -1.0903    
  33  Prefactor     1.7850        .24836        .52255E-01   -.69840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02686e-06
Minuit parameter uncertainties:
  1  0.0085886
  2  33.5612
  3  13.1313
  4  8.33629
  5  0.00010524
  6  0.00112073
  7  0.0145883
  8  5.24308
  9  5.46833
  10  8.56632
  11  31.3499
  12  13.4212
  13  0.00845523
  14  1.41579e-05
  15  0.00650628
  16  0.0418444
  17  2.51093e-05
  18  5.17858e-06
  19  1.01892e-06
  20  1.15892e-06
  21  0.00241285
  22  5.94427
  23  16.6385
  24  0.885038
  25  0.00128019
  26  26.1678
  27  1.155e-06
  28  0.000331804
  29  0.000562658
  30  2.2091
  31  5.02615e-06
  32  0.245791
  33  0.248531
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.816e-01  8.850e-01  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:  1.785e+00  2.485e-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:  5.755e-01  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 352.329 -49.932
Photon Flux Upper Limit: 8.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968207/likelihoodResults_513561601_513820801_4FGL_J2329.3-4955_daily_bin1058.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) = 4905.04945572
delta logL = 0.00264346808854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4905.04931364
delta logL = 0.00278554331271

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19924       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3797       1.0000          .0000       5.0000    
     3 'Normalizat'    .57378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7860       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=   4905.049     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      221 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19880        48.960        .23680E-01    .13562E-02
   2  alpha         2.3791        3.2860        .41212        .11993E-04
   3  Normalizat    .57379        .45087E-01    .77430E-01    .41705E-04
   4  Prefactor     1.7860        .50710E-01    .52244E-01   -.19805E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.198798
  alpha      = 2.37915
  Normalizat = 0.573794
  Prefactor  = 1.78596
 **********
 **   18 **HESSE 
 **********

 FCN=   4905.049     FROM HESSE     STATUS=OK            35 CALLS      256 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19880        1.6372        .12454E-02   -1.5619    
   2  alpha         2.3791        3.5926        .62104E-01   -.48359E-01
   3  Normalizat    .57379        .26265        .34285E-03   -1.0911    
   4  Prefactor     1.7860        .29404        .23095E-03   -.69816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09693e-10
Minuit parameter uncertainties:
  1  1.14077
  2  2.81145
  3  0.263226
  4  0.29433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968207': 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) = 4905.04931353
delta logL = 0.00278565474036

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.988e-01  1.141e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.379e+00  2.811e+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:  1.786e+00  2.943e-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:  5.738e-01  2.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/968207/cmap_HighResolution_513561601_513820801_4FGL_J2329.3-4955_daily_bin1058.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-05', job_status='DONE', photon_flux_upper_limit='8.58e-08', time_completed='2021-09-29 21:43:55.017853', job_id='968207', GAL2='1.79', fit_tolerance='1e-08', EG2='0.57', EG='0.58', time_epoch_completed='1632977035.02', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.79', dlogl='2.79e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1058' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:43:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 968207: <4FGL_J2329.3-4955_daily_bin1058> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1058 352.329 -49.9324 513561601 513820801 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 :                                   747.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            817 sec.

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

