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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin905
RA = 352.329, Dec = -49.9324
tmin = 473904001, tmax = 474163201
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='964535', job_status='RUN', time_executed='2021-09-29 21:27:30.423720', time_epoch_executed='1632976050.42' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964535

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964535/ft1_4FGL_J2329.3-4955_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964535/ft2_4FGL_J2329.3-4955_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964535/ft1_4FGL_J2329.3-4955_daily_bin905.fits outfile=/scratch/kocevski/964535/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin905.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=473904001.0 tmax=474163201.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 5.14
user 4.87
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/964535/ft2_4FGL_J2329.3-4955_daily_bin905.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/964535/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin905.fits evtable="EVENTS" outfile="/scratch/kocevski/964535/ft1_filtered_4FGL_J2329.3-4955_daily_bin905.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964535/ft1_filtered_4FGL_J2329.3-4955_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/964535/ft2_4FGL_J2329.3-4955_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/964535/ltcube_473904001_474163201_4FGL_J2329.3-4955_daily_bin905.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/964535/ft2_4FGL_J2329.3-4955_daily_bin905.fits
.....................!
real 14.75
user 14.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964535/ft1_filtered_4FGL_J2329.3-4955_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/964535/ft2_4FGL_J2329.3-4955_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/964535/ltcube_473904001_474163201_4FGL_J2329.3-4955_daily_bin905.fits outfile=/scratch/kocevski/964535/expmap_473904001_474163201_4FGL_J2329.3-4955_daily_bin905.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/964535/ltcube_473904001_474163201_4FGL_J2329.3-4955_daily_bin905.fits
.....................!
real 191.51
user 185.50
sys 5.57

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/964535/ft1_filtered_4FGL_J2329.3-4955_daily_bin905.fits scfile=/scratch/kocevski/964535/ft2_4FGL_J2329.3-4955_daily_bin905.fits outfile=/scratch/kocevski/964535/cmap_473904001_474163201_4FGL_J2329.3-4955_daily_bin905.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964535/ft1_filtered_4FGL_J2329.3-4955_daily_bin905.fits scfile=/scratch/kocevski/964535/ft2_4FGL_J2329.3-4955_daily_bin905.fits outfile=/scratch/kocevski/964535/cmap_HighResolution_473904001_474163201_4FGL_J2329.3-4955_daily_bin905.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/964535/ft1_filtered_4FGL_J2329.3-4955_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/964535/ft2_4FGL_J2329.3-4955_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964535/Model_4FGL_J2329.3-4955_daily_bin905.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/964535/ft1_filtered_4FGL_J2329.3-4955_daily_bin905.fits.....................!
real 39.66
user 38.29
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.428       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.481       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12559E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3002       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8602       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    54.668       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.0558       1.0000         .10000E-03   10000.    
    19 'norm      '    5.1768       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14854E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.323       1.0000         .10000E-03   10000.    
    22 'norm      '    6.3946       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.3181       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .73055E-01   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1355       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .64634       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=   4971.833     FROM MIGRAD    STATUS=CONVERGED    892 CALLS     4647 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.333        .83218E-06** at limit **
   2  Prefactor     11.427        14.299       -.12915E-07    .36457E-04
   3  Prefactor     33.488        31.448        .48125E-06    .13404E-03
   4  Prefactor     .10000E-03    11.171        .18209E-06** at limit **
   5  Prefactor     .10000E-03    8.3309        .86608E-07** at limit **
   6  Prefactor     .10003E-03    5.6782       -.79901E-06** at limit **
   7  norm          .10000E-03    34.919        .10702E-05** at limit **
   8  norm          .10000E-03    3.6535       -.12662E-07** at limit **
   9  Prefactor     .10000E-03    1.6798       -.11608E-07** at limit **
  10  Prefactor     8.3008        5.9858        .12717E-05   -.50213E-03
  11  Prefactor     .10000E-03    9.0452        .62476E-06** at limit **
  12  Prefactor     8.8612        11.001        .19348E-05   -.24859E-03
  13  Prefactor     .10000E-03    107.40       -.59065E-06** at limit **
  14  Prefactor     .10000E-03    1.9503        .74694E-08** at limit **
  15  Prefactor     .10000E-03    23.437        .18584E-07** at limit **
  16  Prefactor     54.655        21.479        .41325E-07    .10576E-03
  17  norm          .10000E-03    2.9988        .62391E-08** at limit **
  18  norm          4.0547        4.3396       -.34217E-07    .52350E-04
  19  norm          5.1776        5.0951       -.29104E-06   -.16083E-03
  20  Prefactor     .10002E-03    3.7014       -.13828E-06** at limit **
  21  Prefactor     18.301        43.702       -.52504E-05   -.24127E-03
  22  norm          6.3949        6.3906        .81933E-06   -.22994E-03
  23  Prefactor     .10000E-03    12.176       -.72756E-06** at limit **
  24  norm          .10000E-03    .40919        .28744E-07** at limit **
  25  norm          .10000E-03    5.7511       -.89577E-06** at limit **
  26  Prefactor     .10000E-03    5.8949        .59717E-06** at limit **
  27  Prefactor     3.3183        2.7996        .37884E-07    .80347E-05
  28  Prefactor     .10000E-03    11.301        .56937E-07** at limit **
  29  norm          .10000E-03    8.1028       -.45094E-06** at limit **
  30  Prefactor     .10000E-03    2.9313        .92283E-07** at limit **
  31  Prefactor     .80347E-01    1.8948        .21136E-07    .89581E-04
  32  Normalizat    1.1353        .17852        .21151E-07    .12221E-03
  33  Prefactor     .64654        .18082       -.10970E-05    .98122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.4266
  Prefactor  = 33.4883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.30078
  Prefactor  = 0.0001
  Prefactor  = 8.86123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.6547
  norm       = 0.0001
  norm       = 4.05475
  norm       = 5.17758
  Prefactor  = 0.000100016
  Prefactor  = 18.3008
  norm       = 6.39488
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.3183
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0803473
  Normalizat = 1.13532
  Prefactor  = 0.646538
 **********
 **   18 **HESSE 
 **********

 FCN=   4971.833     FROM HESSE     STATUS=OK           685 CALLS     5332 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.427        14.283        .11851E-03   -1.5032    
   3  Prefactor     33.488        31.468        .69253E-04   -1.4550    
   4  Prefactor     .10000E-03    11.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.4363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    25.885        .31425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    35.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.6805        .13162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.7044        .89234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.3008        6.1370        .69576E-03   -1.5132    
  11  Prefactor     .10000E-03    9.1134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.8612        11.189        .67328E-03   -1.5113    
  13  Prefactor     .10000E-03    107.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.9529        .96168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     54.655        21.282        .54250E-04   -1.4228    
  17  norm          .10000E-03    2.9990        .11926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.0547        4.3349        .14786E-03   -1.5305    
  19  norm          5.1776        5.1109        .14716E-03   -1.5253    
  20  Prefactor     .10002E-03    34.102        .25736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.301        46.356        .93567E-04   -1.4852    
  22  norm          6.3949        6.5216        .12541E-03   -1.5202    
  23  Prefactor     .10000E-03    12.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .41760        .87792E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.8728        .32678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.9551        .16777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.3183        2.7924        .10422E-03   -1.5344    
  28  Prefactor     .10000E-03    11.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    8.1408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.9889        .11781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .80347E-01    17.840        .18538E-02   -1.5651    
  32  Normalizat    1.1353        .20712        .20372E-03   -.88626    
  33  Prefactor     .64654        .20949        .27756E-03   -1.0566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69596e-09
Minuit parameter uncertainties:
  1  0.000179445
  2  14.2876
  3  31.4832
  4  6.57718e-06
  5  4.38168e-06
  6  0.00174782
  7  0.00031009
  8  1.23897e-06
  9  1.3557e-06
  10  6.13748
  11  0.000100141
  12  11.1915
  13  0.000305129
  14  7.45113e-07
  15  2.60708e-06
  16  21.2849
  17  1.63079e-06
  18  4.33519
  19  5.11137
  20  0.00148668
  21  46.4469
  22  6.52236
  23  0.000114643
  24  5.849e-07
  25  3.72686e-06
  26  7.02033e-05
  27  2.7925
  28  8.09664e-06
  29  6.89568e-05
  30  1.54207e-06
  31  2.39372
  32  0.207264
  33  0.209747
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  5.849e-07  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:  6.465e-01  2.097e-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.135e+00  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.329 -49.932
Photon Flux Upper Limit: 5.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/964535/likelihoodResults_473904001_474163201_4FGL_J2329.3-4955_daily_bin905.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4971.8327956
delta logL = -0.0001310436719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4971.83257902
delta logL = 8.5535951257e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6991       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1353       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64655       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4971.790     FROM MIGRAD    STATUS=CONVERGED    161 CALLS      364 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22892E-01    .61355E-01     .0000       -.11804    
   2  alpha         5.0000        4.8676         .0000    ** at limit **
   3  Normalizat    1.1140        .17135         .0000        .33561E-03
   4  Prefactor     .66043        .17991         .0000        .46358E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0228916
  alpha      = 5
  Normalizat = 1.11405
  Prefactor  = 0.660425
 **********
 **   18 **HESSE 
 **********

 FCN=   4971.790     FROM HESSE     STATUS=OK            31 CALLS      395 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22892E-01    .76486E-01    .13991E-02   -1.5738    
   2  alpha         5.0000        4.8918        .18083        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1140        .20469        .20529E-03   -.89302    
   4  Prefactor     .66043        .21145        .27484E-03   -1.0510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3304e-07
Minuit parameter uncertainties:
  1  0.0764859
  2  0.000577561
  3  0.204833
  4  0.211702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964535': 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) = 4971.7896593
delta logL = 0.043005256879

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  2.289e-02  7.649e-02  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  5.000e+00  5.776e-04  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:  6.604e-01  2.117e-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.114e+00  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.329 -49.932

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/964535/cmap_HighResolution_473904001_474163201_4FGL_J2329.3-4955_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-05', job_status='DONE', photon_flux_upper_limit='5.13e-08', time_completed='2021-09-29 21:41:37.200074', job_id='964535', GAL2='0.66', fit_tolerance='1e-08', EG2='1.11', EG='1.14', time_epoch_completed='1632976897.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='4.30e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='905' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:41:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 964535: <4FGL_J2329.3-4955_daily_bin905> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin905> 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) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:25:31 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:31 2021
Terminated at Wed Sep 29 21:41:37 2021
Results reported at Wed Sep 29 21:41:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin905 352.329 -49.9324 473904001 474163201 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 :                                   845.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            967 sec.

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

