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


Performing analysis on: 4FGL_J2329.3-4733_daily_bin1462
RA = 352.339, Dec = -47.5558
tmin = 618278401, tmax = 618537601
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='951980', job_status='RUN', time_executed='2021-09-29 21:06:05.610014', time_epoch_executed='1632974765.61' WHERE source_name='4FGL J2329.3-4733' and cadence='daily' and bin_id='1462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/951980

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/951980/ft1_4FGL_J2329.3-4733_daily_bin1462.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/951980/ft2_4FGL_J2329.3-4733_daily_bin1462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/951980/ft1_4FGL_J2329.3-4733_daily_bin1462.fits outfile=/scratch/kocevski/951980/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1462.fits ra=352.339 dec=-47.5558 rad=12.0 tmin=618278401.0 tmax=618537601.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.77
user 3.58
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/951980/ft2_4FGL_J2329.3-4733_daily_bin1462.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/951980/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1462.fits evtable="EVENTS" outfile="/scratch/kocevski/951980/ft1_filtered_4FGL_J2329.3-4733_daily_bin1462.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/951980/ft1_filtered_4FGL_J2329.3-4733_daily_bin1462.fits" evtable="EVENTS" scfile=/scratch/kocevski/951980/ft2_4FGL_J2329.3-4733_daily_bin1462.fits sctable="SC_DATA" outfile=/scratch/kocevski/951980/ltcube_618278401_618537601_4FGL_J2329.3-4733_daily_bin1462.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/951980/ft2_4FGL_J2329.3-4733_daily_bin1462.fits
.....................!
real 11.70
user 11.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/951980/ft1_filtered_4FGL_J2329.3-4733_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/951980/ft2_4FGL_J2329.3-4733_daily_bin1462.fits sctable="SC_DATA" expcube=/scratch/kocevski/951980/ltcube_618278401_618537601_4FGL_J2329.3-4733_daily_bin1462.fits outfile=/scratch/kocevski/951980/expmap_618278401_618537601_4FGL_J2329.3-4733_daily_bin1462.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/951980/ltcube_618278401_618537601_4FGL_J2329.3-4733_daily_bin1462.fits
.....................!
real 190.20
user 185.48
sys 4.41

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/951980/ft1_filtered_4FGL_J2329.3-4733_daily_bin1462.fits scfile=/scratch/kocevski/951980/ft2_4FGL_J2329.3-4733_daily_bin1462.fits outfile=/scratch/kocevski/951980/cmap_618278401_618537601_4FGL_J2329.3-4733_daily_bin1462.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/951980/ft1_filtered_4FGL_J2329.3-4733_daily_bin1462.fits scfile=/scratch/kocevski/951980/ft2_4FGL_J2329.3-4733_daily_bin1462.fits outfile=/scratch/kocevski/951980/cmap_HighResolution_618278401_618537601_4FGL_J2329.3-4733_daily_bin1462.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/951980/ft1_filtered_4FGL_J2329.3-4733_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/951980/ft2_4FGL_J2329.3-4733_daily_bin1462.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/951980/Model_4FGL_J2329.3-4733_daily_bin1462.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/951980/ft1_filtered_4FGL_J2329.3-4733_daily_bin1462.fits.....................!
real 41.12
user 39.83
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/951980/ft1_filtered_4FGL_J2329.3-4733_daily_bin1462.fits', '/scratch/kocevski/951980/ft2_4FGL_J2329.3-4733_daily_bin1462.fits', expMap='/scratch/kocevski/951980/expmap_618278401_618537601_4FGL_J2329.3-4733_daily_bin1462.fits', expCube='/scratch/kocevski/951980/ltcube_618278401_618537601_4FGL_J2329.3-4733_daily_bin1462.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/951980/Model_4FGL_J2329.3-4733_daily_bin1462.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/951980/ft1_filtered_4FGL_J2329.3-4733_daily_bin1462.fits
Spacecraft file(s): /scratch/kocevski/951980/ft2_4FGL_J2329.3-4733_daily_bin1462.fits
Exposure map: /scratch/kocevski/951980/expmap_618278401_618537601_4FGL_J2329.3-4733_daily_bin1462.fits
Exposure cube: /scratch/kocevski/951980/ltcube_618278401_618537601_4FGL_J2329.3-4733_daily_bin1462.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/951980/Model_4FGL_J2329.3-4733_daily_bin1462.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) = 5368.76725253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3464       1.0000         .10000E-03   10000.    
     3 'Prefactor '    80.031       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.194       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.907       1.0000         .10000E-03   10000.    
     9 'norm      '    .45125       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4967       1.0000         .10000E-03   10000.    
    11 'Prefactor '    74.264       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4180       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7600       1.0000         .10000E-03   10000.    
    15 'Prefactor '    116.35       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    18.071       1.0000         .10000E-03   10000.    
    20 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.5625       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.732       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10659E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.005       1.0000         .10000E-03   10000.    
    27 'norm      '    .10308E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.3423       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.3559       1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.7674       1.0000         .10000E-03   10000.    
    32 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.2053       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.0348       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.

 FCN=   5368.756     FROM MIGRAD    STATUS=CONVERGED   1012 CALLS     5301 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    57.496        .34092E-05** at limit **
   2  Prefactor     6.3455        19.384        .27555E-05   -.19450E-03
   3  Prefactor     80.023        53.515       -.17896E-05   -.17831E-03
   4  Prefactor     .10000E-03    7.4229       -.80230E-06** at limit **
   5  Prefactor     .10000E-03    13.665       -.86085E-06** at limit **
   6  Prefactor     38.193        39.860        .59958E-07   -.69198E-05
   7  Prefactor     .10000E-03    3.7070        .22491E-08** at limit **
   8  Prefactor     33.903        15.287       -.35883E-07   -.39801E-04
   9  norm          .47036        7.3516        .11233E-05   -.34677E-03
  10  Prefactor     4.4944        6.1437        .37448E-06   -.13543E-03
  11  Prefactor     74.256        58.933       -.16749E-05   -.15369E-03
  12  Prefactor     3.4180        3.4468       -.29889E-06   -.30214E-03
  13  Prefactor     .10001E-03    22.818       -.36497E-05** at limit **
  14  Prefactor     6.7606        11.957       -.11433E-06   -.36576E-04
  15  Prefactor     116.36        93.356        .90539E-06    .52466E-04
  16  Prefactor     .10000E-03    6.9665        .61586E-06** at limit **
  17  Prefactor     .10000E-03    22.156        .28836E-06** at limit **
  18  Prefactor     .10000E-03    5.8871       -.28067E-07** at limit **
  19  norm          18.071        15.155       -.31415E-07   -.47824E-07
  20  norm          .10000E-03    9.4055        .92241E-07** at limit **
  21  norm          .10000E-03    2.6563       -.99376E-08** at limit **
  22  norm          5.5624        9.8090        .24054E-05   -.59118E-03
  23  Prefactor     10.730        9.2919        .52794E-06   -.37273E-03
  24  Prefactor     .10001E-03    86.563       -.33739E-05** at limit **
  25  norm          .10000E-03    1.8773       -.11671E-07** at limit **
  26  Prefactor     12.002        15.911        .19209E-06   -.13603E-03
  27  norm          .10000E-03    .81998       -.10354E-06** at limit **
  28  norm          1.3428        4.1232        .11618E-05   -.36153E-05
  29  Prefactor     .10001E-03    19.520        .36112E-05** at limit **
  30  Prefactor     1.3552        3.9182        .54764E-06   -.27632E-03
  31  Prefactor     4.7647        25.374       -.52084E-06   -.20621E-04
  32  norm          .10000E-03    9.1509        .35374E-06** at limit **
  33  Prefactor     .10000E-03    3.1048       -.32504E-07** at limit **
  34  Prefactor     .10000E-03    1.4537       -.19937E-07** at limit **
  35  Normalizat    1.2059        .21254        .18974E-06   -.68429E-04
  36  Prefactor     1.0341        .22561       -.10116E-05   -.22732E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 6.34548
  Prefactor  = 80.0234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.193
  Prefactor  = 0.0001
  Prefactor  = 33.9028
  norm       = 0.470363
  Prefactor  = 4.49442
  Prefactor  = 74.2562
  Prefactor  = 3.41802
  Prefactor  = 0.000100006
  Prefactor  = 6.76055
  Prefactor  = 116.355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.0708
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.56236
  Prefactor  = 10.7304
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 12.002
  norm       = 0.0001
  norm       = 1.34277
  Prefactor  = 0.000100005
  Prefactor  = 1.35518
  Prefactor  = 4.76468
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20589
  Prefactor  = 1.03415
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.756     FROM HESSE     STATUS=OK           811 CALLS     6112 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    58.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3455        19.744        .79665E-03   -1.5204    
   3  Prefactor     80.023        53.869        .44894E-04   -1.3916    
   4  Prefactor     .10000E-03    7.4909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     38.193        39.877        .64853E-04   -1.4471    
   7  Prefactor     .10000E-03    3.7123        .13777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.903        15.335        .68818E-04   -1.4543    
   9  norm          .47036        44.758        .37831E-02   -1.5571    
  10  Prefactor     4.4944        6.1390        .18987E-03   -1.5284    
  11  Prefactor     74.256        59.455        .23295E-03   -1.3982    
  12  Prefactor     3.4180        3.4596        .13309E-03   -1.5338    
  13  Prefactor     .10001E-03    23.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7606        11.928        .15432E-03   -1.5188    
  15  Prefactor     116.36        93.450        .18650E-03   -1.3546    
  16  Prefactor     .10000E-03    7.0727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9007        .17362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          18.071        15.154        .94218E-04   -1.4858    
  20  norm          .10000E-03    9.7439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.6668        .11660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5624        10.492        .85172E-03   -1.5236    
  23  Prefactor     10.730        9.2896        .61150E-03   -1.5053    
  24  Prefactor     .10001E-03    88.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.8873        .97978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.002        15.903        .57807E-03   -1.5015    
  27  norm          .10000E-03    1.6945        .12553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.3428        4.1022        .25017E-03   -1.5476    
  29  Prefactor     .10001E-03    20.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.3552        3.8541        .22129E-03   -1.5475    
  31  Prefactor     4.7647        24.488        .18427E-03   -1.5271    
  32  norm          .10000E-03    9.1653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    3.1212        .12598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    1.4577        .86257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.2059        .26434        .25119E-03   -.86421    
  36  Prefactor     1.0341        .27998        .28883E-03   -.91600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85314e-09
Minuit parameter uncertainties:
  1  0.00108789
  2  19.7645
  3  53.9015
  4  9.25221e-05
  5  7.59829e-05
  6  39.9052
  7  2.37992e-06
  8  15.337
  9  9.18268
  10  6.13986
  11  59.5027
  12  3.45979
  13  0.000746658
  14  11.9322
  15  93.5692
  16  7.20901e-05
  17  5.73608e-05
  18  3.44509e-06
  19  15.1568
  20  1.17777e-05
  21  2.85745e-06
  22  10.4959
  23  9.2908
  24  0.00150575
  25  3.92389e-06
  26  15.9089
  27  1.57463e-06
  28  4.10306
  29  0.0006515
  30  3.85478
  31  21.6171
  32  4.8409e-05
  33  4.32257e-06
  34  5.15011e-07
  35  0.264632
  36  0.280379
Done.

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

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  1.200e+01  1.591e+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.034e+00  2.804e-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:  1.206e+00  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.19
Ra Dec: 352.339 -47.556
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 3.09e-08 +/- 4.09e-08
Energy Flux (Fixed Index): 8.89e-06 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/951980/likelihoodResults_618278401_618537601_4FGL_J2329.3-4733_daily_bin1462.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) = 5367.30067552
delta logL = 1.4557990505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5367.0155672
delta logL = 1.74090737656

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.391       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4843       1.0000          .0000       10.000    
     3 'Normalizat'    1.2324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0082       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.

 FCN=   5367.016     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      221 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.386        26.156       -.31054E-05   -.80166E-04
   2  Index         1.4843        .45102       -.13103E-04    .23460E-04
   3  Normalizat    1.2324        .20559        .25777E-06    .13024E-03
   4  Prefactor     1.0082        .22184        .24497E-06    .97529E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.3858
  Index      = 1.48434
  Normalizat = 1.23238
  Prefactor  = 1.00819
 **********
 **   18 **HESSE 
 **********

 FCN=   5367.016     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.386        25.864        .37595E-03   -1.4642    
   2  Index         1.4843        .44523        .74876E-02   -.77979    
   3  Normalizat    1.2324        .25361        .24876E-03   -.85608    
   4  Prefactor     1.0082        .27339        .29169E-03   -.92457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55918e-11
Minuit parameter uncertainties:
  1  25.8746
  2  0.446399
  3  0.253866
  4  0.273762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/951980': 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) = 5367.01556714
delta logL = 1.74090743338

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  2.839e+01  2.587e+01  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  1.484e+00  4.464e-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.008e+00  2.738e-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:  1.232e+00  2.539e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.69
Ra Dec: 352.339 -47.556
Photon Index (Free Index): 1.48 +/- 0.45
Photon Flux (Free Index): 1.93e-08 +/- 1.99e-08
Energy Flux (Free Index): 6.42e-05 +/- 7.85e-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/951980/cmap_HighResolution_618278401_618537601_4FGL_J2329.3-4733_daily_bin1462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.41e-03', comment='SUCCESS', photon_flux='3.09e-08', energy_flux2='6.42e-05', photon_flux_error='4.09e-08', dlogl='1.74e+00', energy_flux='8.89e-06', photon_flux2='1.93e-08', job_status='DONE', time_completed='2021-09-29 21:21:54.989392', photon_index_error2='0.45', photon_index2='1.48', ts='1.19', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='7.85e-05', EG='1.21', time_epoch_completed='1632975714.99', return_code='0', job_id='951980', GAL2='1.01', EG2='1.23', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='1.99e-08', ts2='4.69', photon_index='2.51' WHERE bin_id='1462' AND source_name='4FGL J2329.3-4733' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:21:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 951980: <4FGL_J2329.3-4733_daily_bin1462> in cluster <slac> Done

Job <4FGL_J2329.3-4733_daily_bin1462> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 21:05:47 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:05:48 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:05:48 2021
Terminated at Wed Sep 29 21:21:55 2021
Results reported at Wed Sep 29 21:21:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4733_daily_bin1462 352.339 -47.5558 618278401 618537601 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 :                                   923.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            968 sec.

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

