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


Performing analysis on: 4FGL_J2329.3-4733_daily_bin1568
RA = 352.339, Dec = -47.5558
tmin = 645753601, tmax = 646012801
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='953281', job_status='RUN', time_executed='2021-09-29 21:10:28.424174', time_epoch_executed='1632975028.42' WHERE source_name='4FGL J2329.3-4733' and cadence='daily' and bin_id='1568'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953281

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953281/ft1_4FGL_J2329.3-4733_daily_bin1568.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953281/ft2_4FGL_J2329.3-4733_daily_bin1568.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953281/ft1_4FGL_J2329.3-4733_daily_bin1568.fits outfile=/scratch/kocevski/953281/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1568.fits ra=352.339 dec=-47.5558 rad=12.0 tmin=645753601.0 tmax=646012801.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.29
user 2.10
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953281/ft2_4FGL_J2329.3-4733_daily_bin1568.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/953281/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1568.fits evtable="EVENTS" outfile="/scratch/kocevski/953281/ft1_filtered_4FGL_J2329.3-4733_daily_bin1568.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953281/ft1_filtered_4FGL_J2329.3-4733_daily_bin1568.fits" evtable="EVENTS" scfile=/scratch/kocevski/953281/ft2_4FGL_J2329.3-4733_daily_bin1568.fits sctable="SC_DATA" outfile=/scratch/kocevski/953281/ltcube_645753601_646012801_4FGL_J2329.3-4733_daily_bin1568.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/953281/ft2_4FGL_J2329.3-4733_daily_bin1568.fits
.....................!
real 12.56
user 12.22
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953281/ft1_filtered_4FGL_J2329.3-4733_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/953281/ft2_4FGL_J2329.3-4733_daily_bin1568.fits sctable="SC_DATA" expcube=/scratch/kocevski/953281/ltcube_645753601_646012801_4FGL_J2329.3-4733_daily_bin1568.fits outfile=/scratch/kocevski/953281/expmap_645753601_646012801_4FGL_J2329.3-4733_daily_bin1568.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/953281/ltcube_645753601_646012801_4FGL_J2329.3-4733_daily_bin1568.fits
.....................!
real 192.71
user 187.37
sys 4.96

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/953281/ft1_filtered_4FGL_J2329.3-4733_daily_bin1568.fits scfile=/scratch/kocevski/953281/ft2_4FGL_J2329.3-4733_daily_bin1568.fits outfile=/scratch/kocevski/953281/cmap_645753601_646012801_4FGL_J2329.3-4733_daily_bin1568.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953281/ft1_filtered_4FGL_J2329.3-4733_daily_bin1568.fits scfile=/scratch/kocevski/953281/ft2_4FGL_J2329.3-4733_daily_bin1568.fits outfile=/scratch/kocevski/953281/cmap_HighResolution_645753601_646012801_4FGL_J2329.3-4733_daily_bin1568.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.63
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953281/ft1_filtered_4FGL_J2329.3-4733_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/953281/ft2_4FGL_J2329.3-4733_daily_bin1568.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953281/Model_4FGL_J2329.3-4733_daily_bin1568.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/953281/ft1_filtered_4FGL_J2329.3-4733_daily_bin1568.fits.....................!
real 36.96
user 35.65
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.240       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5775       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8215       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.405       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.249       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10661E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.270       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22337E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.947       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .19778       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    89.742       1.0000         .10000E-03   10000.    
    25 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.5915       1.0000         .10000E-03   10000.    
    28 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    22.334       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .39206       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    4.4721       1.0000         .10000E-03   10000.    
    34 'Prefactor '    2.8462       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.6506       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .52139       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=   4460.412     FROM MIGRAD    STATUS=CONVERGED   1016 CALLS     5371 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.105       -.61982E-07** at limit **
   2  Prefactor     34.244        30.703        .50292E-07   -.21690E-04
   3  Prefactor     .10000E-03    23.034       -.45911E-06** at limit **
   4  Prefactor     .10000E-03    6.1295       -.25776E-06** at limit **
   5  Prefactor     .10000E-03    2.6388        .20190E-07** at limit **
   6  Prefactor     .10000E-03    19.067        .12140E-05** at limit **
   7  Prefactor     .10000E-03    7.2351       -.17381E-07** at limit **
   8  Prefactor     3.5816        9.6642        .41522E-05    .12823E-04
   9  norm          .10000E-03    6.2731        .31095E-06** at limit **
  10  Prefactor     3.8246        6.9820        .35340E-06   -.20349E-04
  11  Prefactor     14.396        51.889        .21602E-05    .66504E-06
  12  Prefactor     10.225        11.273        .29138E-06   -.70861E-05
  13  Prefactor     .10000E-03    76.195       -.70390E-05** at limit **
  14  Prefactor     16.232        17.788        .99870E-06    .12094E-03
  15  Prefactor     .10000E-03    61.128        .46568E-05** at limit **
  16  Prefactor     .10000E-03    2.4591       -.14176E-07** at limit **
  17  Prefactor     .10000E-03    275.73        .11316E-04** at limit **
  18  Prefactor     39.921        32.011        .61854E-06   -.72576E-04
  19  norm          .10000E-03    8.1198       -.12688E-06** at limit **
  20  norm          .19460        6.3762       -.21912E-06   -.66238E-05
  21  norm          .10000E-03    1.8776        .10897E-07** at limit **
  22  norm          .10000E-03    14.546       -.22533E-06** at limit **
  23  Prefactor     .10000E-03    3.0363       -.21816E-07** at limit **
  24  Prefactor     89.746        51.069        .44955E-06   -.18450E-04
  25  norm          .10000E-03    2.4444        .61412E-07** at limit **
  26  Prefactor     .10000E-03    9.2095        .40582E-06** at limit **
  27  norm          3.5922        2.0091       -.29977E-07   -.33681E-03
  28  norm          .10000E-03    2.0285        .33124E-07** at limit **
  29  Prefactor     22.339        24.190       -.11856E-06   -.31054E-04
  30  Prefactor     .39454        4.5733        .63224E-06   -.15552E-03
  31  Prefactor     .10000E-03    22.152       -.34918E-06** at limit **
  32  norm          .10000E-03    9.7558       -.22779E-06** at limit **
  33  Prefactor     4.4751        7.7226        .28843E-05   -.28330E-04
  34  Prefactor     2.8481        5.4285       -.50734E-08   -.44771E-04
  35  Normalizat    1.6504        .26835       -.23641E-05   -.42588E-04
  36  Prefactor     .52131        .24650        .70608E-06   -.92389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 34.2443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.58163
  norm       = 0.0001
  Prefactor  = 3.82464
  Prefactor  = 14.3955
  Prefactor  = 10.2252
  Prefactor  = 0.0001
  Prefactor  = 16.2319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 39.9206
  norm       = 0.0001
  norm       = 0.194599
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.7463
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.59218
  norm       = 0.0001
  Prefactor  = 22.3391
  Prefactor  = 0.394538
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.47507
  Prefactor  = 2.84811
  Normalizat = 1.65044
  Prefactor  = 0.521313
 **********
 **   18 **HESSE 
 **********

 FCN=   4460.412     FROM HESSE     STATUS=OK           807 CALLS     6178 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.244        30.661        .68483E-04   -1.4537    
   3  Prefactor     .10000E-03    23.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.1356        .16148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6410        .10595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.3281        .17539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5816        9.6368        .10683E-02   -1.5329    
   9  norm          .10000E-03    6.2743        .16338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8246        6.9855        .20646E-03   -1.5317    
  11  Prefactor     14.396        51.837        .10553E-03   -1.4949    
  12  Prefactor     10.225        11.259        .12516E-03   -1.5068    
  13  Prefactor     .10000E-03    76.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.232        17.822        .99294E-04   -1.4902    
  15  Prefactor     .10000E-03    61.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.4597        .10228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    276.98        .20127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     39.921        32.158        .63419E-04   -1.4443    
  19  norm          .10000E-03    8.1385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .19460        37.921        .32198E-02   -1.5620    
  21  norm          .10000E-03    1.8779        .89373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    14.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.0414        .11363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     89.746        51.659        .42416E-04   -1.3810    
  25  norm          .10000E-03    2.4508        .10178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.2402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.5922        2.0332        .62744E-04   -1.5329    
  28  norm          .10000E-03    2.0429        .92846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     22.339        24.362        .84757E-04   -1.4762    
  30  Prefactor     .39454        8.6877        .25106E-02   -1.5582    
  31  Prefactor     .10000E-03    22.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    9.7580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     4.4751        7.7092        .95201E-03   -1.5285    
  34  Prefactor     2.8481        5.4101        .19902E-03   -1.5370    
  35  Normalizat    1.6504        .31679        .22306E-03   -.73634    
  36  Prefactor     .52131        .28587        .38023E-03   -1.1101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72761e-08
Minuit parameter uncertainties:
  1  3.90424e-06
  2  30.6753
  3  2.95998e-06
  4  2.07953e-07
  5  9.64946e-07
  6  3.56045e-06
  7  6.42849e-06
  8  9.64101
  9  8.16422e-07
  10  6.98703
  11  51.9997
  12  11.2613
  13  0.000286994
  14  17.8281
  15  6.43686e-05
  16  5.86331e-07
  17  0.00131401
  18  32.1723
  19  7.53841e-07
  20  5.43509
  21  5.91899e-07
  22  9.67797e-06
  23  1.36378e-06
  24  51.6849
  25  4.80688e-06
  26  2.13615e-06
  27  2.03321
  28  2.89017e-06
  29  24.3726
  30  3.7029
  31  1.55191e-06
  32  1.96935e-06
  33  7.71092
  34  5.41105
  35  0.31718
  36  0.286659
Done.

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

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  1.000e-04  2.136e-06  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:  5.213e-01  2.867e-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.650e+00  3.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.339 -47.556
Photon Flux Upper Limit: 8.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953281/likelihoodResults_645753601_646012801_4FGL_J2329.3-4733_daily_bin1568.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4460.41227948
delta logL = -0.000513099698765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4460.41176777
delta logL = -1.38708855957e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13303E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4673       1.0000          .0000       10.000    
     3 'Normalizat'    1.6503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52144       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=   4460.412     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      248 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11281E-03    10.122        .18142E-01** at limit **
   2  Index         2.2955        5.9632        .50000        .31764E-04
   3  Normalizat    1.6504        .49448E-02    .22306E-03   -.19164E-04
   4  Prefactor     .52131        .50491E-02    .38023E-03   -.11978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000112811
  Index      = 2.29546
  Normalizat = 1.65044
  Prefactor  = 0.521311
 **********
 **   18 **HESSE 
 **********

 FCN=   4460.412     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11281E-03    103.54        .23748E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2955        5.0263        .50000       -.57152    
   3  Normalizat    1.6504        .15797E-01    .89223E-05   -.73634    
   4  Prefactor     .52131        .16130E-01    .15209E-04   -1.1101    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.50273e-08
Minuit parameter uncertainties:
  1  0.0729696
  2  343.451
  3  0.015797
  4  0.01613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953281': 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): 102
logL (Free Index) = 4460.41176514
delta logL = 1.23741847347e-06

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  1.128e-04  7.297e-02  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  2.295e+00  3.435e+02  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:  5.213e-01  1.613e-02  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.650e+00  1.580e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.339 -47.556

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/953281/cmap_HighResolution_645753601_646012801_4FGL_J2329.3-4733_daily_bin1568.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.88e-03', job_status='DONE', photon_flux_upper_limit='8.84e-08', time_completed='2021-09-29 21:24:35.582280', job_id='953281', GAL2='0.52', fit_tolerance='1e-08', EG2='1.65', EG='1.65', time_epoch_completed='1632975875.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='1.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1568' AND source_name='4FGL J2329.3-4733' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:24:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 953281: <4FGL_J2329.3-4733_daily_bin1568> in cluster <slac> Done

Job <4FGL_J2329.3-4733_daily_bin1568> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 21:10:18 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:10:20 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:10:20 2021
Terminated at Wed Sep 29 21:24:35 2021
Results reported at Wed Sep 29 21:24:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4733_daily_bin1568 352.339 -47.5558 645753601 646012801 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 :                                   843.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            857 sec.

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

