/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 = 7400
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2329.3-4955_daily_bin138
RA = 352.329, Dec = -49.9324
tmin = 275097601, tmax = 275356801
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='953532', job_status='RUN', time_executed='2021-09-29 21:10:44.927544', time_epoch_executed='1632975044.93' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953532

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953532/ft1_4FGL_J2329.3-4955_daily_bin138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953532/ft2_4FGL_J2329.3-4955_daily_bin138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953532/ft1_4FGL_J2329.3-4955_daily_bin138.fits outfile=/scratch/kocevski/953532/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin138.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=275097601.0 tmax=275356801.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 4.94
user 4.66
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953532/ft1_filtered_4FGL_J2329.3-4955_daily_bin138.fits" evtable="EVENTS" scfile=/scratch/kocevski/953532/ft2_4FGL_J2329.3-4955_daily_bin138.fits sctable="SC_DATA" outfile=/scratch/kocevski/953532/ltcube_275097601_275356801_4FGL_J2329.3-4955_daily_bin138.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/953532/ft2_4FGL_J2329.3-4955_daily_bin138.fits
.....................!
real 11.63
user 11.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953532/ft1_filtered_4FGL_J2329.3-4955_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/953532/ft2_4FGL_J2329.3-4955_daily_bin138.fits sctable="SC_DATA" expcube=/scratch/kocevski/953532/ltcube_275097601_275356801_4FGL_J2329.3-4955_daily_bin138.fits outfile=/scratch/kocevski/953532/expmap_275097601_275356801_4FGL_J2329.3-4955_daily_bin138.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/953532/ltcube_275097601_275356801_4FGL_J2329.3-4955_daily_bin138.fits
.....................!
real 189.37
user 184.50
sys 4.46

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/953532/ft1_filtered_4FGL_J2329.3-4955_daily_bin138.fits scfile=/scratch/kocevski/953532/ft2_4FGL_J2329.3-4955_daily_bin138.fits outfile=/scratch/kocevski/953532/cmap_275097601_275356801_4FGL_J2329.3-4955_daily_bin138.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953532/ft1_filtered_4FGL_J2329.3-4955_daily_bin138.fits scfile=/scratch/kocevski/953532/ft2_4FGL_J2329.3-4955_daily_bin138.fits outfile=/scratch/kocevski/953532/cmap_HighResolution_275097601_275356801_4FGL_J2329.3-4955_daily_bin138.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953532/ft1_filtered_4FGL_J2329.3-4955_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/953532/ft2_4FGL_J2329.3-4955_daily_bin138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953532/Model_4FGL_J2329.3-4955_daily_bin138.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/953532/ft1_filtered_4FGL_J2329.3-4955_daily_bin138.fits.....................!
real 33.24
user 31.95
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953532/ft1_filtered_4FGL_J2329.3-4955_daily_bin138.fits', '/scratch/kocevski/953532/ft2_4FGL_J2329.3-4955_daily_bin138.fits', expMap='/scratch/kocevski/953532/expmap_275097601_275356801_4FGL_J2329.3-4955_daily_bin138.fits', expCube='/scratch/kocevski/953532/ltcube_275097601_275356801_4FGL_J2329.3-4955_daily_bin138.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953532/Model_4FGL_J2329.3-4955_daily_bin138.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/953532/ft1_filtered_4FGL_J2329.3-4955_daily_bin138.fits
Spacecraft file(s): /scratch/kocevski/953532/ft2_4FGL_J2329.3-4955_daily_bin138.fits
Exposure map: /scratch/kocevski/953532/expmap_275097601_275356801_4FGL_J2329.3-4955_daily_bin138.fits
Exposure cube: /scratch/kocevski/953532/ltcube_275097601_275356801_4FGL_J2329.3-4955_daily_bin138.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953532/Model_4FGL_J2329.3-4955_daily_bin138.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) = 3864.90135107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34914E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.370       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12118E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .48815E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3983       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .45044       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .42815       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.539       1.0000         .10000E-03   10000.    
    13 'Prefactor '    90.107       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6320       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .87840E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.920       1.0000         .10000E-03   10000.    
    17 'norm      '    15.402       1.0000         .10000E-03   10000.    
    18 'norm      '    .72867E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22839E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    126.39       1.0000         .10000E-03   10000.    
    22 'norm      '    .25265E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.533       1.0000         .10000E-03   10000.    
    24 'norm      '    2.9978       1.0000         .10000E-03   10000.    
    25 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .21792E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.7429       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.7895       1.0000         .10000E-03   10000.    
    29 'norm      '    .51183E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .14894E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1563       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .79349       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3864.774     FROM MIGRAD    STATUS=CONVERGED    289 CALLS     3431 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10118E-03    56.198       -.37989E-04** at limit **
   2  Prefactor     .10000E-03    12.723       -.10646E-05** at limit **
   3  Prefactor     .10004E-03    16.116       -.26991E-04** at limit **
   4  Prefactor     .10000E-03    2.1867       -.99465E-06** at limit **
   5  Prefactor     10.360        8.6894       -.10799E-05    .59402E-04
   6  Prefactor     .10000E-03    8.8817       -.25424E-05** at limit **
   7  norm          .10000E-03    27.460        .14731E-04** at limit **
   8  norm          .10000E-03    3.8471       -.12685E-05** at limit **
   9  Prefactor     3.4423        5.9736       -.46762E-06   -.27630E-04
  10  Prefactor     .48348        39.859       -.21286E-04    .22755E-03
  11  Prefactor     .10002E-03    172.09        .46179E-04** at limit **
  12  Prefactor     9.1587        17.976       -.14808E-04   -.83541E-03
  13  Prefactor     152.37        214.52        .40764E-04   -.14165E-03
  14  Prefactor     3.6963        12.241       -.18032E-04   -.26964E-03
  15  Prefactor     .10005E-03    51.462       -.55710E-04** at limit **
  16  Prefactor     15.006        5.9799       -.17474E-05   -.37279E-03
  17  norm          15.357        13.375        .10392E-04    .52568E-03
  18  norm          .10002E-03    291.34        .13146E-03** at limit **
  19  norm          .10000E-03    3.6196       -.17767E-06** at limit **
  20  Prefactor     .10000E-03    13.481        .26977E-05** at limit **
  21  Prefactor     123.27        59.366        .11618E-04    .24975E-03
  22  norm          .10000E-03    6.0345       -.64231E-05** at limit **
  23  Prefactor     10.372        12.390       -.11910E-04   -.48805E-03
  24  norm          3.0042        1.7559       -.88188E-06   -.99809E-03
  25  norm          .10000E-03    2.2095        .28054E-06** at limit **
  26  Prefactor     .10169E-03    33.952        .18364E-05** at limit **
  27  Prefactor     5.7312        5.2534        .78907E-06    .11107E-03
  28  Prefactor     2.7943        3.5377       -.56391E-05    .80243E-03
  29  norm          .10001E-03    2.4428       -.99098E-05** at limit **
  30  Prefactor     .10000E-03    37.431       -.19727E-04** at limit **
  31  Prefactor     .10000E-03    2.5845        .25599E-07** at limit **
  32  Normalizat    1.1666        .27643        .10799E-04    .10520E-03
  33  Prefactor     .77957        .28268        .32144E-06    .78924E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101177
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 10.3602
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 3.44225
  Prefactor  = 0.483476
  Prefactor  = 0.00010002
  Prefactor  = 9.15867
  Prefactor  = 152.368
  Prefactor  = 3.69629
  Prefactor  = 0.000100046
  Prefactor  = 15.0064
  norm       = 15.3572
  norm       = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 123.272
  norm       = 0.0001
  Prefactor  = 10.3717
  norm       = 3.00416
  norm       = 0.0001
  Prefactor  = 0.000101687
  Prefactor  = 5.73124
  Prefactor  = 2.79429
  norm       = 0.000100006
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.16663
  Prefactor  = 0.77957
 **********
 **   18 **HESSE 
 **********

 FCN=   3864.774     FROM HESSE     STATUS=OK           785 CALLS     4216 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10118E-03    84.771        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.658        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10004E-03    52.443        .98290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1809        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.360        8.6550        .31107E-02   -1.5064    
   6  Prefactor     .10000E-03    8.8215        .10315E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    27.679        .96176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.8618        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4423        5.9676        .54866E-02   -1.5337    
  10  Prefactor     .48348        5.6388        .85825E-01   -1.5847    
  11  Prefactor     .10002E-03    170.56        .10974E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.1587        19.438        .29484E-02   -1.5103    
  13  Prefactor     152.37        213.77        .10583E-02   -1.3233    
  14  Prefactor     3.6963        12.270        .52997E-02   -1.5323    
  15  Prefactor     .10005E-03    56.293        .91563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.006        18.285        .25923E-02   -1.4933    
  17  norm          15.357        13.847        .25514E-02   -1.4924    
  18  norm          .10002E-03    9.7264        .70975E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.6343        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.445        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     123.27        59.701        .89517E-03   -1.3483    
  22  norm          .10000E-03    5.8071        .10730E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.372        14.622        .30864E-02   -1.5064    
  24  norm          3.0042        1.8217        .58611E-02   -1.5361    
  25  norm          .10000E-03    2.2135        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10169E-03    12.330        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.7312        5.6289        .41901E-02   -1.5229    
  28  Prefactor     2.7943        35.817        .60904E-02   -1.5374    
  29  norm          .10001E-03    71.604        .10573E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.2009        .68874E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    2.5654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1666        .22818        .51904E-01   -.87640    
  33  Prefactor     .77957        .23282        .64833E-01   -1.0049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26522e-08
Minuit parameter uncertainties:
  1  0.0200043
  2  9.00852e-05
  3  0.00295332
  4  1.38495e-05
  5  8.65604
  6  3.38579e-05
  7  0.000386337
  8  2.41164e-05
  9  5.96864
  10  3.30231
  11  0.00368781
  12  19.4514
  13  214.874
  14  12.2779
  15  0.00323183
  16  18.2914
  17  13.8497
  18  0.000777977
  19  9.38214e-06
  20  0.000282357
  21  59.7297
  22  3.44502e-05
  23  14.6269
  24  1.82172
  25  7.02931e-06
  26  0.00912363
  27  5.62938
  28  20.0227
  29  0.00136404
  30  0.000191424
  31  4.41812e-06
  32  0.228373
  33  0.233109
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  3.004e+00  1.822e+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:  7.796e-01  2.331e-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:  1.167e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.60
Ra Dec: 352.329 -49.932
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 8.13e-08 +/- 4.93e-08
Energy Flux (Fixed Index): 3.09e-05 +/- 1.88e-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) = 3864.70259295
delta logL = 0.0717018703331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3864.69961802
delta logL = 0.0746767929004

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9604       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4251       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79496       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=   3864.700     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9601        40.165        .59003E-02    .14199E-03
   2  alpha         2.4252        2.6293        .33833        .65917E-05
   3  Normalizat    1.1442        .19011        .52313E-01    .69502E-06
   4  Prefactor     .79512        .15200        .64253E-01    .92406E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.96005
  alpha      = 2.42523
  Normalizat = 1.14417
  Prefactor  = 0.795123
 **********
 **   18 **HESSE 
 **********

 FCN=   3864.700     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9601        1.7033        .56646E-04   -1.5364    
   2  alpha         2.4252        .66063        .13171E-01   -.29912E-01
   3  Normalizat    1.1442        .27397        .23129E-03   -.88346    
   4  Prefactor     .79512        .28118        .28422E-03   -.99908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12457e-11
Minuit parameter uncertainties:
  1  1.70328
  2  0.668583
  3  0.274307
  4  0.281689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953532': 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) = 3864.69961715
delta logL = 0.0746776695919

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  2.960e+00  1.703e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  2.425e+00  6.686e-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:  7.951e-01  2.817e-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:  1.144e+00  2.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.78
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 2.43 +/- 0.67
Photon Flux (Free Index): 9.92e-08 +/- 7.11e-08
Energy Flux (Free Index): 2.93e-05 +/- 1.66e-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/953532/cmap_HighResolution_275097601_275356801_4FGL_J2329.3-4955_daily_bin138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.13e-08', energy_flux2='2.93e-05', photon_flux_error='4.93e-08', dlogl='7.47e-02', energy_flux='3.09e-05', photon_flux2='9.92e-08', job_status='DONE', time_completed='2021-09-29 21:20:26.391825', photon_index_error2='0.67', photon_index2='2.43', ts='5.60', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.66e-05', EG='1.17', time_epoch_completed='1632975626.39', return_code='0', job_id='953532', GAL2='0.80', EG2='1.14', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='7.11e-08', ts2='5.78', photon_index='2.18' WHERE bin_id='138' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:20:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 953532: <4FGL_J2329.3-4955_daily_bin138> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin138> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 21:10:36 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:10:37 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:37 2021
Terminated at Wed Sep 29 21:20:27 2021
Results reported at Wed Sep 29 21:20:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin138 352.329 -49.9324 275097601 275356801 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 :                                   577.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            591 sec.

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

