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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1253
RA = 352.329, Dec = -49.9324
tmin = 564105601, tmax = 564364801
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='968678', job_status='RUN', time_executed='2021-09-29 21:30:50.178852', time_epoch_executed='1632976250.18' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968678

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968678/ft1_4FGL_J2329.3-4955_daily_bin1253.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968678/ft2_4FGL_J2329.3-4955_daily_bin1253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968678/ft1_4FGL_J2329.3-4955_daily_bin1253.fits outfile=/scratch/kocevski/968678/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1253.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=564105601.0 tmax=564364801.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.31
user 3.05
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968678/ft1_filtered_4FGL_J2329.3-4955_daily_bin1253.fits" evtable="EVENTS" scfile=/scratch/kocevski/968678/ft2_4FGL_J2329.3-4955_daily_bin1253.fits sctable="SC_DATA" outfile=/scratch/kocevski/968678/ltcube_564105601_564364801_4FGL_J2329.3-4955_daily_bin1253.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/968678/ft2_4FGL_J2329.3-4955_daily_bin1253.fits
.....................!
real 12.06
user 11.60
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968678/ft1_filtered_4FGL_J2329.3-4955_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/968678/ft2_4FGL_J2329.3-4955_daily_bin1253.fits sctable="SC_DATA" expcube=/scratch/kocevski/968678/ltcube_564105601_564364801_4FGL_J2329.3-4955_daily_bin1253.fits outfile=/scratch/kocevski/968678/expmap_564105601_564364801_4FGL_J2329.3-4955_daily_bin1253.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/968678/ltcube_564105601_564364801_4FGL_J2329.3-4955_daily_bin1253.fits
.....................!
real 191.62
user 186.01
sys 5.24

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/968678/ft1_filtered_4FGL_J2329.3-4955_daily_bin1253.fits scfile=/scratch/kocevski/968678/ft2_4FGL_J2329.3-4955_daily_bin1253.fits outfile=/scratch/kocevski/968678/cmap_564105601_564364801_4FGL_J2329.3-4955_daily_bin1253.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968678/ft1_filtered_4FGL_J2329.3-4955_daily_bin1253.fits scfile=/scratch/kocevski/968678/ft2_4FGL_J2329.3-4955_daily_bin1253.fits outfile=/scratch/kocevski/968678/cmap_HighResolution_564105601_564364801_4FGL_J2329.3-4955_daily_bin1253.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968678/ft1_filtered_4FGL_J2329.3-4955_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/968678/ft2_4FGL_J2329.3-4955_daily_bin1253.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968678/Model_4FGL_J2329.3-4955_daily_bin1253.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/968678/ft1_filtered_4FGL_J2329.3-4955_daily_bin1253.fits......................!
real 25.91
user 24.56
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.666       1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.998       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.949       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.947       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6913       1.0000         .10000E-03   10000.    
     7 'norm      '    64.497       1.0000         .10000E-03   10000.    
     8 'norm      '    .12806       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.865       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.891       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    98.210       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .21046E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    5.7385       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.1784       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.5029       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.556       1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.746       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .80561       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96600       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=   2376.251     FROM MIGRAD    STATUS=CONVERGED    916 CALLS     4694 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.622        119.29       -.31206E-04   -.95503E-05
   2  Prefactor     49.995        48.420       -.19862E-05   -.27322E-04
   3  Prefactor     16.969        74.856        .21468E-04   -.94610E-05
   4  Prefactor     .10000E-03    5.8470       -.51915E-05** at limit **
   5  Prefactor     15.942        16.973        .89539E-05   -.23965E-04
   6  Prefactor     5.6911        8.0110       -.17700E-06   -.43933E-04
   7  norm          64.475        62.716       -.59346E-05    .11694E-04
   8  norm          .13575E-03    13.227       -.33279E-05** at limit **
   9  Prefactor     .10000E-03    2.5820       -.59675E-07** at limit **
  10  Prefactor     .10000E-03    4.8646       -.10001E-05** at limit **
  11  Prefactor     21.043        75.131        .16780E-03    .10858E-03
  12  Prefactor     18.880        27.544       -.39982E-04   -.27567E-04
  13  Prefactor     .10000E-03    222.74       -.16497E-04** at limit **
  14  Prefactor     .10000E-03    5.8225        .53222E-05** at limit **
  15  Prefactor     98.107        92.916       -.73894E-04   -.11046E-04
  16  Prefactor     .10000E-03    16.551        .11512E-06** at limit **
  17  norm          .10000E-03    12.895        .10775E-06** at limit **
  18  norm          .10507E-03    13.876       -.22796E-05** at limit **
  19  norm          5.7368        6.9393       -.12828E-05    .45580E-05
  20  Prefactor     .10000E-03    6.7745        .14567E-06** at limit **
  21  Prefactor     .10000E-03    27.047       -.58712E-06** at limit **
  22  norm          4.1778        5.6045        .59510E-06   -.59642E-04
  23  Prefactor     .10000E-03    16.161        .10393E-07** at limit **
  24  norm          .10000E-03    1.4341        .36602E-06** at limit **
  25  norm          4.5019        8.4130        .20270E-05   -.16760E-03
  26  Prefactor     .10000E-03    10.152        .21657E-07** at limit **
  27  Prefactor     .10000E-03    2.7832        .44489E-09** at limit **
  28  Prefactor     17.559        39.980       -.12780E-05   -.41091E-04
  29  norm          .10000E-03    20.659        .40697E-06** at limit **
  30  Prefactor     10.746        9.7438       -.12164E-05   -.10301E-03
  31  Prefactor     .10000E-03    5.5980        .25107E-06** at limit **
  32  Normalizat    .80469        .28813       -.12529E-04    .20273E-03
  33  Prefactor     .96724        .28929        .81063E-05   -.13985E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.622
  Prefactor  = 49.9948
  Prefactor  = 16.9691
  Prefactor  = 0.0001
  Prefactor  = 15.9419
  Prefactor  = 5.69114
  norm       = 64.4751
  norm       = 0.000135753
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 21.0435
  Prefactor  = 18.88
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 98.1074
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000105071
  norm       = 5.73677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.17784
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.50192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5595
  norm       = 0.0001
  Prefactor  = 10.7463
  Prefactor  = 0.0001
  Normalizat = 0.80469
  Prefactor  = 0.967235
 **********
 **   18 **HESSE 
 **********

 FCN=   2376.251     FROM HESSE     STATUS=OK           705 CALLS     5399 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.622        119.54        .20763E-03   -1.3770    
   2  Prefactor     49.995        48.354        .56715E-04   -1.4293    
   3  Prefactor     16.969        74.526        .97286E-04   -1.4884    
   4  Prefactor     .10000E-03    5.8500        .11510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.942        16.949        .10029E-03   -1.4909    
   6  Prefactor     5.6911        8.0041        .15901E-03   -1.5231    
   7  norm          64.475        62.704        .49970E-04   -1.4100    
   8  norm          .13575E-03    22.864        .62149E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5897        .76497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.8909        .10499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.043        75.201        .87685E-04   -1.4790    
  12  Prefactor     18.880        27.494        .92150E-04   -1.4839    
  13  Prefactor     .10000E-03    222.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.8468        .11487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     98.107        92.914        .20282E-03   -1.3724    
  16  Prefactor     .10000E-03    16.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.915        .17099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10507E-03    13.478        .56162E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.7368        6.9448        .13510E-03   -1.5229    
  20  Prefactor     .10000E-03    6.8106        .12389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.1778        5.5839        .12173E-03   -1.5299    
  23  Prefactor     .10000E-03    16.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.1096        .10786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.5019        8.3758        .17376E-03   -1.5284    
  26  Prefactor     .10000E-03    10.162        .15170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.7882        .79308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     17.559        39.723        .95588E-04   -1.4870    
  29  norm          .10000E-03    20.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     10.746        9.7548        .12222E-03   -1.5052    
  31  Prefactor     .10000E-03    5.6369        .11247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .80469        .34345        .25123E-03   -.99895    
  33  Prefactor     .96724        .34567        .24545E-03   -.93830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60087e-09
Minuit parameter uncertainties:
  1  119.848
  2  48.3919
  3  71.2728
  4  1.54813e-05
  5  16.9543
  6  8.00559
  7  62.7679
  8  0.0572039
  9  9.41387e-06
  10  0.000220337
  11  75.5428
  12  27.512
  13  0.000736691
  14  6.94798e-06
  15  93.0523
  16  6.24774e-05
  17  2.53215e-05
  18  0.0165387
  19  6.94573
  20  3.2144e-05
  21  1.90166e-05
  22  5.58459
  23  4.92574e-05
  24  5.50365e-05
  25  8.37802
  26  1.80882e-05
  27  1.67437e-06
  28  39.783
  29  2.89899e-05
  30  9.75626
  31  6.45012e-05
  32  0.344382
  33  0.346464
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  5.504e-05  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.672e-01  3.465e-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:  8.047e-01  3.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.329 -49.932
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968678/likelihoodResults_564105601_564364801_4FGL_J2329.3-4955_daily_bin1253.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) = 2376.25352277
delta logL = -0.00226470885718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2376.25125921
delta logL = -1.15156171887e-06

Fit tolerance = 1e-08

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

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

 FCN=   2376.005     FROM MIGRAD    STATUS=CONVERGED    136 CALLS      288 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50103E-01    .83039E-01    .10789E-02   -.24279E-03
   2  alpha         5.0000        3.4104        .16633    ** at limit **
   3  Normalizat    .74509        .32230        .25124E-02    .11354E-04
   4  Prefactor     1.0099        .33965        .24545E-03    .21955E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0501025
  alpha      = 5
  Normalizat = 0.745092
  Prefactor  = 1.00991
 **********
 **   18 **HESSE 
 **********

 FCN=   2376.005     FROM HESSE     STATUS=OK            27 CALLS      315 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50103E-01    .82786E-01    .17075E-04   -1.5753    
   2  alpha         5.0000        3.4227        .30736E-01    7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .74509        .32427        .10049E-03   -1.0214    
   4  Prefactor     1.0099        .34150        .98179E-05   -.92400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92957e-11
Minuit parameter uncertainties:
  1  0.0827858
  2  6.2878e-06
  3  0.325108
  4  0.342231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968678': 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) = 2376.00544284
delta logL = 0.245815216596

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  1.010e+00  3.422e-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:  7.451e-01  3.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/968678/cmap_HighResolution_564105601_564364801_4FGL_J2329.3-4955_daily_bin1253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-05', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-29 21:40:07.375830', job_id='968678', GAL2='1.01', fit_tolerance='1e-08', EG2='0.75', EG='0.80', time_epoch_completed='1632976807.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.46e-01', ts2='0.53', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1253' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:40:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 968678: <4FGL_J2329.3-4955_daily_bin1253> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1253 352.329 -49.9324 564105601 564364801 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 :                                   557.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            570 sec.

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

