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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1637
RA = 352.329, Dec = -49.9324
tmin = 663638401, tmax = 663897601
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='38153', job_status='RUN', time_executed='2022-01-15 01:13:06.604135', time_epoch_executed='1642237986.6' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1637'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38153

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38153/ft1_4FGL_J2329.3-4955_daily_bin1637.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38153/ft2_4FGL_J2329.3-4955_daily_bin1637.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38153/ft1_4FGL_J2329.3-4955_daily_bin1637.fits outfile=/scratch/kocevski/38153/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1637.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=663638401.0 tmax=663897601.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 2.46
user 2.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38153/ft2_4FGL_J2329.3-4955_daily_bin1637.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/38153/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1637.fits evtable="EVENTS" outfile="/scratch/kocevski/38153/ft1_filtered_4FGL_J2329.3-4955_daily_bin1637.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38153/ft1_filtered_4FGL_J2329.3-4955_daily_bin1637.fits" evtable="EVENTS" scfile=/scratch/kocevski/38153/ft2_4FGL_J2329.3-4955_daily_bin1637.fits sctable="SC_DATA" outfile=/scratch/kocevski/38153/ltcube_663638401_663897601_4FGL_J2329.3-4955_daily_bin1637.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/38153/ft2_4FGL_J2329.3-4955_daily_bin1637.fits
.....................!
real 14.85
user 14.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38153/ft1_filtered_4FGL_J2329.3-4955_daily_bin1637.fits evtable="EVENTS" scfile=/scratch/kocevski/38153/ft2_4FGL_J2329.3-4955_daily_bin1637.fits sctable="SC_DATA" expcube=/scratch/kocevski/38153/ltcube_663638401_663897601_4FGL_J2329.3-4955_daily_bin1637.fits outfile=/scratch/kocevski/38153/expmap_663638401_663897601_4FGL_J2329.3-4955_daily_bin1637.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/38153/ltcube_663638401_663897601_4FGL_J2329.3-4955_daily_bin1637.fits
.....................!
real 191.67
user 186.08
sys 5.05

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/38153/ft1_filtered_4FGL_J2329.3-4955_daily_bin1637.fits scfile=/scratch/kocevski/38153/ft2_4FGL_J2329.3-4955_daily_bin1637.fits outfile=/scratch/kocevski/38153/cmap_663638401_663897601_4FGL_J2329.3-4955_daily_bin1637.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.55
user 0.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.301       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3058       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.914       1.0000         .10000E-03   10000.    
     7 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2220       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.250       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    140.34       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4404       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5474       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.8576       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12818E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.4979       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.5912       1.0000         .10000E-03   10000.    
    31 'Prefactor '    8.5153       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.9624       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .36209       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=   4949.529     FROM MIGRAD    STATUS=CONVERGED    877 CALLS     4548 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.310        68.301        .25830E-05    .11480E-03
   2  Prefactor     .10000E-03    15.177        .20966E-05** at limit **
   3  Prefactor     .10000E-03    21.799        .66033E-06** at limit **
   4  Prefactor     .10000E-03    4.2366       -.58221E-06** at limit **
   5  Prefactor     7.3064        6.3664        .21470E-07    .89033E-05
   6  Prefactor     18.918        12.662        .13506E-06    .13430E-04
   7  norm          .10000E-03    39.028        .24323E-05** at limit **
   8  norm          .10000E-03    3.7414       -.65437E-06** at limit **
   9  Prefactor     .10000E-03    2.5595       -.68898E-07** at limit **
  10  Prefactor     6.2238        9.2912        .29885E-05   -.71150E-03
  11  Prefactor     13.254        30.163       -.73021E-06    .28775E-04
  12  Prefactor     .10000E-03    9.7766        .46237E-06** at limit **
  13  Prefactor     140.36        129.24        .44680E-05    .12876E-03
  14  Prefactor     .10000E-03    6.9358       -.92324E-06** at limit **
  15  Prefactor     .10000E-03    22.139        .10674E-06** at limit **
  16  Prefactor     9.4419        17.732       -.11083E-06   -.49761E-04
  17  norm          .10000E-03    8.0853        .81732E-06** at limit **
  18  norm          .10000E-03    3.9594        .10004E-05** at limit **
  19  norm          .10000E-03    3.5395        .55985E-07** at limit **
  20  Prefactor     .10000E-03    5.8972        .47684E-06** at limit **
  21  Prefactor     .10000E-03    111.83       -.35255E-05** at limit **
  22  norm          1.5459        4.1013        .28438E-06   -.15974E-03
  23  Prefactor     .10000E-03    12.579       -.20780E-05** at limit **
  24  norm          .10000E-03    .92204        .95078E-08** at limit **
  25  norm          7.8554        5.5256       -.61047E-07   -.11959E-04
  26  Prefactor     .10000E-03    105.77        .21748E-05** at limit **
  27  Prefactor     4.4984        3.9180       -.87219E-07   -.15029E-03
  28  Prefactor     .10000E-03    21.470        .10024E-05** at limit **
  29  norm          .10000E-03    23.999       -.40699E-05** at limit **
  30  Prefactor     3.5897        5.7740        .17062E-06    .18005E-04
  31  Prefactor     8.5179        5.9358        .92088E-06   -.77839E-03
  32  Normalizat    1.9625        .26035       -.43848E-06    .46612E-04
  33  Prefactor     .36174        .25333       -.12239E-05   -.34706E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.31
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.30636
  Prefactor  = 18.9181
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.22377
  Prefactor  = 13.2541
  Prefactor  = 0.0001
  Prefactor  = 140.365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.4419
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 1.54591
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 7.85543
  Prefactor  = 0.000100001
  Prefactor  = 4.49842
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 3.58965
  Prefactor  = 8.51787
  Normalizat = 1.96248
  Prefactor  = 0.361735
 **********
 **   18 **HESSE 
 **********

 FCN=   4949.529     FROM HESSE     STATUS=OK           687 CALLS     5235 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.310        68.820        .51248E-04   -1.4140    
   2  Prefactor     .10000E-03    15.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2618        .14169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3064        6.3662        .14839E-03   -1.5167    
   6  Prefactor     18.918        12.682        .92095E-04   -1.4838    
   7  norm          .10000E-03    39.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.7655        .13327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5695        .10992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2238        10.072        .80467E-03   -1.5209    
  11  Prefactor     13.254        30.184        .11004E-03   -1.4980    
  12  Prefactor     .10000E-03    9.8381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     140.36        131.33        .17002E-03   -1.3333    
  14  Prefactor     .10000E-03    7.0163        .18139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.4419        17.502        .13043E-03   -1.5093    
  17  norm          .10000E-03    8.1375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.0197        .13753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.5466        .12885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.9670        .16689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    113.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5459        4.0412        .21818E-03   -1.5459    
  23  Prefactor     .10000E-03    12.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.5737        .12816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.8554        5.4999        .13057E-03   -1.5147    
  26  Prefactor     .10000E-03    110.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.4984        3.9065        .12341E-03   -1.5284    
  28  Prefactor     .10000E-03    21.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    24.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.5897        5.7569        .20257E-03   -1.5329    
  31  Prefactor     8.5179        6.0913        .68686E-03   -1.5124    
  32  Normalizat    1.9625        .28046        .21622E-03   -.65494    
  33  Prefactor     .36174        .26481        .45693E-03   -1.1881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33897e-09
Minuit parameter uncertainties:
  1  68.9097
  2  0.000286212
  3  0.000108256
  4  4.20794e-05
  5  6.36677
  6  12.6834
  7  0.000533323
  8  4.48052e-05
  9  3.52403e-06
  10  10.0745
  11  30.2189
  12  1.55411e-05
  13  131.609
  14  8.20358e-05
  15  9.70752e-06
  16  17.512
  17  8.30357e-05
  18  7.19021e-05
  19  1.0963e-05
  20  4.3514e-05
  21  0.00108758
  22  4.0419
  23  0.000257695
  24  9.04445e-06
  25  5.50025
  26  0.000758917
  27  3.9067
  28  0.000174673
  29  0.000689383
  30  5.75774
  31  6.0917
  32  0.280693
  33  0.265705
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  9.044e-06  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:  3.617e-01  2.657e-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.962e+00  2.807e-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: 8.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38153/likelihoodResults_663638401_663897601_4FGL_J2329.3-4955_daily_bin1637.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): 102
logL (Free Index) = 4949.53196181
delta logL = -0.00301281779502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4949.52139163
delta logL = 0.00755735491293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95651E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2370       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .36540       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=   4949.521     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      438 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95650E-01    17.671        .17777E-01    .10347E-02
   2  alpha         3.2370        2.7512        .43677       -.81874E-05
   3  Normalizat    1.9544        .31179E-01    .48994E-01   -.49915E-05
   4  Prefactor     .36546        .30894E-01    .10259        .43331E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0956502
  alpha      = 3.23703
  Normalizat = 1.95437
  Prefactor  = 0.365464
 **********
 **   18 **HESSE 
 **********

 FCN=   4949.521     FROM HESSE     STATUS=OK            35 CALLS      473 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95650E-01    20.165        .10921E-02   -1.5646    
   2  alpha         3.2370        3.3221        .84277E-01    .29926    
   3  Normalizat    1.9544        .29757        .21656E-03   -.65699    
   4  Prefactor     .36546        .26791        .45469E-03   -1.1861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.27712e-09
Minuit parameter uncertainties:
  1  2.77711
  2  11.2327
  3  0.297854
  4  0.268825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38153': 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) = 4949.5213916
delta logL = 0.00755739283704

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  9.565e-02  2.777e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  3.237e+00  1.123e+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:  3.655e-01  2.688e-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.954e+00  2.979e-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/38153/cmap_HighResolution_663638401_663897601_4FGL_J2329.3-4955_daily_bin1637.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-05', job_status='DONE', photon_flux_upper_limit='8.54e-08', time_completed='2022-01-15 01:27:02.518202', job_id='38153', GAL2='0.37', fit_tolerance='1e-08', EG2='1.95', EG='1.96', time_epoch_completed='1642238822.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.36', dlogl='7.56e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1637' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 15 01:27:02 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 38153: <4FGL_J2329.3-4955_daily_bin1637> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin1637> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Jan 15 01:10:38 2022
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 15 01:12:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 15 01:12:37 2022
Terminated at Sat Jan 15 01:27:03 2022
Results reported at Sat Jan 15 01:27:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1637 352.329 -49.9324 663638401 663897601 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 :                                   836.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            985 sec.

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

