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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin931
RA = 352.329, Dec = -49.9324
tmin = 480643201, tmax = 480902401
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='964601', job_status='RUN', time_executed='2021-09-29 21:28:42.664302', time_epoch_executed='1632976122.66' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964601

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964601/ft1_4FGL_J2329.3-4955_daily_bin931.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964601/ft2_4FGL_J2329.3-4955_daily_bin931.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964601/ft1_4FGL_J2329.3-4955_daily_bin931.fits outfile=/scratch/kocevski/964601/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin931.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=480643201.0 tmax=480902401.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.55
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/964601/ft2_4FGL_J2329.3-4955_daily_bin931.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/964601/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin931.fits evtable="EVENTS" outfile="/scratch/kocevski/964601/ft1_filtered_4FGL_J2329.3-4955_daily_bin931.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964601/ft1_filtered_4FGL_J2329.3-4955_daily_bin931.fits" evtable="EVENTS" scfile=/scratch/kocevski/964601/ft2_4FGL_J2329.3-4955_daily_bin931.fits sctable="SC_DATA" outfile=/scratch/kocevski/964601/ltcube_480643201_480902401_4FGL_J2329.3-4955_daily_bin931.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/964601/ft2_4FGL_J2329.3-4955_daily_bin931.fits
.....................!
real 11.99
user 11.57
sys 0.31

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

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 183 point sources and 0 extended sources

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/964601/ft1_filtered_4FGL_J2329.3-4955_daily_bin931.fits scfile=/scratch/kocevski/964601/ft2_4FGL_J2329.3-4955_daily_bin931.fits outfile=/scratch/kocevski/964601/cmap_480643201_480902401_4FGL_J2329.3-4955_daily_bin931.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964601/ft1_filtered_4FGL_J2329.3-4955_daily_bin931.fits scfile=/scratch/kocevski/964601/ft2_4FGL_J2329.3-4955_daily_bin931.fits outfile=/scratch/kocevski/964601/cmap_HighResolution_480643201_480902401_4FGL_J2329.3-4955_daily_bin931.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.329 yref=-49.9324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964601/ft1_filtered_4FGL_J2329.3-4955_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/964601/ft2_4FGL_J2329.3-4955_daily_bin931.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964601/Model_4FGL_J2329.3-4955_daily_bin931.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/964601/ft1_filtered_4FGL_J2329.3-4955_daily_bin931.fits.....................!
real 40.16
user 38.90
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.727       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.563       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0002       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1046       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5776       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5542       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1390       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.0366       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.2439       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.7181       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13127E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10463E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11529E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2413       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .65196       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=   5450.863     FROM MIGRAD    STATUS=CONVERGED    877 CALLS     4576 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.714        58.101        .21594E-05    .49952E-05
   2  Prefactor     .10000E-03    9.6340        .31415E-06** at limit **
   3  Prefactor     20.546        25.485        .11363E-05   -.30003E-05
   4  Prefactor     .10000E-03    6.6518        .27926E-06** at limit **
   5  Prefactor     .10000E-03    3.7494       -.94671E-07** at limit **
   6  Prefactor     .10000E-03    5.7877       -.29868E-06** at limit **
   7  norm          .10000E-03    18.956        .99418E-06** at limit **
   8  norm          .10000E-03    8.2906       -.13476E-06** at limit **
   9  Prefactor     3.0003        3.0808        .49248E-06   -.58319E-04
  10  Prefactor     9.1058        5.3782        .17385E-06    .21251E-04
  11  Prefactor     .10000E-03    13.404       -.40231E-06** at limit **
  12  Prefactor     2.5770        9.2679        .62563E-05   -.17286E-04
  13  Prefactor     .10000E-03    28.872        .13875E-05** at limit **
  14  Prefactor     1.5536        3.7453        .22308E-06    .10133E-04
  15  Prefactor     .10000E-03    9.1136        .78624E-07** at limit **
  16  Prefactor     7.1381        16.935       -.85190E-07   -.49904E-04
  17  norm          .10000E-03    6.1090        .36621E-06** at limit **
  18  norm          3.0368        4.8963       -.40517E-07   -.67015E-04
  19  norm          .10000E-03    1.8667       -.59453E-07** at limit **
  20  Prefactor     .10000E-03    10.741        .32174E-06** at limit **
  21  Prefactor     .10000E-03    33.823       -.16924E-05** at limit **
  22  norm          9.2453        4.6864        .23611E-06    .28197E-03
  23  Prefactor     .10000E-03    12.512       -.29843E-06** at limit **
  24  norm          2.7176        1.4042       -.34315E-07   -.62984E-03
  25  norm          .10000E-03    3.2429       -.20487E-06** at limit **
  26  Prefactor     .10000E-03    15.342       -.36215E-06** at limit **
  27  Prefactor     .10000E-03    1.8465       -.91246E-07** at limit **
  28  Prefactor     .10000E-03    64.184       -.30261E-06** at limit **
  29  norm          .10000E-03    32.506       -.19970E-06** at limit **
  30  Prefactor     .10000E-03    2.9715        .16530E-05** at limit **
  31  Prefactor     .10000E-03    1.4563       -.63487E-07** at limit **
  32  Normalizat    1.2409        .18248        .32082E-06    .68511E-04
  33  Prefactor     .65233        .19053       -.14215E-05    .13540E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.7141
  Prefactor  = 0.0001
  Prefactor  = 20.5457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.00034
  Prefactor  = 9.10578
  Prefactor  = 0.0001
  Prefactor  = 2.57698
  Prefactor  = 0.0001
  Prefactor  = 1.55359
  Prefactor  = 0.0001
  Prefactor  = 7.1381
  norm       = 0.0001
  norm       = 3.03681
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.24535
  Prefactor  = 0.0001
  norm       = 2.71764
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24095
  Prefactor  = 0.652334
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.863     FROM HESSE     STATUS=OK           685 CALLS     5261 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.714        58.125        .70044E-04   -1.4563    
   2  Prefactor     .10000E-03    9.6433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.546        25.457        .88326E-04   -1.4801    
   4  Prefactor     .10000E-03    6.7197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7682        .13962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9234        .17343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    18.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.5519        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0003        3.0797        .63782E-03   -1.5362    
  10  Prefactor     9.1058        5.3802        .63203E-03   -1.5104    
  11  Prefactor     .10000E-03    13.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5770        9.4881        .12710E-02   -1.5387    
  13  Prefactor     .10000E-03    28.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5536        3.7003        .21574E-03   -1.5459    
  15  Prefactor     .10000E-03    9.1144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.1381        16.880        .15013E-03   -1.5174    
  17  norm          .10000E-03    6.1176        .17822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.0368        4.8777        .20034E-03   -1.5359    
  19  norm          .10000E-03    1.8681        .98499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.2453        4.6930        .10989E-03   -1.5100    
  23  Prefactor     .10000E-03    12.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.7176        1.3976        .57345E-04   -1.5378    
  25  norm          .10000E-03    3.3267        .25947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.8867        .97860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    66.853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    33.335        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.1172        .23020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1.4641        .87003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2409        .21486        .20555E-03   -.85347    
  33  Prefactor     .65233        .22296        .29028E-03   -1.0543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22513e-10
Minuit parameter uncertainties:
  1  58.2257
  2  2.21552e-05
  3  25.4701
  4  1.9541e-06
  5  1.19322e-05
  6  7.66574e-07
  7  3.93676e-06
  8  4.07298e-05
  9  3.07986
  10  5.38044
  11  1.1433e-05
  12  9.49365
  13  2.04451e-05
  14  3.70084
  15  1.50271e-06
  16  16.8908
  17  1.53566e-06
  18  4.87829
  19  5.07205e-06
  20  3.41831e-05
  21  0.00014379
  22  4.69319
  23  2.12286e-05
  24  1.39762
  25  2.25211e-05
  26  5.1886e-05
  27  9.64704e-06
  28  0.000532333
  29  0.000115496
  30  1.67663e-05
  31  4.67941e-06
  32  0.215017
  33  0.223266
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  6.523e-01  2.233e-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.241e+00  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.36
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 7.36e-08 +/- 3.78e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 1.44e-05

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) = 5450.34076919
delta logL = 0.522156849548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5450.33818691
delta logL = 0.524739127837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3309       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6860       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68205       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=   5450.338     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      258 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3304        20.031        .67152E-03    .10300E-03
   2  alpha         2.6856        3.7180        .26456        .36439E-04
   3  Normalizat    1.2012        .10939        .34870E-01    .24570E-05
   4  Prefactor     .68168        .11489        .64282E-01    .98626E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33042
  alpha      = 2.68563
  Normalizat = 1.20119
  Prefactor  = 0.681677
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.338     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3304        1.3187        .26861E-04   -1.5403    
   2  alpha         2.6856        .53320        .11025E-01    .74320E-01
   3  Normalizat    1.2012        .21550        .20821E-03   -.86566    
   4  Prefactor     .68168        .22523        .28440E-03   -1.0425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66149e-12
Minuit parameter uncertainties:
  1  1.31875
  2  0.537355
  3  0.215658
  4  0.225531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964601': 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) = 5450.33818496
delta logL = 0.524741085625

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  2.330e+00  1.319e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.686e+00  5.374e-01  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:  6.817e-01  2.255e-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.201e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.47
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 2.69 +/- 0.54
Photon Flux (Free Index): 1.01e-07 +/- 4.86e-08
Energy Flux (Free Index): 2.44e-05 +/- 1.14e-05

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/964601/cmap_HighResolution_480643201_480902401_4FGL_J2329.3-4955_daily_bin931.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.36e-08', energy_flux2='2.44e-05', photon_flux_error='3.78e-08', dlogl='5.25e-01', energy_flux='2.80e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-29 21:41:22.158613', photon_index_error2='0.54', photon_index2='2.69', ts='8.36', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='1.24', time_epoch_completed='1632976882.16', return_code='0', job_id='964601', GAL2='0.68', EG2='1.20', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='4.86e-08', ts2='9.47', photon_index='2.18' WHERE bin_id='931' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:41:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 964601: <4FGL_J2329.3-4955_daily_bin931> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin931> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 21:25:32 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:25:33 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:25:33 2021
Terminated at Wed Sep 29 21:41:22 2021
Results reported at Wed Sep 29 21:41:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin931 352.329 -49.9324 480643201 480902401 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 :                                   759.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

