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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1095
RA = 352.329, Dec = -49.9324
tmin = 523152001, tmax = 523411201
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='968298', job_status='RUN', time_executed='2021-09-29 21:32:08.889914', time_epoch_executed='1632976328.89' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968298

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968298/ft1_4FGL_J2329.3-4955_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968298/ft2_4FGL_J2329.3-4955_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968298/ft1_4FGL_J2329.3-4955_daily_bin1095.fits outfile=/scratch/kocevski/968298/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1095.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=523152001.0 tmax=523411201.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.31
user 3.99
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968298/ft2_4FGL_J2329.3-4955_daily_bin1095.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/968298/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1095.fits evtable="EVENTS" outfile="/scratch/kocevski/968298/ft1_filtered_4FGL_J2329.3-4955_daily_bin1095.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/968298/ft1_filtered_4FGL_J2329.3-4955_daily_bin1095.fits" evtable="EVENTS" scfile=/scratch/kocevski/968298/ft2_4FGL_J2329.3-4955_daily_bin1095.fits sctable="SC_DATA" outfile=/scratch/kocevski/968298/ltcube_523152001_523411201_4FGL_J2329.3-4955_daily_bin1095.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/968298/ft2_4FGL_J2329.3-4955_daily_bin1095.fits
.....................!
real 12.91
user 12.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968298/ft1_filtered_4FGL_J2329.3-4955_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/968298/ft2_4FGL_J2329.3-4955_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/968298/ltcube_523152001_523411201_4FGL_J2329.3-4955_daily_bin1095.fits outfile=/scratch/kocevski/968298/expmap_523152001_523411201_4FGL_J2329.3-4955_daily_bin1095.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/968298/ltcube_523152001_523411201_4FGL_J2329.3-4955_daily_bin1095.fits
.....................!
real 191.52
user 186.09
sys 5.12

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/968298/ft1_filtered_4FGL_J2329.3-4955_daily_bin1095.fits scfile=/scratch/kocevski/968298/ft2_4FGL_J2329.3-4955_daily_bin1095.fits outfile=/scratch/kocevski/968298/cmap_523152001_523411201_4FGL_J2329.3-4955_daily_bin1095.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968298/ft1_filtered_4FGL_J2329.3-4955_daily_bin1095.fits scfile=/scratch/kocevski/968298/ft2_4FGL_J2329.3-4955_daily_bin1095.fits outfile=/scratch/kocevski/968298/cmap_HighResolution_523152001_523411201_4FGL_J2329.3-4955_daily_bin1095.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968298/ft1_filtered_4FGL_J2329.3-4955_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/968298/ft2_4FGL_J2329.3-4955_daily_bin1095.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968298/Model_4FGL_J2329.3-4955_daily_bin1095.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/968298/ft1_filtered_4FGL_J2329.3-4955_daily_bin1095.fits.....................!
real 34.75
user 33.37
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6750       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33949E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14335E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    20.222       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .29137E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .64500E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.346       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0624       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30349E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18231E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.6438       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    90.565       1.0000         .10000E-03   10000.    
    22 'norm      '    .41554       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .68150       1.0000         .10000E-03   10000.    
    25 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.189       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.2906       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.1840       1.0000         .10000E-03   10000.    
    29 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.755       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .92506       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93461       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=   4219.760     FROM MIGRAD    STATUS=CONVERGED    908 CALLS     5370 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.871        .97280E-07** at limit **
   2  Prefactor     9.6741        14.468        .19652E-06    .54940E-04
   3  Prefactor     .10000E-03    35.688       -.19485E-06** at limit **
   4  Prefactor     .10000E-03    10.017        .17962E-05** at limit **
   5  Prefactor     .10000E-03    4.1431       -.85573E-07** at limit **
   6  Prefactor     .10004E-03    17.376        .72435E-05** at limit **
   7  norm          20.210        34.429        .97351E-06   -.40918E-04
   8  norm          .10000E-03    2.3184       -.70960E-08** at limit **
   9  Prefactor     .25815E-01    3.0838       -.12297E-05    .20657E-03
  10  Prefactor     .10000E-03    4.4937       -.18809E-06** at limit **
  11  Prefactor     .10020E-03    271.18       -.22070E-04** at limit **
  12  Prefactor     15.320        14.855        .32745E-06    .18931E-03
  13  Prefactor     .10000E-03    67.442        .61543E-06** at limit **
  14  Prefactor     4.0624        5.4622        .22336E-06    .74161E-04
  15  Prefactor     .29060E-01    224.41       -.27412E-04    .20279E-03
  16  Prefactor     .10003E-03    19.201       -.40964E-05** at limit **
  17  norm          9.6424        10.671       -.97836E-07    .57700E-05
  18  norm          .10000E-03    2.0680       -.67875E-08** at limit **
  19  norm          .10000E-03    3.8487       -.13253E-06** at limit **
  20  Prefactor     .10000E-03    1.9341       -.34257E-07** at limit **
  21  Prefactor     90.566        51.745       -.84196E-06   -.19267E-03
  22  norm          .43015        8.0349       -.34016E-05   -.35414E-04
  23  Prefactor     .10000E-03    7.6263       -.93453E-07** at limit **
  24  norm          .68134        1.0710        .15752E-06    .13062E-02
  25  norm          .10000E-03    2.5615       -.38481E-07** at limit **
  26  Prefactor     18.187        18.533        .31679E-06    .21429E-04
  27  Prefactor     3.2896        4.5825        .41393E-06    .22722E-03
  28  Prefactor     8.1912        22.813       -.18807E-06    .21252E-04
  29  norm          .10001E-03    93.420       -.12937E-05** at limit **
  30  Prefactor     10.757        8.4276       -.18258E-05   -.12861E-03
  31  Prefactor     .10000E-03    2.3792       -.11965E-06** at limit **
  32  Normalizat    .92469        .21107        .60322E-06    .34135E-03
  33  Prefactor     .93499        .21312        .13145E-05    .38449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.6741
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  norm       = 20.2101
  norm       = 0.0001
  Prefactor  = 0.0258152
  Prefactor  = 0.0001
  Prefactor  = 0.000100203
  Prefactor  = 15.3204
  Prefactor  = 0.000100005
  Prefactor  = 4.06236
  Prefactor  = 0.02906
  Prefactor  = 0.000100028
  norm       = 9.64238
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 90.5663
  norm       = 0.430149
  Prefactor  = 0.0001
  norm       = 0.681335
  norm       = 0.0001
  Prefactor  = 18.1874
  Prefactor  = 3.2896
  Prefactor  = 8.1912
  norm       = 0.00010001
  Prefactor  = 10.7567
  Prefactor  = 0.0001
  Normalizat = 0.92469
  Prefactor  = 0.934989
 **********
 **   18 **HESSE 
 **********

 FCN=   4219.760     FROM HESSE     STATUS=OK           717 CALLS     6087 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.6741        14.444        .12883E-03   -1.5086    
   3  Prefactor     .10000E-03    35.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    37.804        .36838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1562        .12911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    23.630        .33975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          20.210        34.192        .89067E-04   -1.4809    
   8  norm          .10000E-03    2.3185        .96600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .25815E-01    4.4500        .39464E-01   -1.5676    
  10  Prefactor     .10000E-03    4.5249        .13432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10020E-03    270.81        .66720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.320        14.380        .10224E-03   -1.4925    
  13  Prefactor     .10000E-03    67.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0624        5.4532        .17128E-03   -1.5305    
  15  Prefactor     .29060E-01    67.576        .14948       -1.5674    
  16  Prefactor     .10003E-03    78.635        .47665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.6424        10.671        .12904E-03   -1.5087    
  18  norm          .10000E-03    2.0681        .91233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.8841        .12420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.9370        .88224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     90.566        51.942        .42224E-04   -1.3802    
  22  norm          .43015        16.915        .22391E-02   -1.5577    
  23  Prefactor     .10000E-03    7.6898        .17520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .68134        .96278        .79742E-03   -1.5543    
  25  norm          .10000E-03    2.5741        .10148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.187        18.559        .93911E-04   -1.4855    
  27  Prefactor     3.2896        4.5125        .14023E-03   -1.5345    
  28  Prefactor     8.1912        22.636        .14014E-03   -1.5135    
  29  norm          .10001E-03    92.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     10.757        8.3531        .12217E-03   -1.5052    
  31  Prefactor     .10000E-03    2.4289        .97863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .92469        .25308        .23390E-03   -.95598    
  33  Prefactor     .93499        .25643        .24667E-03   -.94929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96308e-08
Minuit parameter uncertainties:
  1  0.000141162
  2  14.4496
  3  1.77477e-05
  4  0.000369478
  5  1.60317e-05
  6  0.00192131
  7  34.2254
  8  4.23308e-07
  9  0.676605
  10  2.38654e-06
  11  0.0148797
  12  14.3837
  13  0.00111891
  14  5.45389
  15  2.80102
  16  0.0029709
  17  10.6731
  18  7.58918e-07
  19  2.47571e-06
  20  1.74729e-06
  21  51.9683
  22  5.39583
  23  4.33478e-06
  24  0.962804
  25  7.74445e-06
  26  18.565
  27  4.51295
  28  22.6594
  29  0.00193967
  30  8.35404
  31  2.15296e-06
  32  0.253406
  33  0.256764
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  6.813e-01  9.628e-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:  9.350e-01  2.568e-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.247e-01  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/968298/likelihoodResults_523152001_523411201_4FGL_J2329.3-4955_daily_bin1095.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) = 4219.55875115
delta logL = 0.200947719797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4219.55663698
delta logL = 0.203061895338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68403       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8513       1.0000          .0000       5.0000    
     3 'Normalizat'    .90482       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94705       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=   4219.557     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      205 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68434        23.344        .12000E-01    .61239E-03
   2  alpha         2.8508        2.7037        .41677        .21891E-04
   3  Normalizat    .90468        .56110E-01    .44963E-01    .88944E-05
   4  Prefactor     .94719        .60540E-01    .45602E-01    .86206E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.684336
  alpha      = 2.85077
  Normalizat = 0.904677
  Prefactor  = 0.947186
 **********
 **   18 **HESSE 
 **********

 FCN=   4219.557     FROM HESSE     STATUS=OK            35 CALLS      240 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68434        .94337        .60236E-03   -1.5543    
   2  alpha         2.8508        1.0793        .20321E-01    .14077    
   3  Normalizat    .90468        .24030        .23611E-03   -.96296    
   4  Prefactor     .94719        .25363        .24519E-03   -.94511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06174e-09
Minuit parameter uncertainties:
  1  0.943389
  2  1.11681
  3  0.240585
  4  0.253948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968298': 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) = 4219.55663665
delta logL = 0.203062226456

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  9.472e-01  2.539e-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.047e-01  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 2.85 +/- 1.12
Photon Flux (Free Index): 3.51e-08 +/- 4.16e-08
Energy Flux (Free Index): 7.76e-06 +/- 8.80e-06

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/968298/cmap_HighResolution_523152001_523411201_4FGL_J2329.3-4955_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-05', comment='SUCCESS', energy_flux2='7.76e-06', dlogl='2.03e-01', photon_flux2='3.51e-08', job_status='DONE', time_completed='2021-09-29 21:45:15.646065', photon_index_error2='1.12', photon_index2='2.85', ts='0.74', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='8.71e-08', energy_flux_error2='8.80e-06', EG='0.92', time_epoch_completed='1632977115.65', return_code='0', job_id='968298', GAL2='0.95', EG2='0.90', return_code2='0', photon_flux_error2='4.16e-08', ts2='1.16', photon_index='2.18' WHERE bin_id='1095' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:45:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 968298: <4FGL_J2329.3-4955_daily_bin1095> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1095 352.329 -49.9324 523152001 523411201 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 :                                   784.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            894 sec.

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

