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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1612
RA = 352.329, Dec = -49.9324
tmin = 657158401, tmax = 657417601
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='501421', job_status='RUN', time_executed='2021-12-08 09:32:20.663139', time_epoch_executed='1638984740.66' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/501421

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/501421/ft1_4FGL_J2329.3-4955_daily_bin1612.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/501421/ft2_4FGL_J2329.3-4955_daily_bin1612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/501421/ft1_4FGL_J2329.3-4955_daily_bin1612.fits outfile=/scratch/kocevski/501421/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1612.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=657158401.0 tmax=657417601.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.71
user 3.46
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/501421/ft2_4FGL_J2329.3-4955_daily_bin1612.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/501421/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1612.fits evtable="EVENTS" outfile="/scratch/kocevski/501421/ft1_filtered_4FGL_J2329.3-4955_daily_bin1612.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/501421/ft1_filtered_4FGL_J2329.3-4955_daily_bin1612.fits" evtable="EVENTS" scfile=/scratch/kocevski/501421/ft2_4FGL_J2329.3-4955_daily_bin1612.fits sctable="SC_DATA" outfile=/scratch/kocevski/501421/ltcube_657158401_657417601_4FGL_J2329.3-4955_daily_bin1612.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/501421/ft2_4FGL_J2329.3-4955_daily_bin1612.fits
.....................!
real 14.69
user 14.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/501421/ft1_filtered_4FGL_J2329.3-4955_daily_bin1612.fits evtable="EVENTS" scfile=/scratch/kocevski/501421/ft2_4FGL_J2329.3-4955_daily_bin1612.fits sctable="SC_DATA" expcube=/scratch/kocevski/501421/ltcube_657158401_657417601_4FGL_J2329.3-4955_daily_bin1612.fits outfile=/scratch/kocevski/501421/expmap_657158401_657417601_4FGL_J2329.3-4955_daily_bin1612.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/501421/ltcube_657158401_657417601_4FGL_J2329.3-4955_daily_bin1612.fits
.....................!
real 192.35
user 186.88
sys 4.92

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

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/501421/ft1_filtered_4FGL_J2329.3-4955_daily_bin1612.fits scfile=/scratch/kocevski/501421/ft2_4FGL_J2329.3-4955_daily_bin1612.fits outfile=/scratch/kocevski/501421/cmap_657158401_657417601_4FGL_J2329.3-4955_daily_bin1612.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/501421/ft1_filtered_4FGL_J2329.3-4955_daily_bin1612.fits scfile=/scratch/kocevski/501421/ft2_4FGL_J2329.3-4955_daily_bin1612.fits outfile=/scratch/kocevski/501421/cmap_HighResolution_657158401_657417601_4FGL_J2329.3-4955_daily_bin1612.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.56
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1047       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8920       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.137       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4386       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5418       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.074       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11465E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1730       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.037       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.441       1.0000         .10000E-03   10000.    
    22 'norm      '    .10281E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12443E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.3365       1.0000         .10000E-03   10000.    
    25 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0283       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .67262       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=   6356.113     FROM MIGRAD    STATUS=CONVERGED    877 CALLS     3912 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0725        92.658       -.29424E-05   -.59738E-04
   2  Prefactor     8.8887        14.718        .92255E-07   -.10012E-04
   3  Prefactor     27.134        26.536       -.43699E-06   -.63808E-04
   4  Prefactor     .10000E-03    2.3275       -.11788E-06** at limit **
   5  Prefactor     .10000E-03    2.0154       -.33198E-07** at limit **
   6  Prefactor     .10000E-03    2.7422        .31838E-07** at limit **
   7  norm          .10000E-03    12.134       -.64799E-06** at limit **
   8  norm          .10000E-03    1.4993        .63210E-08** at limit **
   9  Prefactor     1.4386        2.5293        .10897E-06   -.16227E-03
  10  Prefactor     2.5411        5.3213        .62292E-06   -.12985E-03
  11  Prefactor     11.075        21.984        .23204E-06   -.23951E-04
  12  Prefactor     .10000E-03    10.743        .89733E-06** at limit **
  13  Prefactor     .10000E-03    42.858        .90290E-06** at limit **
  14  Prefactor     4.1723        4.6540        .16020E-05   -.74238E-03
  15  Prefactor     33.026        33.813       -.27314E-05   -.24855E-03
  16  Prefactor     .10000E-03    6.4525       -.12267E-06** at limit **
  17  norm          .10000E-03    3.3195        .35672E-07** at limit **
  18  norm          .10000E-03    1.7695        .47874E-07** at limit **
  19  norm          .10000E-03    .97365       -.16510E-07** at limit **
  20  Prefactor     .10000E-03    4.1635        .36793E-06** at limit **
  21  Prefactor     16.430        22.225       -.13804E-05   -.15584E-03
  22  norm          .10000E-03    1.1648       -.47962E-07** at limit **
  23  Prefactor     .10000E-03    7.5807       -.17462E-06** at limit **
  24  norm          1.3364        .87120        .50476E-08   -.22286E-03
  25  norm          .10000E-03    1.2445       -.50052E-07** at limit **
  26  Prefactor     .10000E-03    5.0328       -.30199E-06** at limit **
  27  Prefactor     .10000E-03    1.1709        .22313E-07** at limit **
  28  Prefactor     .10000E-03    5.4432        .46730E-06** at limit **
  29  norm          .10000E-03    8.2124       -.48102E-06** at limit **
  30  Prefactor     .10000E-03    2.2168        .23490E-06** at limit **
  31  Prefactor     .10000E-03    1.5681        .16673E-07** at limit **
  32  Normalizat    1.0285        .14455        .21567E-06   -.77157E-04
  33  Prefactor     .67244        .14849       -.37037E-06   -.15418E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.07246
  Prefactor  = 8.88867
  Prefactor  = 27.1339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.43862
  Prefactor  = 2.54105
  Prefactor  = 11.0753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.17234
  Prefactor  = 33.0262
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4304
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.33641
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02848
  Prefactor  = 0.672437
 **********
 **   18 **HESSE 
 **********

 FCN=   6356.113     FROM HESSE     STATUS=OK           687 CALLS     4599 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0725        102.47        .45095E-03   -1.5501    
   2  Prefactor     8.8887        14.709        .13441E-03   -1.5112    
   3  Prefactor     27.134        26.648        .76903E-04   -1.4666    
   4  Prefactor     .10000E-03    2.3353        .11883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.0198        .11052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7877        .12891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4996        .95336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4386        2.4990        .16226E-03   -1.5468    
  10  Prefactor     2.5411        5.2731        .23896E-03   -1.5389    
  11  Prefactor     11.075        21.787        .12039E-03   -1.5042    
  12  Prefactor     .10000E-03    10.982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    42.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1723        4.9348        .93175E-03   -1.5299    
  15  Prefactor     33.026        35.134        .69715E-04   -1.4558    
  16  Prefactor     .10000E-03    6.4940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3214        .14186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7717        .10357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .97383        .76822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9641        .29074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.430        22.593        .98777E-04   -1.4897    
  22  norm          .10000E-03    1.1767        .83862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.001        .38827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.3364        .84790        .56490E-04   -1.5477    
  25  norm          .10000E-03    1.2519        .86728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.0654        .17488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.1874        .84162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.4702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    8.2485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.2529        .11590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1.5907        .97311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0285        .17061        .19427E-03   -.92082    
  33  Prefactor     .67244        .17535        .25269E-03   -1.0462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12233e-10
Minuit parameter uncertainties:
  1  21.0027
  2  14.7152
  3  26.6593
  4  7.45613e-06
  5  1.97906e-06
  6  3.20849e-07
  7  8.10169e-05
  8  2.72977e-08
  9  2.49918
  10  5.27401
  11  21.8024
  12  6.99018e-05
  13  0.000205051
  14  4.93532
  15  35.156
  16  1.03642e-05
  17  2.10236e-06
  18  1.81924e-06
  19  4.68071e-07
  20  0.000104047
  21  22.6044
  22  5.39182e-06
  23  8.43067e-06
  24  0.84791
  25  3.8985e-06
  26  2.72121e-05
  27  1.1389e-08
  28  3.73714e-05
  29  4.96935e-05
  30  9.54176e-06
  31  4.70649e-07
  32  0.170699
  33  0.175495
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.336e+00  8.479e-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:  6.724e-01  1.755e-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.028e+00  1.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.24
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.62e-08 +/- 2.29e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 8.73e-06

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) = 6355.62054954
delta logL = 0.492806395886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6355.61521823
delta logL = 0.498137708009

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2525       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8407       1.0000          .0000       5.0000    
     3 'Normalizat'    .99070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69688       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=   6355.615     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2531        10.077        .99846E-02    .42855E-03
   2  alpha         2.8411        3.8602        .36890        .40513E-04
   3  Normalizat    .99072        .49087E-01    .46050E-01    .76054E-05
   4  Prefactor     .69685        .48659E-01    .42360E-01    .19957E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.25308
  alpha      = 2.84105
  Normalizat = 0.990724
  Prefactor  = 0.69685
 **********
 **   18 **HESSE 
 **********

 FCN=   6355.615     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2531        .82738        .44881E-04   -1.5484    
   2  alpha         2.8411        .68091        .14243E-01    .13685    
   3  Normalizat    .99072        .16758        .19738E-03   -.93342    
   4  Prefactor     .69685        .17647        .24855E-03   -1.0365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11652e-09
Minuit parameter uncertainties:
  1  0.827389
  2  0.689789
  3  0.16767
  4  0.176609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/501421': 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) = 6355.61521728
delta logL = 0.498138659542

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  6.969e-01  1.766e-01  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  9.907e-01  1.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.28
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 2.84 +/- 0.69
Photon Flux (Free Index): 6.37e-08 +/- 3.96e-08
Energy Flux (Free Index): 1.41e-05 +/- 7.41e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/501421/cmap_HighResolution_657158401_657417601_4FGL_J2329.3-4955_daily_bin1612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.62e-08', energy_flux2='1.41e-05', photon_flux_error='2.29e-08', dlogl='4.98e-01', energy_flux='1.38e-05', photon_flux2='6.37e-08', job_status='DONE', time_completed='2021-12-08 09:45:23.446506', photon_index_error2='0.69', photon_index2='2.84', ts='5.24', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='7.41e-06', EG='1.03', time_epoch_completed='1638985523.45', return_code='0', job_id='501421', GAL2='0.70', EG2='0.99', return_code2='0', energy_flux_error='8.73e-06', photon_flux_error2='3.96e-08', ts2='6.28', photon_index='2.18' WHERE bin_id='1612' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:45:23 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 501421: <4FGL_J2329.3-4955_daily_bin1612> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin1612> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Dec  8 09:30:24 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:32:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:32:15 2021
Terminated at Wed Dec  8 09:45:24 2021
Results reported at Wed Dec  8 09:45:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1612 352.329 -49.9324 657158401 657417601 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 :                                   781.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            900 sec.

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

