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


Performing analysis on: 4FGL_J2329.3-4733_daily_bin1394
RA = 352.339, Dec = -47.5558
tmin = 600652801, tmax = 600912001
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='951872', job_status='RUN', time_executed='2021-09-29 21:06:15.704537', time_epoch_executed='1632974775.7' WHERE source_name='4FGL J2329.3-4733' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/951872

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/951872/ft1_4FGL_J2329.3-4733_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/951872/ft2_4FGL_J2329.3-4733_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/951872/ft1_4FGL_J2329.3-4733_daily_bin1394.fits outfile=/scratch/kocevski/951872/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1394.fits ra=352.339 dec=-47.5558 rad=12.0 tmin=600652801.0 tmax=600912001.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.63
user 3.42
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/951872/ft2_4FGL_J2329.3-4733_daily_bin1394.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/951872/ft1_filteredMKT_4FGL_J2329.3-4733_daily_bin1394.fits evtable="EVENTS" outfile="/scratch/kocevski/951872/ft1_filtered_4FGL_J2329.3-4733_daily_bin1394.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/951872/ft1_filtered_4FGL_J2329.3-4733_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/951872/ft2_4FGL_J2329.3-4733_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/951872/ltcube_600652801_600912001_4FGL_J2329.3-4733_daily_bin1394.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/951872/ft2_4FGL_J2329.3-4733_daily_bin1394.fits
.....................!
real 11.84
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/951872/ft1_filtered_4FGL_J2329.3-4733_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/951872/ft2_4FGL_J2329.3-4733_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/951872/ltcube_600652801_600912001_4FGL_J2329.3-4733_daily_bin1394.fits outfile=/scratch/kocevski/951872/expmap_600652801_600912001_4FGL_J2329.3-4733_daily_bin1394.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/951872/ltcube_600652801_600912001_4FGL_J2329.3-4733_daily_bin1394.fits
.....................!
real 189.92
user 185.26
sys 4.34

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/951872/ft1_filtered_4FGL_J2329.3-4733_daily_bin1394.fits scfile=/scratch/kocevski/951872/ft2_4FGL_J2329.3-4733_daily_bin1394.fits outfile=/scratch/kocevski/951872/cmap_600652801_600912001_4FGL_J2329.3-4733_daily_bin1394.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/951872/ft1_filtered_4FGL_J2329.3-4733_daily_bin1394.fits scfile=/scratch/kocevski/951872/ft2_4FGL_J2329.3-4733_daily_bin1394.fits outfile=/scratch/kocevski/951872/cmap_HighResolution_600652801_600912001_4FGL_J2329.3-4733_daily_bin1394.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13067E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.898       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.162       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7999       1.0000         .10000E-03   10000.    
     9 'norm      '    3.6231       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5011       1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.819       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.424       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10810E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .64133E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.409       1.0000         .10000E-03   10000.    
    19 'norm      '    6.6875       1.0000         .10000E-03   10000.    
    20 'norm      '    4.8302       1.0000         .10000E-03   10000.    
    21 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.2788       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    78.473       1.0000         .10000E-03   10000.    
    25 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.7072       1.0000         .10000E-03   10000.    
    27 'norm      '    .28946       1.0000         .10000E-03   10000.    
    28 'norm      '    .13178E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    84.660       1.0000         .10000E-03   10000.    
    32 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    1.7183       1.0000         .10000E-03   10000.    
    34 'Prefactor '    7.3818       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .72997       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.1382       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=   4051.139     FROM MIGRAD    STATUS=CONVERGED   1031 CALLS     5442 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.276        .19409E-06** at limit **
   2  Prefactor     .10002E-03    25.053       -.13426E-05** at limit **
   3  Prefactor     .10000E-03    34.982        .12820E-05** at limit **
   4  Prefactor     16.896        16.023        .15928E-06    .28019E-04
   5  Prefactor     16.158        14.486        .24579E-06    .55075E-04
   6  Prefactor     .10000E-03    8.3766        .13512E-08** at limit **
   7  Prefactor     .10000E-03    4.2183       -.96797E-07** at limit **
   8  Prefactor     6.7994        6.5753        .19138E-07    .11228E-04
   9  norm          3.6288        10.035       -.25993E-06    .79326E-04
  10  Prefactor     5.5025        4.9980       -.40868E-07    .15645E-05
  11  Prefactor     56.757        66.822        .26852E-05    .11351E-03
  12  Prefactor     .10000E-03    7.2566       -.15330E-06** at limit **
  13  Prefactor     56.384        38.182        .77104E-06    .98472E-04
  14  Prefactor     .10000E-03    19.659        .76611E-06** at limit **
  15  Prefactor     .10000E-03    58.997       -.11165E-05** at limit **
  16  Prefactor     .10015E-03    8.5950        .11398E-05** at limit **
  17  Prefactor     .10000E-03    21.926       -.66560E-06** at limit **
  18  Prefactor     10.395        25.295        .27224E-05    .13406E-03
  19  norm          6.6923        13.975        .59011E-07    .45313E-05
  20  norm          4.8307        6.0583        .25244E-06    .53630E-04
  21  norm          .10000E-03    4.1025        .38406E-06** at limit **
  22  norm          3.2827        15.010       -.52988E-06    .77294E-04
  23  Prefactor     .10002E-03    9.1212       -.10203E-06** at limit **
  24  Prefactor     78.426        54.294       -.53455E-06    .17407E-03
  25  norm          .10000E-03    6.5963        .11441E-05** at limit **
  26  Prefactor     1.7285        37.427        .52159E-05    .11296E-03
  27  norm          .29057        1.9579       -.10494E-05   -.24715E-03
  28  norm          .10008E-03    7.1688       -.22713E-05** at limit **
  29  Prefactor     .10000E-03    14.383       -.39972E-06** at limit **
  30  Prefactor     .10000E-03    2.3470       -.66058E-07** at limit **
  31  Prefactor     84.642        38.464        .97615E-06    .23342E-03
  32  norm          .10000E-03    25.117       -.10637E-05** at limit **
  33  Prefactor     1.7200        6.1791       -.23424E-06    .58865E-04
  34  Prefactor     7.3777        6.3440        .16478E-06    .30483E-03
  35  Normalizat    .73062        .24241       -.71082E-07    .25099E-03
  36  Prefactor     1.1375        .24120       -.33267E-06    .16148E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.000100001
  Prefactor  = 16.8961
  Prefactor  = 16.1577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.79944
  norm       = 3.62879
  Prefactor  = 5.50252
  Prefactor  = 56.7571
  Prefactor  = 0.0001
  Prefactor  = 56.3844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010015
  Prefactor  = 0.0001
  Prefactor  = 10.395
  norm       = 6.69232
  norm       = 4.83066
  norm       = 0.0001
  norm       = 3.28265
  Prefactor  = 0.000100017
  Prefactor  = 78.4261
  norm       = 0.0001
  Prefactor  = 1.72848
  norm       = 0.290569
  norm       = 0.000100078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.6423
  norm       = 0.0001
  Prefactor  = 1.71997
  Prefactor  = 7.37768
  Normalizat = 0.730619
  Prefactor  = 1.13747
 **********
 **   18 **HESSE 
 **********

 FCN=   4051.139     FROM HESSE     STATUS=OK           823 CALLS     6265 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    145.52        .58210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.896        16.033        .97431E-04   -1.4886    
   5  Prefactor     16.158        14.464        .99625E-04   -1.4904    
   6  Prefactor     .10000E-03    8.3772        .17993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2404        .12766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7994        6.5820        .15387E-03   -1.5186    
   9  norm          3.6288        9.9513        .10613E-02   -1.5327    
  10  Prefactor     5.5025        4.9944        .12904E-03   -1.5239    
  11  Prefactor     56.757        67.194        .26610E-03   -1.4200    
  12  Prefactor     .10000E-03    7.3667        .16728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     56.384        38.167        .53404E-04   -1.4205    
  14  Prefactor     .10000E-03    19.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    59.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10015E-03    7.6151        .56246E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.395        24.792        .12419E-03   -1.5063    
  19  norm          6.6923        13.961        .15517E-03   -1.5191    
  20  norm          4.8307        6.0556        .16903E-03   -1.5268    
  21  norm          .10000E-03    4.1381        .12571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.2827        14.737        .11181E-02   -1.5346    
  23  Prefactor     .10002E-03    29.810        .32638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     78.426        53.498        .45334E-04   -1.3934    
  25  norm          .10000E-03    6.6455        .15843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.7285        42.389        .16090E-02   -1.5445    
  27  norm          .29057        2.4244        .12590E-02   -1.5600    
  28  norm          .10008E-03    19.842        .23515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    14.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.3594        .95013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     84.642        38.380        .43659E-04   -1.3865    
  32  norm          .10000E-03    25.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.7200        6.1210        .27673E-03   -1.5446    
  34  Prefactor     7.3777        6.1287        .13493E-03   -1.5165    
  35  Normalizat    .73062        .30010        .27695E-03   -1.0270    
  36  Prefactor     1.1375        .29667        .24481E-03   -.88278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73055e-08
Minuit parameter uncertainties:
  1  6.15358e-05
  2  0.00323817
  3  0.000271062
  4  16.0367
  5  14.4675
  6  2.09372e-06
  7  2.1398e-06
  8  6.58272
  9  9.95584
  10  4.99479
  11  67.2843
  12  2.42102e-05
  13  38.1833
  14  2.33311e-05
  15  0.00032781
  16  0.00213426
  17  0.000115156
  18  24.8165
  19  13.9675
  20  6.05636
  21  5.32828e-06
  22  13.9161
  23  0.00142535
  24  53.5308
  25  4.07033e-05
  26  17.1326
  27  1.67844
  28  0.00249471
  29  1.84548e-05
  30  8.46238e-06
  31  38.3907
  32  0.000189306
  33  6.12318
  34  6.12925
  35  0.30078
  36  0.297103
Done.

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

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  1.728e+00  1.713e+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.137e+00  2.971e-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:  7.306e-01  3.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/951872/likelihoodResults_600652801_600912001_4FGL_J2329.3-4733_daily_bin1394.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) = 4050.83321373
delta logL = 0.306046445269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4050.82507476
delta logL = 0.314185414929

Fit tolerance = 1e-08

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

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

 FCN=   4050.825     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      237 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87584        24.666        .12710E-01    .79611E-03
   2  Index         4.1532        3.6951        .10969        .11355E-03
   3  Normalizat    .66729        .46076E-01    .65196E-01    .20351E-04
   4  Prefactor     1.1808        .49912E-01    .54436E-01   -.44334E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.87584
  Index      = 4.1532
  Normalizat = 0.667293
  Prefactor  = 1.18081
 **********
 **   18 **HESSE 
 **********

 FCN=   4050.825     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87584        71.682        .75316E-04   -1.5521    
   2  Index         4.1532        6.8406        .64242E-02   -.17018    
   3  Normalizat    .66729        .23633        .28846E-03   -1.0520    
   4  Prefactor     1.1808        .25040        .24069E-03   -.86924    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08718e-09
Minuit parameter uncertainties:
  1  15.8658
  2  9.06013
  3  0.236688
  4  0.250652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/951872': 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) = 4050.82507435
delta logL = 0.314185825354

Extracting fit parameters...

4FGL J2329.3-4733
   Spectrum: PowerLaw
460    Prefactor:  8.758e-01  1.587e+01  1.000e-04  1.000e+04 ( 1.000e-13)
461        Index:  4.153e+00  9.060e+00  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.181e+00  2.507e-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.673e-01  2.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/951872/cmap_HighResolution_600652801_600912001_4FGL_J2329.3-4733_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.89e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-29 21:19:57.205512', job_id='951872', GAL2='1.18', fit_tolerance='1e-08', EG2='0.67', EG='0.73', time_epoch_completed='1632975597.21', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.14e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1394' AND source_name='4FGL J2329.3-4733' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:19:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 951872: <4FGL_J2329.3-4733_daily_bin1394> in cluster <slac> Done

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

Your job looked like:

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

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

