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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1345
RA = 352.329, Dec = -49.9324
tmin = 587952001, tmax = 588211201
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='968899', job_status='RUN', time_executed='2021-09-29 21:32:28.876945', time_epoch_executed='1632976348.88' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968899/ft1_4FGL_J2329.3-4955_daily_bin1345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968899/ft2_4FGL_J2329.3-4955_daily_bin1345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968899/ft1_4FGL_J2329.3-4955_daily_bin1345.fits outfile=/scratch/kocevski/968899/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1345.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=587952001.0 tmax=588211201.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.44
user 3.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968899/ft1_filtered_4FGL_J2329.3-4955_daily_bin1345.fits" evtable="EVENTS" scfile=/scratch/kocevski/968899/ft2_4FGL_J2329.3-4955_daily_bin1345.fits sctable="SC_DATA" outfile=/scratch/kocevski/968899/ltcube_587952001_588211201_4FGL_J2329.3-4955_daily_bin1345.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/968899/ft2_4FGL_J2329.3-4955_daily_bin1345.fits
.....................!
real 11.89
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968899/ft1_filtered_4FGL_J2329.3-4955_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/968899/ft2_4FGL_J2329.3-4955_daily_bin1345.fits sctable="SC_DATA" expcube=/scratch/kocevski/968899/ltcube_587952001_588211201_4FGL_J2329.3-4955_daily_bin1345.fits outfile=/scratch/kocevski/968899/expmap_587952001_588211201_4FGL_J2329.3-4955_daily_bin1345.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/968899/ltcube_587952001_588211201_4FGL_J2329.3-4955_daily_bin1345.fits
.....................!
real 191.56
user 186.59
sys 4.65

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/968899/ft1_filtered_4FGL_J2329.3-4955_daily_bin1345.fits scfile=/scratch/kocevski/968899/ft2_4FGL_J2329.3-4955_daily_bin1345.fits outfile=/scratch/kocevski/968899/cmap_587952001_588211201_4FGL_J2329.3-4955_daily_bin1345.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.329 yref=-49.9324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968899/ft1_filtered_4FGL_J2329.3-4955_daily_bin1345.fits scfile=/scratch/kocevski/968899/ft2_4FGL_J2329.3-4955_daily_bin1345.fits outfile=/scratch/kocevski/968899/cmap_HighResolution_587952001_588211201_4FGL_J2329.3-4955_daily_bin1345.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968899/ft1_filtered_4FGL_J2329.3-4955_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/968899/ft2_4FGL_J2329.3-4955_daily_bin1345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968899/Model_4FGL_J2329.3-4955_daily_bin1345.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/968899/ft1_filtered_4FGL_J2329.3-4955_daily_bin1345.fits.....................!
real 40.40
user 39.16
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3613       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.754       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.192       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .52269       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.8455       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.5729       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.821       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.4444       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .63699E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.2666       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.166       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.8822       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2860       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .51845       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=   5441.888     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     4531 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.567        .29904E-04** at limit **
   2  Prefactor     .10000E-03    9.0989       -.10013E-05** at limit **
   3  Prefactor     .10000E-03    51.478        .36836E-05** at limit **
   4  Prefactor     .10000E-03    2.9717       -.98726E-06** at limit **
   5  Prefactor     .10000E-03    2.6770       -.69735E-06** at limit **
   6  Prefactor     .10000E-03    2.6306        .10194E-05** at limit **
   7  norm          .10000E-03    6.1512        .40254E-05** at limit **
   8  norm          .10000E-03    3.0424        .69959E-06** at limit **
   9  Prefactor     5.3626        5.0646        .79056E-07    .24690E-04
  10  Prefactor     .10000E-03    3.5226        .65488E-06** at limit **
  11  Prefactor     29.738        35.491       -.17388E-04    .13299E-04
  12  Prefactor     10.197        16.411        .89931E-05    .14061E-03
  13  Prefactor     .10000E-03    56.145       -.22985E-04** at limit **
  14  Prefactor     .52258        .99011        .29326E-06   -.15716E-02
  15  Prefactor     .10000E-03    23.587       -.17759E-04** at limit **
  16  Prefactor     .10000E-03    8.2233       -.62586E-05** at limit **
  17  norm          8.8457        9.4809       -.61222E-07    .12273E-04
  18  norm          .10000E-03    2.2458        .37413E-06** at limit **
  19  norm          2.5730        3.5978        .65839E-07   -.11069E-03
  20  Prefactor     12.823        8.1317        .83382E-07    .12391E-03
  21  Prefactor     .10000E-03    10.470        .73985E-05** at limit **
  22  norm          3.4449        3.3177       -.10860E-06   -.10083E-03
  23  Prefactor     .10000E-03    13.596       -.19971E-05** at limit **
  24  norm          .63725E-01    .52736       -.16994E-07    .53898E-04
  25  norm          .10000E-03    2.0976       -.37728E-07** at limit **
  26  Prefactor     .10000E-03    5.1899       -.19244E-05** at limit **
  27  Prefactor     2.2672        3.6372        .11417E-06    .25395E-04
  28  Prefactor     17.165        19.223       -.16642E-06    .26518E-04
  29  norm          .10000E-03    13.157        .14537E-05** at limit **
  30  Prefactor     8.8832        5.4742       -.97366E-07   -.12362E-03
  31  Prefactor     .10000E-03    2.2537       -.54796E-06** at limit **
  32  Normalizat    1.2858        .18018        .16837E-05    .30934E-06
  33  Prefactor     .51872        .18240       -.13957E-05    .10393E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.36259
  Prefactor  = 0.0001
  Prefactor  = 29.7378
  Prefactor  = 10.1968
  Prefactor  = 0.0001
  Prefactor  = 0.522579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.84572
  norm       = 0.0001
  norm       = 2.57297
  Prefactor  = 12.823
  Prefactor  = 0.0001
  norm       = 3.44487
  Prefactor  = 0.0001
  norm       = 0.0637254
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.26716
  Prefactor  = 17.1649
  norm       = 0.0001
  Prefactor  = 8.88324
  Prefactor  = 0.0001
  Normalizat = 1.28575
  Prefactor  = 0.518724
 **********
 **   18 **HESSE 
 **********

 FCN=   5441.888     FROM HESSE     STATUS=OK           691 CALLS     5222 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.1157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    51.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9927        .12419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6842        .11787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6377        .11683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.1507        .17869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.0473        .12567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3626        5.0743        .15453E-03   -1.5245    
  10  Prefactor     .10000E-03    3.5647        .13518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.738        35.463        .73450E-04   -1.4617    
  12  Prefactor     10.197        16.364        .12551E-03   -1.5069    
  13  Prefactor     .10000E-03    56.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .52258        10.496        .22533E-02   -1.5563    
  15  Prefactor     .10000E-03    23.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.2447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.8457        9.4799        .13477E-03   -1.5113    
  18  norm          .10000E-03    2.2472        .10794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.5730        3.6232        .76240E-03   -1.5387    
  20  Prefactor     12.823        8.0591        .55935E-03   -1.4992    
  21  Prefactor     .10000E-03    10.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.4449        3.3423        .12065E-03   -1.5337    
  23  Prefactor     .10000E-03    13.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .63725E-01    1.0175        .10145E-02   -1.5658    
  25  norm          .10000E-03    2.1235        .10424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.2085        .16412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.2672        3.5818        .15634E-03   -1.5407    
  28  Prefactor     17.165        19.131        .96670E-04   -1.4879    
  29  norm          .10000E-03    13.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     8.8832        5.4747        .63119E-03   -1.5112    
  31  Prefactor     .10000E-03    2.3215        .21613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2858        .20729        .19604E-03   -.83993    
  33  Prefactor     .51872        .20817        .30890E-03   -1.1113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.9637e-09
Minuit parameter uncertainties:
  1  1.59501e-06
  2  6.72312e-06
  3  7.4281e-05
  4  9.10972e-07
  5  2.30192e-06
  6  2.75515e-06
  7  1.53523e-06
  8  5.65058e-06
  9  5.07474
  10  5.89107e-05
  11  35.4886
  12  16.3707
  13  6.09235e-05
  14  4.68448
  15  5.11093e-05
  16  1.15436e-05
  17  9.48151
  18  4.74366e-08
  19  3.6235
  20  8.0598
  21  1.94541e-06
  22  3.34253
  23  5.12792e-06
  24  0.508895
  25  3.34634e-06
  26  2.34194e-06
  27  3.58212
  28  19.1378
  29  6.03274e-07
  30  5.47503
  31  3.69511e-06
  32  0.207426
  33  0.208478
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  6.373e-02  5.089e-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:  5.187e-01  2.085e-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.286e+00  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/968899/likelihoodResults_587952001_588211201_4FGL_J2329.3-4955_daily_bin1345.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) = 5441.88756551
delta logL = 5.25076602571e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5441.88755611
delta logL = 6.19074799033e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63734E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2124       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2857       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51878       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5441.888     FROM MIGRAD    STATUS=FAILED        98 CALLS      261 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64319E-01    1.0355        .10155E-02    .43555E-03
   2  alpha         2.2212        3.5970        .10112       -.10193E-03
   3  Normalizat    1.2857        .19749        .19605E-03   -.26663E-04
   4  Prefactor     .51879        .20634        .30888E-03    .31726E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5441.888     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      337 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64319E-01    1.0355        .82235E-04   -1.5657    
   2  alpha         2.2212        3.5970        .57162E-02   -.11174    
   3  Normalizat    1.2857        .19749        .21783E-03   -.83996    
   4  Prefactor     .51879        .20634        .28109E-03   -1.1112    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5441.888     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      367 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64318E-01    1.0022        .40621E-04    .17352E-04
   2  alpha         2.2212        3.5998        .20224E-01   -.38963E-05
   3  Normalizat    1.2857        .19759        .39210E-04    .75385E-06
   4  Prefactor     .51879        .20641        .12355E-04    .55208E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0643185
  alpha      = 2.22122
  Normalizat = 1.28565
  Prefactor  = 0.518785
 **********
 **   18 **HESSE 
 **********

 FCN=   5441.888     FROM HESSE     STATUS=OK            25 CALLS      392 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64318E-01    1.0041        .16248E-05   -1.5657    
   2  alpha         2.2212        3.5995        .40448E-02   -.11175    
   3  Normalizat    1.2857        .19759        .78420E-05   -.83996    
   4  Prefactor     .51879        .20640        .24711E-05   -1.1112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39944e-13
Minuit parameter uncertainties:
  1  0.507884
  2  3.95652
  3  0.197701
  4  0.206696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968899': 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) = 5441.88755309
delta logL = 6.49283783787e-05

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  6.432e-02  5.079e-01  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.221e+00  3.957e+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:  5.188e-01  2.067e-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.286e+00  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/968899/cmap_HighResolution_587952001_588211201_4FGL_J2329.3-4955_daily_bin1345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-05', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2021-09-29 21:46:59.256289', job_id='968899', GAL2='0.52', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1632977219.26', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='6.49e-05', ts2='0.02', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1345' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:46:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 968899: <4FGL_J2329.3-4955_daily_bin1345> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1345 352.329 -49.9324 587952001 588211201 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 :                                   868.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            972 sec.

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

