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


Performing analysis on: 4FGL_J2329.3-4733_daily_bin1081
RA = 352.339, Dec = -47.5558
tmin = 519523201, tmax = 519782401
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='950391', job_status='RUN', time_executed='2021-09-29 21:01:53.190527', time_epoch_executed='1632974513.19' WHERE source_name='4FGL J2329.3-4733' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950391

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950391/ft1_4FGL_J2329.3-4733_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950391/ft2_4FGL_J2329.3-4733_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950391/ft1_4FGL_J2329.3-4733_daily_bin1081.fits outfile=/scratch/kocevski/950391/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1081.fits ra=352.339 dec=-47.5558 rad=12.0 tmin=519523201.0 tmax=519782401.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.91
user 2.71
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/950391/ft2_4FGL_J2329.3-4733_daily_bin1081.fits

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950391/ft1_filtered_4FGL_J2329.3-4733_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/950391/ft2_4FGL_J2329.3-4733_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/950391/ltcube_519523201_519782401_4FGL_J2329.3-4733_daily_bin1081.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/950391/ft2_4FGL_J2329.3-4733_daily_bin1081.fits
.....................!
real 9.76
user 9.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950391/ft1_filtered_4FGL_J2329.3-4733_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/950391/ft2_4FGL_J2329.3-4733_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/950391/ltcube_519523201_519782401_4FGL_J2329.3-4733_daily_bin1081.fits outfile=/scratch/kocevski/950391/expmap_519523201_519782401_4FGL_J2329.3-4733_daily_bin1081.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/950391/ltcube_519523201_519782401_4FGL_J2329.3-4733_daily_bin1081.fits
.....................!
real 190.14
user 184.92
sys 4.87

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 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J2329.3-4733 @ 352.339 -47.5558

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/950391/ft1_filtered_4FGL_J2329.3-4733_daily_bin1081.fits scfile=/scratch/kocevski/950391/ft2_4FGL_J2329.3-4733_daily_bin1081.fits outfile=/scratch/kocevski/950391/cmap_519523201_519782401_4FGL_J2329.3-4733_daily_bin1081.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.339 yref=-47.5558 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950391/ft1_filtered_4FGL_J2329.3-4733_daily_bin1081.fits scfile=/scratch/kocevski/950391/ft2_4FGL_J2329.3-4733_daily_bin1081.fits outfile=/scratch/kocevski/950391/cmap_HighResolution_519523201_519782401_4FGL_J2329.3-4733_daily_bin1081.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.339 yref=-47.5558 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.52
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950391/ft1_filtered_4FGL_J2329.3-4733_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/950391/ft2_4FGL_J2329.3-4733_daily_bin1081.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950391/Model_4FGL_J2329.3-4733_daily_bin1081.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/950391/ft1_filtered_4FGL_J2329.3-4733_daily_bin1081.fits.....................!
real 34.64
user 33.44
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950391/ft1_filtered_4FGL_J2329.3-4733_daily_bin1081.fits', '/scratch/kocevski/950391/ft2_4FGL_J2329.3-4733_daily_bin1081.fits', expMap='/scratch/kocevski/950391/expmap_519523201_519782401_4FGL_J2329.3-4733_daily_bin1081.fits', expCube='/scratch/kocevski/950391/ltcube_519523201_519782401_4FGL_J2329.3-4733_daily_bin1081.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950391/Model_4FGL_J2329.3-4733_daily_bin1081.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2329.3-4733'

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  3.273e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  2.507e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
462        Scale:  1.077e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/950391/ft1_filtered_4FGL_J2329.3-4733_daily_bin1081.fits
Spacecraft file(s): /scratch/kocevski/950391/ft2_4FGL_J2329.3-4733_daily_bin1081.fits
Exposure map: /scratch/kocevski/950391/expmap_519523201_519782401_4FGL_J2329.3-4733_daily_bin1081.fits
Exposure cube: /scratch/kocevski/950391/ltcube_519523201_519782401_4FGL_J2329.3-4733_daily_bin1081.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950391/Model_4FGL_J2329.3-4733_daily_bin1081.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) = 4418.68209058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.808       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.015       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1512       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1783       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12641E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .69120       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10567E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.410       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.466       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.9526       1.0000         .10000E-03   10000.    
    20 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.6829       1.0000         .10000E-03   10000.    
    22 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0119       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.772       1.0000         .10000E-03   10000.    
    25 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.903       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .17978E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.9326       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .13031E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .11283E-02   1.0000         .10000E-03   10000.    
    33 'Prefactor '    3.8144       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .60798       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.2079       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+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=   4418.663     FROM MIGRAD    STATUS=CONVERGED   1848 CALLS     6152 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.089        .18142E-02** at limit **
   2  Prefactor     24.802        21.796        .80425E-04    .29403E-04
   3  Prefactor     36.971        38.733        .65875E-04   -.44077E-04
   4  Prefactor     .10000E-03    7.4820        .17726E-02** at limit **
   5  Prefactor     .10000E-03    2.6380        .10534E-02** at limit **
   6  Prefactor     9.1404        14.391        .13249E-03   -.42905E-05
   7  Prefactor     .10000E-03    4.5170        .13744E-02** at limit **
   8  Prefactor     4.1801        6.9664        .98584E-03   -.11232E-04
   9  norm          .10000E-03    3.7409        .12556E-02** at limit **
  10  Prefactor     .10000E-03    1.4016        .76566E-03** at limit **
  11  Prefactor     .10000E-03    120.72        .18142E-02** at limit **
  12  Prefactor     .69193        3.4608        .24257E-03   -.56710E-05
  13  Prefactor     .10000E-03    22.607        .18142E-02** at limit **
  14  Prefactor     17.406        12.935        .95988E-04   -.31031E-04
  15  Prefactor     .10000E-03    37.653        .18142E-02** at limit **
  16  Prefactor     .10000E-03    2.5138        .10275E-02** at limit **
  17  Prefactor     11.466        19.752        .11831E-03   -.65344E-05
  18  Prefactor     .10000E-03    8.6848        .18142E-02** at limit **
  19  norm          8.9542        11.580        .13396E-03    .23763E-05
  20  norm          .10000E-03    2.0478        .92891E-03** at limit **
  21  norm          6.6815        4.7479        .11822E-03    .19223E-03
  22  norm          .10000E-03    5.7337        .15508E-02** at limit **
  23  Prefactor     3.0135        6.0334        .19618E-03    .13143E-04
  24  Prefactor     16.677        31.868        .97798E-04    .24298E-03
  25  norm          .10000E-03    3.0646        .11248E-02** at limit **
  26  Prefactor     15.892        14.755        .10043E-03    .78105E-05
  27  norm          .10000E-03    .29789        .35233E-03** at limit **
  28  norm          .10000E-03    1.8598        .88045E-03** at limit **
  29  Prefactor     .10001E-03    167.15        .49362E-02** at limit **
  30  Prefactor     1.9339        4.4137        .18212E-03   -.11430E-03
  31  Prefactor     .10001E-03    65.658        .36285E-03** at limit **
  32  norm          .10002E-03    26.716        .10688    ** at limit **
  33  Prefactor     3.8117        6.8485        .98161E-03   -.16905E-03
  34  Prefactor     .10000E-03    3.5046        .12017E-02** at limit **
  35  Normalizat    .60816        .23237        .26072E-03   -.13426E-03
  36  Prefactor     1.2077        .25262        .21679E-03    .59436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 24.8022
  Prefactor  = 36.9711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.14044
  Prefactor  = 0.0001
  Prefactor  = 4.18007
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.691928
  Prefactor  = 0.0001
  Prefactor  = 17.4056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4659
  Prefactor  = 0.0001
  norm       = 8.95422
  norm       = 0.0001
  norm       = 6.68149
  norm       = 0.0001
  Prefactor  = 3.01349
  Prefactor  = 16.6775
  norm       = 0.0001
  Prefactor  = 15.8916
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 1.93391
  Prefactor  = 0.000100011
  norm       = 0.000100024
  Prefactor  = 3.81166
  Prefactor  = 0.0001
  Normalizat = 0.608158
  Prefactor  = 1.20772
 **********
 **   18 **HESSE 
 **********

 FCN=   4418.663     FROM HESSE     STATUS=OK           789 CALLS     6941 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.089        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.802        21.795        .16085E-04   -1.4712    
   3  Prefactor     36.971        38.727        .13175E-04   -1.4491    
   4  Prefactor     .10000E-03    7.4831        .35451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6381        .21068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1404        14.388        .52995E-05   -1.5103    
   7  Prefactor     .10000E-03    4.5177        .27488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1801        6.9628        .39434E-04   -1.5299    
   9  norm          .10000E-03    3.7409        .25112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4017        .15313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    120.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .69193        3.4601        .97028E-05   -1.5542    
  13  Prefactor     .10000E-03    22.610        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.406        12.934        .38395E-05   -1.4873    
  15  Prefactor     .10000E-03    37.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5139        .20550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.466        19.752        .47323E-05   -1.5031    
  18  Prefactor     .10000E-03    8.6862        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.9542        11.580        .53583E-05   -1.5109    
  20  norm          .10000E-03    2.0478        .18578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.6815        4.7478        .47290E-05   -1.5191    
  22  norm          .10000E-03    5.7345        .31017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.0135        6.0333        .39236E-04   -1.5361    
  24  Prefactor     16.677        31.860        .19560E-04   -1.4891    
  25  norm          .10000E-03    3.0648        .22496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.892        14.754        .40174E-05   -1.4910    
  27  norm          .10000E-03    .29789        .70466E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.8600        .17609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10001E-03    173.75        .19745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.9339        4.4071        .72846E-05   -1.5430    
  31  Prefactor     .10001E-03    65.660        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10002E-03    26.862        .10632       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     3.8117        6.8295        .39264E-04   -1.5317    
  34  Prefactor     .10000E-03    3.5057        .24033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .60816        .23238        .10429E-04   -1.0764    
  36  Prefactor     1.2077        .25285        .43358E-04   -.86094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01497e-09
Minuit parameter uncertainties:
  1  3.23634e-06
  2  21.8018
  3  38.7531
  4  9.05186e-06
  5  8.13761e-06
  6  14.3937
  7  1.25349e-05
  8  6.96411
  9  8.35476e-07
  10  2.73203e-06
  11  0.00089702
  12  3.09468
  13  1.28577e-05
  14  12.936
  15  6.83275e-05
  16  2.16735e-06
  17  19.7634
  18  1.11675e-05
  19  11.5825
  20  9.37776e-07
  21  4.74812
  22  1.65603e-06
  23  6.03454
  24  31.8921
  25  1.92746e-05
  26  14.7578
  27  2.87366e-06
  28  8.13857e-06
  29  0.00196489
  30  4.40782
  31  0.00168773
  32  0.00161584
  33  6.83085
  34  1.81526e-05
  35  0.232749
  36  0.253104
Done.

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

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  1.589e+01  1.476e+01  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  2.507e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
462        Scale:  1.077e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.208e+00  2.531e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  6.082e-01  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.82
Ra Dec: 352.339 -47.556
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 4.09e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.09e-05

TS (Fixed Index): 3.82
Ra Dec: 352.339 -47.556
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950391/likelihoodResults_519523201_519782401_4FGL_J2329.3-4733_daily_bin1081.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) = 4418.38816561
delta logL = 0.274903612565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4418.38545336
delta logL = 0.277615863332

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.194       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0258       1.0000          .0000       10.000    
     3 'Normalizat'    .62558       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1941       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+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=   4418.385     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      292 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.198        21.311        .81437E-04   -.14953E-02
   2  Index         2.0257        .60770        .71475E-02   -.56400E-03
   3  Normalizat    .62551        .21764        .25711E-03    .33296E-03
   4  Prefactor     1.1943        .24797        .21785E-03    .45489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.1978
  Index      = 2.02571
  Normalizat = 0.625512
  Prefactor  = 1.19426
 **********
 **   18 **HESSE 
 **********

 FCN=   4418.385     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.198        21.113        .16287E-04   -1.4724    
   2  Index         2.0257        .60190        .28590E-03   -.63709    
   3  Normalizat    .62551        .21781        .10284E-04   -1.0691    
   4  Prefactor     1.1943        .24820        .43570E-04   -.86508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.14141e-09
Minuit parameter uncertainties:
  1  21.1192
  2  0.604177
  3  0.218114
  4  0.248441
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950391': 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) = 4418.38545311
delta logL = 0.277616115337

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  2.420e+01  2.112e+01  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  2.026e+00  6.042e-01  0.000e+00  1.000e+01 (-1.000e+00)
462        Scale:  1.077e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.194e+00  2.484e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  6.255e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.39
Ra Dec: 352.339 -47.556
Photon Index (Free Index): 2.03 +/- 0.60
Photon Flux (Free Index): 2.91e-08 +/- 3.04e-08
Energy Flux (Free Index): 1.89e-05 +/- 2.22e-05

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/950391/cmap_HighResolution_519523201_519782401_4FGL_J2329.3-4733_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.30e-03', comment='SUCCESS', photon_flux='4.09e-08', energy_flux2='1.89e-05', photon_flux_error='3.79e-08', dlogl='2.78e-01', energy_flux='1.18e-05', photon_flux2='2.91e-08', job_status='DONE', time_completed='2021-09-29 21:16:23.593095', photon_index_error2='0.60', photon_index2='2.03', ts='3.82', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='2.22e-05', EG='0.61', time_epoch_completed='1632975383.59', return_code='0', job_id='950391', GAL2='1.19', EG2='0.63', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='3.04e-08', ts2='4.39', photon_index='2.51' WHERE bin_id='1081' AND source_name='4FGL J2329.3-4733' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:16:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 950391: <4FGL_J2329.3-4733_daily_bin1081> in cluster <slac> Done

Job <4FGL_J2329.3-4733_daily_bin1081> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 21:00:40 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:00:41 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:00:41 2021
Terminated at Wed Sep 29 21:16:23 2021
Results reported at Wed Sep 29 21:16:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4733_daily_bin1081 352.339 -47.5558 519523201 519782401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2329.3-4733 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   863.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

