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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1023
RA = 352.329, Dec = -49.9324
tmin = 504489601, tmax = 504748801
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='968125', job_status='RUN', time_executed='2021-09-29 21:33:05.928495', time_epoch_executed='1632976385.93' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968125

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968125/ft1_4FGL_J2329.3-4955_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968125/ft2_4FGL_J2329.3-4955_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968125/ft1_4FGL_J2329.3-4955_daily_bin1023.fits outfile=/scratch/kocevski/968125/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1023.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=504489601.0 tmax=504748801.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.42
user 3.20
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968125/ft2_4FGL_J2329.3-4955_daily_bin1023.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/968125/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1023.fits evtable="EVENTS" outfile="/scratch/kocevski/968125/ft1_filtered_4FGL_J2329.3-4955_daily_bin1023.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.41
user 0.25
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968125/ft1_filtered_4FGL_J2329.3-4955_daily_bin1023.fits" evtable="EVENTS" scfile=/scratch/kocevski/968125/ft2_4FGL_J2329.3-4955_daily_bin1023.fits sctable="SC_DATA" outfile=/scratch/kocevski/968125/ltcube_504489601_504748801_4FGL_J2329.3-4955_daily_bin1023.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/968125/ft2_4FGL_J2329.3-4955_daily_bin1023.fits
.....................!
real 9.16
user 8.87
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968125/ft1_filtered_4FGL_J2329.3-4955_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/968125/ft2_4FGL_J2329.3-4955_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/968125/ltcube_504489601_504748801_4FGL_J2329.3-4955_daily_bin1023.fits outfile=/scratch/kocevski/968125/expmap_504489601_504748801_4FGL_J2329.3-4955_daily_bin1023.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/968125/ltcube_504489601_504748801_4FGL_J2329.3-4955_daily_bin1023.fits
.....................!
real 146.24
user 142.33
sys 3.67

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/968125/ft1_filtered_4FGL_J2329.3-4955_daily_bin1023.fits scfile=/scratch/kocevski/968125/ft2_4FGL_J2329.3-4955_daily_bin1023.fits outfile=/scratch/kocevski/968125/cmap_504489601_504748801_4FGL_J2329.3-4955_daily_bin1023.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.46
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968125/ft1_filtered_4FGL_J2329.3-4955_daily_bin1023.fits scfile=/scratch/kocevski/968125/ft2_4FGL_J2329.3-4955_daily_bin1023.fits outfile=/scratch/kocevski/968125/cmap_HighResolution_504489601_504748801_4FGL_J2329.3-4955_daily_bin1023.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.46
user 0.32
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968125/ft1_filtered_4FGL_J2329.3-4955_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/968125/ft2_4FGL_J2329.3-4955_daily_bin1023.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968125/Model_4FGL_J2329.3-4955_daily_bin1023.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/968125/ft1_filtered_4FGL_J2329.3-4955_daily_bin1023.fits.....................!
real 29.73
user 28.70
sys 0.98

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.873       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.988       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .25609       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5774       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3595       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.090       1.0000         .10000E-03   10000.    
    13 'Prefactor '    51.256       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14046E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1247       1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.8462       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .31746       1.0000         .10000E-03   10000.    
    25 'norm      '    5.0183       1.0000         .10000E-03   10000.    
    26 'Prefactor '    32.661       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.6037       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.145       1.0000         .10000E-03   10000.    
    29 'norm      '    14.660       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.8673       1.0000         .10000E-03   10000.    
    31 'Prefactor '    9.0947       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .99821       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .87687       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=   4858.576     FROM MIGRAD    STATUS=CONVERGED    940 CALLS     4656 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.067        71.935       -.37536E-05   -.31433E-04
   2  Prefactor     18.990        18.215       -.89875E-06   -.52388E-04
   3  Prefactor     .10000E-03    35.236        .87266E-08** at limit **
   4  Prefactor     .10000E-03    10.019       -.41749E-06** at limit **
   5  Prefactor     .10000E-03    9.0863       -.41515E-06** at limit **
   6  Prefactor     .10000E-03    3.8391       -.35811E-08** at limit **
   7  norm          .84371E-01    33.218        .42879E-05   -.33649E-03
   8  norm          .10000E-03    2.8650       -.18328E-07** at limit **
   9  Prefactor     4.5769        4.5714       -.14687E-07    .53628E-05
  10  Prefactor     9.3597        6.4045        .71770E-07    .15651E-04
  11  Prefactor     .10000E-03    9.4707        .29588E-06** at limit **
  12  Prefactor     18.083        13.487        .99525E-06    .11560E-04
  13  Prefactor     51.486        123.36       -.17124E-04   -.59321E-04
  14  Prefactor     .10000E-03    6.1108        .44604E-07** at limit **
  15  Prefactor     .10000E-03    24.418        .38859E-06** at limit **
  16  Prefactor     8.1270        17.159       -.75820E-06   -.27565E-04
  17  norm          .10000E-03    9.5970        .32315E-06** at limit **
  18  norm          4.8447        5.0333       -.92578E-08    .14728E-04
  19  norm          .10000E-03    1.6301       -.55282E-08** at limit **
  20  Prefactor     .10000E-03    2.5307       -.66329E-08** at limit **
  21  Prefactor     .10000E-03    14.650        .38771E-07** at limit **
  22  norm          .10000E-03    1.9175        .54621E-08** at limit **
  23  Prefactor     .10000E-03    13.248       -.59830E-07** at limit **
  24  norm          .31853        1.0009        .19113E-06    .12775E-03
  25  norm          5.0180        4.1089        .11741E-06    .38867E-04
  26  Prefactor     32.658        19.708        .75327E-06    .68233E-04
  27  Prefactor     2.5919        5.1380        .12245E-05    .11447E-03
  28  Prefactor     14.216        32.064       -.15461E-05    .73568E-05
  29  norm          14.653        24.148        .59511E-06    .19160E-04
  30  Prefactor     1.8762        6.1248       -.71363E-07    .92719E-05
  31  Prefactor     9.0943        5.8476       -.25447E-07   -.28277E-04
  32  Normalizat    .99811        .20875        .42191E-06   -.51743E-04
  33  Prefactor     .87685        .21313       -.28970E-07   -.62254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.067
  Prefactor  = 18.9895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0843708
  norm       = 0.0001
  Prefactor  = 4.57694
  Prefactor  = 9.35975
  Prefactor  = 0.0001
  Prefactor  = 18.0827
  Prefactor  = 51.486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.12701
  norm       = 0.0001
  norm       = 4.84466
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.318534
  norm       = 5.01801
  Prefactor  = 32.6579
  Prefactor  = 2.59192
  Prefactor  = 14.2158
  norm       = 14.6532
  Prefactor  = 1.87618
  Prefactor  = 9.09431
  Normalizat = 0.998108
  Prefactor  = 0.876851
 **********
 **   18 **HESSE 
 **********

 FCN=   4858.576     FROM HESSE     STATUS=OK           707 CALLS     5363 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.067        71.947        .59851E-04   -1.4364    
   2  Prefactor     18.990        18.214        .91916E-04   -1.4836    
   3  Prefactor     .10000E-03    35.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.2197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8488        .13337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .84371E-01    30.438        .11802       -1.5650    
   8  norm          .10000E-03    2.8677        .11523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5769        4.5631        .14345E-03   -1.5280    
  10  Prefactor     9.3597        6.4018        .13100E-03   -1.5096    
  11  Prefactor     .10000E-03    9.4765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.083        13.484        .94168E-04   -1.4857    
  13  Prefactor     51.486        123.66        .28009E-03   -1.4272    
  14  Prefactor     .10000E-03    19.799        .33206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.1270        16.784        .14066E-03   -1.5138    
  17  norm          .10000E-03    9.6305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.8447        5.0453        .15198E-03   -1.5268    
  19  norm          .10000E-03    1.6320        .86911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5356        .10826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.9425        .94180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .31853        .94407        .10856E-03   -1.5595    
  25  norm          5.0180        4.1033        .61748E-03   -1.5260    
  26  Prefactor     32.658        19.717        .70114E-04   -1.4564    
  27  Prefactor     2.5919        5.1731        .82645E-03   -1.5386    
  28  Prefactor     14.216        32.110        .10650E-03   -1.4954    
  29  norm          14.653        24.043        .10461E-03   -1.4942    
  30  Prefactor     1.8762        6.0645        .26824E-03   -1.5434    
  31  Prefactor     9.0943        5.8649        .12545E-03   -1.5105    
  32  Normalizat    .99811        .25287        .23737E-03   -.93094    
  33  Prefactor     .87685        .25716        .26557E-03   -.96955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06029e-09
Minuit parameter uncertainties:
  1  72.0857
  2  18.2192
  3  1.75233e-05
  4  3.84994e-05
  5  2.44263e-05
  6  9.68742e-07
  7  3.20477
  8  6.87185e-07
  9  4.56344
  10  6.40228
  11  1.16264e-05
  12  13.4861
  13  124.287
  14  0.000112748
  15  3.80481e-05
  16  16.7936
  17  6.72618e-06
  18  5.04571
  19  2.86694e-07
  20  9.14606e-07
  21  1.59981e-06
  22  9.76953e-07
  23  1.04557e-05
  24  0.944116
  25  4.10353
  26  19.7208
  27  5.174
  28  32.1486
  29  24.0584
  30  6.06644
  31  5.86522
  32  0.253173
  33  0.257511
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  3.185e-01  9.441e-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:  8.769e-01  2.575e-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:  9.981e-01  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/968125/likelihoodResults_504489601_504748801_4FGL_J2329.3-4955_daily_bin1023.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) = 4858.57029651
delta logL = 0.00552085274921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4858.57027667
delta logL = 0.00554069139616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31858       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0143       1.0000          .0000       5.0000    
     3 'Normalizat'    .99965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87565       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4858.570     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      237 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32047        .86948        .10386E-03   -.33780E-03
   2  alpha         2.0174        1.3693        .35057E-01   -.10242E-04
   3  Normalizat    .99961        .23583        .23721E-03    .18595E-04
   4  Prefactor     .87566        .25029        .26572E-03    .46720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.320474
  alpha      = 2.01745
  Normalizat = 0.999606
  Prefactor  = 0.875659
 **********
 **   18 **HESSE 
 **********

 FCN=   4858.570     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32047        .87553        .41544E-05   -1.5595    
   2  alpha         2.0174        1.3787        .14023E-02   -.19424    
   3  Normalizat    .99961        .23613        .94885E-05   -.93044    
   4  Prefactor     .87566        .25058        .10629E-04   -.96997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23559e-11
Minuit parameter uncertainties:
  1  0.87556
  2  1.46407
  3  0.236374
  4  0.250912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968125': 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) = 4858.57027257
delta logL = 0.00554479968923

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  3.205e-01  8.756e-01  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.017e+00  1.464e+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:  8.757e-01  2.509e-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:  9.996e-01  2.364e-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/968125/cmap_HighResolution_504489601_504748801_4FGL_J2329.3-4955_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-05', job_status='DONE', photon_flux_upper_limit='7.67e-08', time_completed='2021-09-29 21:43:21.179687', job_id='968125', GAL2='0.88', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632977001.18', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='5.54e-03', ts2='0.16', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1023' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:43:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 968125: <4FGL_J2329.3-4955_daily_bin1023> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1023 352.329 -49.9324 504489601 504748801 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 :                                   611.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            786 sec.

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

