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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1007
RA = 352.329, Dec = -49.9324
tmin = 500342401, tmax = 500601601
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='968086', job_status='RUN', time_executed='2021-09-29 21:30:23.298951', time_epoch_executed='1632976223.3' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968086

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968086/ft1_4FGL_J2329.3-4955_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968086/ft2_4FGL_J2329.3-4955_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968086/ft1_4FGL_J2329.3-4955_daily_bin1007.fits outfile=/scratch/kocevski/968086/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1007.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=500342401.0 tmax=500601601.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 4.68
user 4.43
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968086/ft1_filtered_4FGL_J2329.3-4955_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/968086/ft2_4FGL_J2329.3-4955_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/968086/ltcube_500342401_500601601_4FGL_J2329.3-4955_daily_bin1007.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/968086/ft2_4FGL_J2329.3-4955_daily_bin1007.fits
.....................!
real 12.09
user 11.75
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968086/ft1_filtered_4FGL_J2329.3-4955_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/968086/ft2_4FGL_J2329.3-4955_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/968086/ltcube_500342401_500601601_4FGL_J2329.3-4955_daily_bin1007.fits outfile=/scratch/kocevski/968086/expmap_500342401_500601601_4FGL_J2329.3-4955_daily_bin1007.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/968086/ltcube_500342401_500601601_4FGL_J2329.3-4955_daily_bin1007.fits
.....................!
real 190.80
user 185.75
sys 4.64

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/968086/ft1_filtered_4FGL_J2329.3-4955_daily_bin1007.fits scfile=/scratch/kocevski/968086/ft2_4FGL_J2329.3-4955_daily_bin1007.fits outfile=/scratch/kocevski/968086/cmap_500342401_500601601_4FGL_J2329.3-4955_daily_bin1007.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.59
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968086/ft1_filtered_4FGL_J2329.3-4955_daily_bin1007.fits scfile=/scratch/kocevski/968086/ft2_4FGL_J2329.3-4955_daily_bin1007.fits outfile=/scratch/kocevski/968086/cmap_HighResolution_500342401_500601601_4FGL_J2329.3-4955_daily_bin1007.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968086/ft1_filtered_4FGL_J2329.3-4955_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/968086/ft2_4FGL_J2329.3-4955_daily_bin1007.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968086/Model_4FGL_J2329.3-4955_daily_bin1007.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/968086/ft1_filtered_4FGL_J2329.3-4955_daily_bin1007.fits.....................!
real 29.93
user 28.67
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.086       1.0000         .10000E-03   10000.    
     2 'Prefactor '    57.791       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11173E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1315       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.029       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .53802       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27356E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12505E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.240       1.0000         .10000E-03   10000.    
    22 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .90307E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .29195       1.0000         .10000E-03   10000.    
    25 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12418E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11378E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    8.7253       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11349E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0197       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0131       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=   3070.531     FROM MIGRAD    STATUS=CONVERGED    915 CALLS     4630 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.085        131.60        .47245E-06   -.31846E-06
   2  Prefactor     57.798        42.072        .45629E-06    .14548E-05
   3  Prefactor     .10000E-03    143.44        .10019E-05** at limit **
   4  Prefactor     .10000E-03    27.847       -.81399E-06** at limit **
   5  Prefactor     5.1337        10.666        .41324E-06    .92855E-05
   6  Prefactor     16.032        13.330        .13560E-06    .65807E-05
   7  norm          .10000E-03    19.112       -.11598E-06** at limit **
   8  norm          .54819        16.384        .53936E-05    .27457E-04
   9  Prefactor     .10004E-03    3.4336        .65232E-06** at limit **
  10  Prefactor     .10000E-03    2.9323        .27472E-07** at limit **
  11  Prefactor     .10000E-03    33.703       -.22211E-07** at limit **
  12  Prefactor     .10000E-03    15.276        .55593E-07** at limit **
  13  Prefactor     .10000E-03    137.63       -.56323E-06** at limit **
  14  Prefactor     .10000E-03    4.3763        .21515E-07** at limit **
  15  Prefactor     .10000E-03    25.466        .24475E-06** at limit **
  16  Prefactor     .10000E-03    25.048        .31312E-06** at limit **
  17  norm          .10000E-03    12.843        .84715E-09** at limit **
  18  norm          .10000E-03    4.6371       -.23509E-07** at limit **
  19  norm          .10000E-03    2.9209       -.79980E-07** at limit **
  20  Prefactor     .10000E-03    5.3835       -.22778E-07** at limit **
  21  Prefactor     32.259        43.653        .13996E-06   -.15079E-04
  22  norm          .10000E-03    2.4742       -.16024E-06** at limit **
  23  Prefactor     .11990E-03    16.603       -.22177E-05** at limit **
  24  norm          .29249        .95731        .63869E-06    .68587E-03
  25  norm          .10000E-03    2.4254       -.60023E-07** at limit **
  26  Prefactor     .10000E-03    51.541       -.14823E-05** at limit **
  27  Prefactor     .10000E-03    1.2203        .12445E-07** at limit **
  28  Prefactor     .10000E-03    44.884        .21506E-05** at limit **
  29  norm          8.7426        27.652        .34481E-06   -.71283E-05
  30  Prefactor     .10000E-03    6.1396       -.24197E-06** at limit **
  31  Prefactor     .10000E-03    5.4084       -.17363E-06** at limit **
  32  Normalizat    1.0198        .25807       -.59585E-06   -.33447E-04
  33  Prefactor     1.0128        .26602       -.58128E-06   -.47627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.0852
  Prefactor  = 57.7985
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 5.1337
  Prefactor  = 16.0324
  norm       = 0.0001
  norm       = 0.548189
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.259
  norm       = 0.0001
  Prefactor  = 0.000119903
  norm       = 0.292492
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 8.74259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01984
  Prefactor  = 1.01284
 **********
 **   18 **HESSE 
 **********

 FCN=   3070.531     FROM HESSE     STATUS=OK           695 CALLS     5325 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.085        131.64        .42809E-04   -1.3828    
   2  Prefactor     57.798        42.079        .52772E-04   -1.4186    
   3  Prefactor     .10000E-03    144.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1337        10.652        .17748E-03   -1.5255    
   6  Prefactor     16.032        13.326        .10004E-03   -1.4907    
   7  norm          .10000E-03    19.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .54819        16.292        .42218E-02   -1.5560    
   9  Prefactor     .10004E-03    31.271        .19448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9403        .92659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    138.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3856        .11322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.6478        .11653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.9211        .92471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.4063        .12542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.259        43.636        .70569E-04   -1.4571    
  22  norm          .10000E-03    2.4744        .85016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .11990E-03    20.670        .69463E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .29249        .91723        .96987E-03   -1.5600    
  25  norm          .10000E-03    2.4275        .84258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    52.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.2218        .59777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    46.500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          8.7426        27.590        .13570E-03   -1.5117    
  30  Prefactor     .10000E-03    6.2481        .26697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    5.4569        .12553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0198        .31544        .23622E-03   -.92369    
  33  Prefactor     1.0128        .32594        .24703E-03   -.92303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56125e-09
Minuit parameter uncertainties:
  1  132.08
  2  42.1007
  3  0.00115792
  4  0.000250637
  5  10.6561
  6  13.3283
  7  4.53468e-05
  8  5.97815
  9  0.00229114
  10  1.0194e-06
  11  3.13163e-05
  12  1.49933e-05
  13  0.000681833
  14  1.94274e-06
  15  0.000112594
  16  0.000116516
  17  4.65129e-06
  18  2.84728e-06
  19  1.16108e-06
  20  7.67729e-06
  21  43.6796
  22  1.79674e-06
  23  0.0405794
  24  0.917275
  25  5.55179e-08
  26  0.000615796
  27  9.58163e-08
  28  0.000726896
  29  27.6307
  30  2.75338e-06
  31  3.80548e-06
  32  0.316021
  33  0.326576
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  2.925e-01  9.173e-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.013e+00  3.266e-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:  1.020e+00  3.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/968086/likelihoodResults_500342401_500601601_4FGL_J2329.3-4955_daily_bin1007.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) = 3070.49376135
delta logL = 0.03729823908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3070.49350229
delta logL = 0.0375573010547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30387       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6449       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0149       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=   3070.493     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      234 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30283        47.253        .18109E-01   -.10065E-03
   2  alpha         2.6416        3.5526        .41239       -.99663E-05
   3  Normalizat    1.0156        .60123E-01    .44104E-01   -.56926E-04
   4  Prefactor     1.0149        .62804E-01    .42686E-01   -.35287E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.302829
  alpha      = 2.6416
  Normalizat = 1.01559
  Prefactor  = 1.0149
 **********
 **   18 **HESSE 
 **********

 FCN=   3070.493     FROM HESSE     STATUS=OK            35 CALLS      269 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30283        .88414        .83713E-03   -1.5598    
   2  alpha         2.6416        1.6714        .31799E-01    .56670E-01
   3  Normalizat    1.0156        .30591        .23665E-03   -.92510    
   4  Prefactor     1.0149        .31956        .24679E-03   -.92234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92981e-10
Minuit parameter uncertainties:
  1  0.88418
  2  1.83132
  3  0.306439
  4  0.32016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968086': 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) = 3070.49349819
delta logL = 0.0375613997371

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  3.028e-01  8.842e-01  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.642e+00  1.831e+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.015e+00  3.202e-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:  1.016e+00  3.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/968086/cmap_HighResolution_500342401_500601601_4FGL_J2329.3-4955_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-05', job_status='DONE', photon_flux_upper_limit='9.22e-08', time_completed='2021-09-29 21:40:49.921918', job_id='968086', GAL2='1.01', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632976849.92', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.76e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1007' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:40:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 968086: <4FGL_J2329.3-4955_daily_bin1007> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1007 352.329 -49.9324 500342401 500601601 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 :                                   624.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            636 sec.

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

