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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin913
RA = 352.329, Dec = -49.9324
tmin = 475977601, tmax = 476236801
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='964555', job_status='RUN', time_executed='2021-09-29 21:25:48.558745', time_epoch_executed='1632975948.56' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='913'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964555

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964555/ft1_4FGL_J2329.3-4955_daily_bin913.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964555/ft2_4FGL_J2329.3-4955_daily_bin913.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964555/ft1_4FGL_J2329.3-4955_daily_bin913.fits outfile=/scratch/kocevski/964555/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin913.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=475977601.0 tmax=476236801.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.52
user 3.33
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/964555/ft2_4FGL_J2329.3-4955_daily_bin913.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/964555/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin913.fits evtable="EVENTS" outfile="/scratch/kocevski/964555/ft1_filtered_4FGL_J2329.3-4955_daily_bin913.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964555/ft1_filtered_4FGL_J2329.3-4955_daily_bin913.fits" evtable="EVENTS" scfile=/scratch/kocevski/964555/ft2_4FGL_J2329.3-4955_daily_bin913.fits sctable="SC_DATA" outfile=/scratch/kocevski/964555/ltcube_475977601_476236801_4FGL_J2329.3-4955_daily_bin913.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/964555/ft2_4FGL_J2329.3-4955_daily_bin913.fits
.....................!
real 11.68
user 11.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964555/ft1_filtered_4FGL_J2329.3-4955_daily_bin913.fits evtable="EVENTS" scfile=/scratch/kocevski/964555/ft2_4FGL_J2329.3-4955_daily_bin913.fits sctable="SC_DATA" expcube=/scratch/kocevski/964555/ltcube_475977601_476236801_4FGL_J2329.3-4955_daily_bin913.fits outfile=/scratch/kocevski/964555/expmap_475977601_476236801_4FGL_J2329.3-4955_daily_bin913.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/964555/ltcube_475977601_476236801_4FGL_J2329.3-4955_daily_bin913.fits
.....................!
real 192.47
user 186.82
sys 5.32

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 183 point sources and 0 extended sources

Setting source of interest to:
4FGL J2329.3-4955 @ 352.329 -49.9324

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.13

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964555/ft1_filtered_4FGL_J2329.3-4955_daily_bin913.fits evtable="EVENTS" scfile=/scratch/kocevski/964555/ft2_4FGL_J2329.3-4955_daily_bin913.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964555/Model_4FGL_J2329.3-4955_daily_bin913.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/964555/ft1_filtered_4FGL_J2329.3-4955_daily_bin913.fits.....................!
real 41.68
user 40.44
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/964555/ft1_filtered_4FGL_J2329.3-4955_daily_bin913.fits', '/scratch/kocevski/964555/ft2_4FGL_J2329.3-4955_daily_bin913.fits', expMap='/scratch/kocevski/964555/expmap_475977601_476236801_4FGL_J2329.3-4955_daily_bin913.fits', expCube='/scratch/kocevski/964555/ltcube_475977601_476236801_4FGL_J2329.3-4955_daily_bin913.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/964555/Model_4FGL_J2329.3-4955_daily_bin913.xml', optimizer='MINUIT')

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

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  7.291e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.177e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
478         beta:  1.055e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
479           Eb:  5.219e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/964555/ft1_filtered_4FGL_J2329.3-4955_daily_bin913.fits
Spacecraft file(s): /scratch/kocevski/964555/ft2_4FGL_J2329.3-4955_daily_bin913.fits
Exposure map: /scratch/kocevski/964555/expmap_475977601_476236801_4FGL_J2329.3-4955_daily_bin913.fits
Exposure cube: /scratch/kocevski/964555/ltcube_475977601_476236801_4FGL_J2329.3-4955_daily_bin913.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/964555/Model_4FGL_J2329.3-4955_daily_bin913.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) = 5624.28959021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.217       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.350       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.9373       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1570       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.772       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.407       1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.224       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6675       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.406       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8472       1.0000         .10000E-03   10000.    
    17 'norm      '    6.0980       1.0000         .10000E-03   10000.    
    18 'norm      '    11.452       1.0000         .10000E-03   10000.    
    19 'norm      '    .10243E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1128       1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.095       1.0000         .10000E-03   10000.    
    22 'norm      '    .13780E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.2004       1.0000         .10000E-03   10000.    
    25 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12543E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.665       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.7216       1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .53575E-01   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.4222       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .77711       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .90874       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5624.278     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     4593 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.212        54.866        .13452E-06   -.19968E-04
   2  Prefactor     .10000E-03    5.8540        .60505E-07** at limit **
   3  Prefactor     38.392        39.403        .28464E-06    .82515E-04
   4  Prefactor     .10000E-03    3.1998        .52415E-07** at limit **
   5  Prefactor     .10000E-03    6.4253        .64082E-06** at limit **
   6  Prefactor     .10000E-03    12.508        .13428E-05** at limit **
   7  norm          .10000E-03    9.5041        .46487E-07** at limit **
   8  norm          9.9372        6.7082        .24573E-07    .86768E-06
   9  Prefactor     4.1565        3.5415        .10351E-06   -.16356E-04
  10  Prefactor     20.770        7.2663        .84842E-07    .11443E-05
  11  Prefactor     .10000E-03    21.989       -.72322E-07** at limit **
  12  Prefactor     13.405        10.663        .15235E-06   -.19182E-04
  13  Prefactor     45.203        63.827       -.44825E-06   -.59677E-04
  14  Prefactor     5.6667        6.6923        .26299E-06    .23405E-05
  15  Prefactor     17.404        23.181        .76152E-07   -.57530E-06
  16  Prefactor     3.8457        17.039        .87918E-07   -.11410E-04
  17  norm          6.0981        8.1180       -.44870E-07   -.20212E-05
  18  norm          11.452        8.0415       -.37240E-06   -.15411E-05
  19  norm          .10000E-03    3.0053       -.32642E-06** at limit **
  20  Prefactor     6.1134        6.4334        .30632E-05   -.11266E-03
  21  Prefactor     40.045        30.807        .30995E-06   -.28020E-04
  22  norm          .10000E-03    3.4795       -.12151E-05** at limit **
  23  Prefactor     .10000E-03    9.3864       -.91153E-06** at limit **
  24  norm          2.2000        1.3201       -.18956E-06   -.25375E-03
  25  norm          .10000E-03    1.5033       -.26556E-06** at limit **
  26  Prefactor     .10000E-03    56.858       -.84696E-07** at limit **
  27  Prefactor     13.680        6.6518       -.38690E-06   -.92184E-03
  28  Prefactor     6.6712        41.604        .29535E-06   -.15972E-03
  29  norm          .10000E-03    11.737       -.41963E-07** at limit **
  30  Prefactor     .10166E-03    3.2021        .85824E-06** at limit **
  31  Prefactor     1.4212        2.9923        .39782E-06   -.39444E-04
  32  Normalizat    .77735        .18452       -.79176E-06   -.18685E-03
  33  Prefactor     .90859        .18918       -.54517E-06   -.15050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.2122
  Prefactor  = 0.0001
  Prefactor  = 38.3919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.93716
  Prefactor  = 4.15654
  Prefactor  = 20.7698
  Prefactor  = 0.0001
  Prefactor  = 13.4047
  Prefactor  = 45.2031
  Prefactor  = 5.66671
  Prefactor  = 17.4044
  Prefactor  = 3.84568
  norm       = 6.09805
  norm       = 11.4523
  norm       = 0.0001
  Prefactor  = 6.11337
  Prefactor  = 40.0448
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.20001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6803
  Prefactor  = 6.67118
  norm       = 0.0001
  Prefactor  = 0.000101662
  Prefactor  = 1.4212
  Normalizat = 0.777351
  Prefactor  = 0.90859
 **********
 **   18 **HESSE 
 **********

 FCN=   5624.278     FROM HESSE     STATUS=OK           709 CALLS     5302 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.212        54.877        .71713E-04   -1.4590    
   2  Prefactor     .10000E-03    5.8559        .17721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.392        39.316        .64721E-04   -1.4468    
   4  Prefactor     .10000E-03    3.2075        .13101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.837        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.5061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.9372        6.7104        .12711E-03   -1.5077    
   9  Prefactor     4.1565        3.5379        .12538E-03   -1.5300    
  10  Prefactor     20.770        7.2706        .87881E-04   -1.4796    
  11  Prefactor     .10000E-03    22.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.405        10.660        .10939E-03   -1.4976    
  13  Prefactor     45.203        63.801        .59619E-04   -1.4362    
  14  Prefactor     5.6667        6.6871        .16873E-03   -1.5232    
  15  Prefactor     17.404        23.184        .96000E-04   -1.4873    
  16  Prefactor     3.8457        16.764        .20575E-03   -1.5316    
  17  norm          6.0981        8.1144        .16258E-03   -1.5214    
  18  norm          11.452        8.0382        .11838E-03   -1.5031    
  19  norm          .10000E-03    3.0425        .12682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.1134        6.4110        .81192E-03   -1.5213    
  21  Prefactor     40.045        30.747        .63302E-04   -1.4441    
  22  norm          .10000E-03    3.4912        .13518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.4967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.2000        1.3091        .59869E-04   -1.5411    
  25  norm          .10000E-03    1.5075        .89687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    59.020        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     13.680        6.6619        .96431E-04   -1.4968    
  28  Prefactor     6.6712        40.747        .15477E-03   -1.5191    
  29  norm          .10000E-03    11.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10166E-03    8.0684        .39807E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.4212        2.9597        .18045E-03   -1.5470    
  32  Normalizat    .77735        .22142        .24835E-03   -1.0091    
  33  Prefactor     .90859        .22646        .24988E-03   -.95842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20225e-10
Minuit parameter uncertainties:
  1  54.9661
  2  5.11814e-06
  3  39.3422
  4  2.09303e-06
  5  1.19437e-07
  6  3.60593e-05
  7  6.38728e-06
  8  6.71088
  9  3.53811
  10  7.27095
  11  2.06445e-07
  12  10.6616
  13  63.8978
  14  6.688
  15  23.1957
  16  16.0657
  17  8.11589
  18  8.039
  19  3.87824e-06
  20  6.41175
  21  30.7592
  22  7.83486e-06
  23  9.10978e-05
  24  1.30909
  25  6.13931e-07
  26  2.12712e-05
  27  6.66223
  28  33.0078
  29  3.5047e-05
  30  0.0073255
  31  2.96003
  32  0.221675
  33  0.226697
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  2.200e+00  1.309e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.177e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
478         beta:  1.055e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
479           Eb:  5.219e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  9.086e-01  2.267e-01  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  7.774e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.09
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.96e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 1.35e-05

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) = 5624.07745283
delta logL = 0.200860391766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5624.0608147
delta logL = 0.2174985264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9610       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8179       1.0000          .0000       5.0000    
     3 'Normalizat'    .79655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89739       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5624.061     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9605        1.2316        .74054E-02    .12993E-03
   2  alpha         1.8175        .43898        .33021       -.21648E-04
   3  Normalizat    .79666        .17339        .43565E-01    .14589E-04
   4  Prefactor     .89731        .18759        .44972E-01    .10972E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.9605
  alpha      = 1.81747
  Normalizat = 0.796663
  Prefactor  = 0.897309
 **********
 **   18 **HESSE 
 **********

 FCN=   5624.061     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9605        1.4018        .62458E-04   -1.5428    
   2  alpha         1.8175        .55613        .13069E-01   -.27652    
   3  Normalizat    .79666        .20680        .24584E-03   -1.0019    
   4  Prefactor     .89731        .22293        .25146E-03   -.96235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09709e-10
Minuit parameter uncertainties:
  1  1.40185
  2  0.561209
  3  0.207005
  4  0.223155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964555': 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) = 5624.06081431
delta logL = 0.217498914397

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.961e+00  1.402e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  1.817e+00  5.612e-01  0.000e+00  5.000e+00 ( 1.000e+00)
478         beta:  1.055e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
479           Eb:  5.219e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  8.973e-01  2.232e-01  0.000e+00  1.000e+01 ( 1.000e+00)
581        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
582        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
579   Normalization:  7.967e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.60
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 1.82 +/- 0.56
Photon Flux (Free Index): 4.18e-08 +/- 3.76e-08
Energy Flux (Free Index): 2.69e-05 +/- 1.89e-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/964555/cmap_HighResolution_475977601_476236801_4FGL_J2329.3-4955_daily_bin913.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.96e-08', energy_flux2='2.69e-05', photon_flux_error='3.54e-08', dlogl='2.17e-01', energy_flux='2.27e-05', photon_flux2='4.18e-08', job_status='DONE', time_completed='2021-09-29 21:38:35.807772', photon_index_error2='0.56', photon_index2='1.82', ts='10.09', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.89e-05', EG='0.78', time_epoch_completed='1632976715.81', return_code='0', job_id='964555', GAL2='0.90', EG2='0.80', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='3.76e-08', ts2='10.60', photon_index='2.18' WHERE bin_id='913' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:38:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 964555: <4FGL_J2329.3-4955_daily_bin913> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin913 352.329 -49.9324 475977601 476236801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2329.3-4955 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   765.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            786 sec.

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

