/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 181 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7371
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1233
RA = 352.329, Dec = -49.9324
tmin = 558921601, tmax = 559180801
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='968630', job_status='RUN', time_executed='2021-09-29 21:33:46.700757', time_epoch_executed='1632976426.7' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968630

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968630/ft1_4FGL_J2329.3-4955_daily_bin1233.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968630/ft2_4FGL_J2329.3-4955_daily_bin1233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968630/ft1_4FGL_J2329.3-4955_daily_bin1233.fits outfile=/scratch/kocevski/968630/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1233.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=558921601.0 tmax=559180801.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.57
user 3.34
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968630/ft2_4FGL_J2329.3-4955_daily_bin1233.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/968630/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1233.fits evtable="EVENTS" outfile="/scratch/kocevski/968630/ft1_filtered_4FGL_J2329.3-4955_daily_bin1233.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/968630/ft1_filtered_4FGL_J2329.3-4955_daily_bin1233.fits" evtable="EVENTS" scfile=/scratch/kocevski/968630/ft2_4FGL_J2329.3-4955_daily_bin1233.fits sctable="SC_DATA" outfile=/scratch/kocevski/968630/ltcube_558921601_559180801_4FGL_J2329.3-4955_daily_bin1233.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/968630/ft2_4FGL_J2329.3-4955_daily_bin1233.fits
.....................!
real 11.67
user 11.26
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968630/ft1_filtered_4FGL_J2329.3-4955_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/968630/ft2_4FGL_J2329.3-4955_daily_bin1233.fits sctable="SC_DATA" expcube=/scratch/kocevski/968630/ltcube_558921601_559180801_4FGL_J2329.3-4955_daily_bin1233.fits outfile=/scratch/kocevski/968630/expmap_558921601_559180801_4FGL_J2329.3-4955_daily_bin1233.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/968630/ltcube_558921601_559180801_4FGL_J2329.3-4955_daily_bin1233.fits
.....................!
real 190.47
user 184.89
sys 5.26

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968630/ft1_filtered_4FGL_J2329.3-4955_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/968630/ft2_4FGL_J2329.3-4955_daily_bin1233.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968630/Model_4FGL_J2329.3-4955_daily_bin1233.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/968630/ft1_filtered_4FGL_J2329.3-4955_daily_bin1233.fits.................!
real 14.93
user 13.72
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/968630/ft1_filtered_4FGL_J2329.3-4955_daily_bin1233.fits', '/scratch/kocevski/968630/ft2_4FGL_J2329.3-4955_daily_bin1233.fits', expMap='/scratch/kocevski/968630/expmap_558921601_559180801_4FGL_J2329.3-4955_daily_bin1233.fits', expCube='/scratch/kocevski/968630/ltcube_558921601_559180801_4FGL_J2329.3-4955_daily_bin1233.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/968630/Model_4FGL_J2329.3-4955_daily_bin1233.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/968630/ft1_filtered_4FGL_J2329.3-4955_daily_bin1233.fits
Spacecraft file(s): /scratch/kocevski/968630/ft2_4FGL_J2329.3-4955_daily_bin1233.fits
Exposure map: /scratch/kocevski/968630/expmap_558921601_559180801_4FGL_J2329.3-4955_daily_bin1233.fits
Exposure cube: /scratch/kocevski/968630/ltcube_558921601_559180801_4FGL_J2329.3-4955_daily_bin1233.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/968630/Model_4FGL_J2329.3-4955_daily_bin1233.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 221.065844364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 218.074915806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.828       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .66745E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3897       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5468       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21822E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28789E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    7.9256       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6153       1.0000         .10000E-03   10000.    
     9 'Prefactor '    171.88       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27494E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1691       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7212       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0694       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20791E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2794       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .48076       1.0000         .10000E-03   10000.    
    17 'norm      '    .11268E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .32485E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .17948E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30569E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12645E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    9.0308       1.0000         .10000E-03   10000.    
    23 'Prefactor '    191.99       1.0000         .10000E-03   10000.    
    24 'norm      '    .65700E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11321E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.1836       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .19063E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .94495E-02   1.0000         .10000E-03   10000.    
    29 'norm      '    1.2005       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .69396E-02   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .13339E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1609       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .16980       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   218.0115     FROM MIGRAD    STATUS=CONVERGED    335 CALLS      730 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     118.66        320.46       -.21983E-04   -.36775E-03
   2  Prefactor     .10000E-03    133.19       -.72354E-05** at limit **
   3  Prefactor     .10021E-03    415.33       -.43903E-05** at limit **
   4  Prefactor     1.5468        1.0651         .0000         .0000    
   5  Prefactor     .10000E-03    101.32       -.40252E-06** at limit **
   6  Prefactor     .10000E-03    43.069       -.48576E-05** at limit **
   7  norm          7.9256        1.0020         .0000         .0000    
   8  norm          1.6153        1.0584         .0000         .0000    
   9  Prefactor     178.44        127.04        .41729E-05   -.19415E-03
  10  Prefactor     .10001E-03    241.66        .24897E-05** at limit **
  11  Prefactor     4.1691        1.0074         .0000         .0000    
  12  Prefactor     2.7212        1.0180         .0000         .0000    
  13  Prefactor     4.0694        1.0077         .0000         .0000    
  14  Prefactor     .10000E-03    159.73       -.38650E-04** at limit **
  15  Prefactor     .40242E-02    656.77       -.58027E-05   -.13977E-02
  16  Prefactor     .10000E-03    446.76       -.44433E-05** at limit **
  17  norm          .10000E-03    64.077       -.45852E-06** at limit **
  18  norm          .10000E-03    129.88       -.30033E-05** at limit **
  19  norm          .10000E-03    18.443        .49462E-06** at limit **
  20  Prefactor     .10000E-03    111.53       -.27370E-05** at limit **
  21  Prefactor     .10000E-03    106.51        .68215E-05** at limit **
  22  norm          9.3963        13.136        .28489E-05   -.23554E-04
  23  Prefactor     196.91        217.25        .33933E-05   -.45339E-02
  24  norm          .10000E-03    13.185       -.32531E-05** at limit **
  25  norm          .10000E-03    35.433       -.37972E-05** at limit **
  26  Prefactor     2.1836        1.0290         .0000         .0000    
  27  Prefactor     .10000E-03    73.313       -.36482E-05** at limit **
  28  Prefactor     .10000E-03    211.15        .98818E-05** at limit **
  29  norm          .10002E-03    1204.4        .77522E-05** at limit **
  30  Prefactor     .10003E-03    260.34       -.50324E-05** at limit **
  31  Prefactor     .10000E-03    14.198       -.72970E-06** at limit **
  32  Normalizat    .97998        1.3690        .63100E-04   -.95082E-05
  33  Prefactor     .22919        1.7748       -.13030E-03   -.44185E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 118.663
  Prefactor  = 0.0001
  Prefactor  = 0.00010021
  Prefactor  = 1.54684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.92563
  norm       = 1.61533
  Prefactor  = 178.439
  Prefactor  = 0.000100007
  Prefactor  = 4.16915
  Prefactor  = 2.7212
  Prefactor  = 4.06936
  Prefactor  = 0.0001
  Prefactor  = 0.00402419
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.3963
  Prefactor  = 196.905
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.18357
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100023
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Normalizat = 0.979983
  Prefactor  = 0.229191
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   218.0115     FROM HESSE     STATUS=FAILED        21 CALLS      751 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     118.66        267.63        .26928E-02   -1.3525    
   2  Prefactor     .10000E-03    133.07        .93515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10021E-03    414.88        .54940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     576.92        575.19         .0000       -1.5459    
   5  Prefactor     .10000E-03    .20847       -.40252E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .21004       -.48576E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.9256        1.0020         .0000       -1.5145    
   8  norm          1.6153        1.0584         .0000       -1.5454    
   9  Prefactor     178.44        1.0186        .41729E-05   -1.3028    
  10  Prefactor     .10001E-03    .20975        .24897E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1691        1.0074         .0000       -1.5300    
  12  Prefactor     2.7212        1.0180         .0000       -1.5378    
  13  Prefactor     4.0694        1.0077         .0000       -1.5304    
  14  Prefactor     .10000E-03    .20571       -.38650E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .40242E-02    .40094E-01   -.58027E-05   -1.5720    
  16  Prefactor     .10000E-03    .31315       -.44433E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20608       -.45852E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .28504       -.30033E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .20571        .49462E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .24522       -.27370E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .26523        .68215E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.3963        1.0216        .28489E-05   -1.5095    
  23  Prefactor     196.91        1.0125        .33933E-05   -1.2892    
  24  norm          .10000E-03    .27602       -.32531E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .20609       -.37972E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.1836        1.0290         .0000       -1.5412    
  27  Prefactor     .10000E-03    .20571       -.36482E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .20655        .98818E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10002E-03    .26820        .77522E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10003E-03    .21887       -.50324E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    .20571       -.72970E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .97998        1.0401        .63100E-04   -.93704    
  33  Prefactor     .22919        .51045       -.13030E-03   -1.2668    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.00799e-11
Minuit parameter uncertainties:
  1  270.431
  2  6.07847e-06
  3  0.0187809
  4  1.06512
  5  8.04369e-07
  6  4.59837e-06
  7  1.002
  8  1.05842
  9  1.01855
  10  7.84308e-05
  11  1.00738
  12  1.01796
  13  1.00775
  14  1.7717e-05
  15  0.0250868
  16  3.33625e-06
  17  7.14254e-07
  18  9.21872e-06
  19  5.27964e-07
  20  4.40309e-06
  21  1.06994e-06
  22  1.02159
  23  1.01247
  24  2.45428e-06
  25  4.43895e-06
  26  1.02897
  27  1.36352e-06
  28  2.47149e-05
  29  0.000156986
  30  0.000160379
  31  3.95611e-07
  32  1.06279
  33  0.520906
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 218.011546412

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  2.454e-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:  2.292e-01  5.209e-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.800e-01  1.063e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.329 -49.932
Photon Flux Upper Limit: 2.03e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.73e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968630/likelihoodResults_558921601_559180801_4FGL_J2329.3-4955_daily_bin1233.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) = 218.011569683
delta logL = -2.32704009875e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 218.011546505
delta logL = -9.23948846321e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1780       1.0000          .0000       5.0000    
     3 'Normalizat'    .98040       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .22867       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=   218.0115     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      231 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    14.372        .52456E-03** at limit **
   2  alpha         2.1957        3.3470        .16637       -.14593E-06
   3  Normalizat    .97998        1.2784        .23530E-03    .39290E-05
   4  Prefactor     .22919        1.7014        .46022E-03    .28323E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100013
  alpha      = 2.19569
  Normalizat = 0.979983
  Prefactor  = 0.229192
 **********
 **   18 **HESSE 
 **********

 FCN=   218.0115     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    13.205        .10491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1957        2.9161        .66546E-02   -.12203    
   3  Normalizat    .97998        1.2781        .47060E-04   -.93704    
   4  Prefactor     .22919        1.7004        .18409E-04   -1.2668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20387e-09
Minuit parameter uncertainties:
  1  0.000844067
  2  583.195
  3  1.32159
  4  1.30437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968630': 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) = 218.011546411
delta logL = 1.1609415651e-09

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  8.441e-04  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.196e+00  5.832e+02  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:  2.292e-01  1.304e+00  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.800e-01  1.322e+00  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/968630/cmap_HighResolution_558921601_559180801_4FGL_J2329.3-4955_daily_bin1233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.73e-04', job_status='DONE', photon_flux_upper_limit='2.03e-06', time_completed='2021-09-29 21:39:14.856191', job_id='968630', GAL2='0.23', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632976754.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.23', dlogl='1.16e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1233' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:39:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 968630: <4FGL_J2329.3-4955_daily_bin1233> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1233 352.329 -49.9324 558921601 559180801 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 :                                   326.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             429.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   519 sec.
    Turnaround time :                            519 sec.

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

