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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1162
RA = 352.329, Dec = -49.9324
tmin = 540518401, tmax = 540777601
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='968458', job_status='RUN', time_executed='2021-09-29 21:31:51.214765', time_epoch_executed='1632976311.21' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968458

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968458/ft1_4FGL_J2329.3-4955_daily_bin1162.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968458/ft2_4FGL_J2329.3-4955_daily_bin1162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968458/ft1_4FGL_J2329.3-4955_daily_bin1162.fits outfile=/scratch/kocevski/968458/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1162.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=540518401.0 tmax=540777601.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.66
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/968458/ft2_4FGL_J2329.3-4955_daily_bin1162.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/968458/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1162.fits evtable="EVENTS" outfile="/scratch/kocevski/968458/ft1_filtered_4FGL_J2329.3-4955_daily_bin1162.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/968458/ft1_filtered_4FGL_J2329.3-4955_daily_bin1162.fits" evtable="EVENTS" scfile=/scratch/kocevski/968458/ft2_4FGL_J2329.3-4955_daily_bin1162.fits sctable="SC_DATA" outfile=/scratch/kocevski/968458/ltcube_540518401_540777601_4FGL_J2329.3-4955_daily_bin1162.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/968458/ft2_4FGL_J2329.3-4955_daily_bin1162.fits
.....................!
real 14.67
user 14.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968458/ft1_filtered_4FGL_J2329.3-4955_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/968458/ft2_4FGL_J2329.3-4955_daily_bin1162.fits sctable="SC_DATA" expcube=/scratch/kocevski/968458/ltcube_540518401_540777601_4FGL_J2329.3-4955_daily_bin1162.fits outfile=/scratch/kocevski/968458/expmap_540518401_540777601_4FGL_J2329.3-4955_daily_bin1162.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/968458/ltcube_540518401_540777601_4FGL_J2329.3-4955_daily_bin1162.fits
.....................!
real 191.19
user 185.93
sys 4.86

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/968458/ft1_filtered_4FGL_J2329.3-4955_daily_bin1162.fits scfile=/scratch/kocevski/968458/ft2_4FGL_J2329.3-4955_daily_bin1162.fits outfile=/scratch/kocevski/968458/cmap_540518401_540777601_4FGL_J2329.3-4955_daily_bin1162.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968458/ft1_filtered_4FGL_J2329.3-4955_daily_bin1162.fits scfile=/scratch/kocevski/968458/ft2_4FGL_J2329.3-4955_daily_bin1162.fits outfile=/scratch/kocevski/968458/cmap_HighResolution_540518401_540777601_4FGL_J2329.3-4955_daily_bin1162.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/968458/ft1_filtered_4FGL_J2329.3-4955_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/968458/ft2_4FGL_J2329.3-4955_daily_bin1162.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968458/Model_4FGL_J2329.3-4955_daily_bin1162.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/968458/ft1_filtered_4FGL_J2329.3-4955_daily_bin1162.fits.....................!
real 38.20
user 36.97
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.620       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.999       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.379       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .75325E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.724       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0277       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.885       1.0000         .10000E-03   10000.    
    17 'norm      '    8.3709       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.7259       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.071       1.0000         .10000E-03   10000.    
    24 'norm      '    .30119       1.0000         .10000E-03   10000.    
    25 'norm      '    .95688       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.5192       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    32.193       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.5347       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .84808       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.3228       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=   5000.584     FROM MIGRAD    STATUS=CONVERGED    900 CALLS     4672 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.575        42.710        .65071E-05    .81831E-05
   2  Prefactor     .10000E-03    119.27       -.58036E-06** at limit **
   3  Prefactor     .10000E-03    52.972        .51072E-05** at limit **
   4  Prefactor     16.001        12.513       -.66963E-06   -.34590E-04
   5  Prefactor     .10000E-03    4.9394        .11169E-06** at limit **
   6  Prefactor     .10000E-03    5.8509       -.25960E-06** at limit **
   7  norm          10.285        38.281        .10255E-04    .12866E-04
   8  norm          .10000E-03    4.5445       -.30573E-06** at limit **
   9  Prefactor     .10000E-03    1.8104        .26187E-07** at limit **
  10  Prefactor     .10000E-03    3.5207        .42560E-06** at limit **
  11  Prefactor     29.719        30.565        .94587E-06   -.28585E-04
  12  Prefactor     .10000E-03    5.0497        .74844E-07** at limit **
  13  Prefactor     .10000E-03    35.327       -.13740E-05** at limit **
  14  Prefactor     4.0277        5.5249        .82484E-07    .38840E-05
  15  Prefactor     .10000E-03    20.267        .94622E-07** at limit **
  16  Prefactor     16.882        20.539       -.26459E-07   -.58012E-04
  17  norm          8.3709        8.4176        .44409E-08   -.81444E-07
  18  norm          .10000E-03    2.7082        .45724E-09** at limit **
  19  norm          .10000E-03    4.4625        .17203E-06** at limit **
  20  Prefactor     .10000E-03    3.4333       -.33710E-07** at limit **
  21  Prefactor     .10000E-03    83.910       -.55333E-05** at limit **
  22  norm          5.7286        4.6938        .32430E-06    .17047E-03
  23  Prefactor     14.072        13.113        .26737E-07   -.39048E-04
  24  norm          .30117        1.2058        .19057E-06   -.15869E-03
  25  norm          .95772        3.1170        .17128E-06    .25691E-04
  26  Prefactor     9.5149        22.607       -.34545E-06   -.11188E-04
  27  Prefactor     .10000E-03    2.2307        .17521E-06** at limit **
  28  Prefactor     .10000E-03    6.2088        .32571E-06** at limit **
  29  norm          32.184        36.072       -.30553E-05   -.70581E-05
  30  Prefactor     3.5377        8.6737        .40911E-05   -.27918E-04
  31  Prefactor     .10000E-03    1.4339        .16883E-07** at limit **
  32  Normalizat    .84783        .22448       -.32324E-05   -.17106E-04
  33  Prefactor     1.3231        .22813        .16012E-05   -.99453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2852
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 29.7189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.02767
  Prefactor  = 0.0001
  Prefactor  = 16.8819
  norm       = 8.37092
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.7286
  Prefactor  = 14.0718
  norm       = 0.301169
  norm       = 0.957723
  Prefactor  = 9.51494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.1844
  Prefactor  = 3.53769
  Prefactor  = 0.0001
  Normalizat = 0.84783
  Prefactor  = 1.32306
 **********
 **   18 **HESSE 
 **********

 FCN=   5000.584     FROM HESSE     STATUS=OK           695 CALLS     5367 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.575        42.829        .12294E-03   -1.5057    
   2  Prefactor     .10000E-03    122.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    53.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.001        12.517        .10013E-03   -1.4908    
   5  Prefactor     .10000E-03    4.9587        .15347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8832        .16701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.285        38.395        .12437E-03   -1.5066    
   8  norm          .10000E-03    4.5634        .14722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8229        .92907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.869        .24859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.719        29.990        .73488E-04   -1.4617    
  12  Prefactor     .10000E-03    5.0597        .15503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0277        5.5186        .18918E-03   -1.5307    
  15  Prefactor     .10000E-03    20.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.882        19.776        .97471E-04   -1.4886    
  17  norm          8.3709        8.4205        .13856E-03   -1.5129    
  18  norm          .10000E-03    2.7089        .11363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.4982        .14548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.4424        .12772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    84.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.7286        4.6565        .13171E-03   -1.5229    
  23  Prefactor     14.072        12.954        .10678E-03   -1.4958    
  24  norm          .30117        1.6379        .12588E-02   -1.5598    
  25  norm          .95772        3.0298        .21543E-03   -1.5512    
  26  Prefactor     9.5149        22.666        .12989E-03   -1.5091    
  27  Prefactor     .10000E-03    2.3187        .20608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.2109        .17209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          32.184        36.157        .70621E-04   -1.4573    
  30  Prefactor     3.5377        8.7099        .10750E-02   -1.5332    
  31  Prefactor     .10000E-03    1.4426        .82679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .84783        .27020        .26788E-03   -.98318    
  33  Prefactor     1.3231        .27879        .24001E-03   -.82624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57788e-08
Minuit parameter uncertainties:
  1  42.6168
  2  0.00021692
  3  7.81005e-05
  4  12.5186
  5  1.16172e-06
  6  3.33124e-06
  7  38.4874
  8  1.66496e-06
  9  1.17983e-06
  10  0.000159534
  11  30.0054
  12  4.48366e-06
  13  2.25474e-05
  14  5.51934
  15  2.17567e-07
  16  19.7838
  17  8.42171
  18  8.81009e-07
  19  7.46238e-06
  20  1.31325e-06
  21  5.54061e-05
  22  4.65679
  23  12.9561
  24  1.40449
  25  3.03028
  26  22.6867
  27  1.92459e-06
  28  1.68464e-06
  29  36.1811
  30  8.71304
  31  1.1466e-06
  32  0.270632
  33  0.27911
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  3.012e-01  1.404e+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:  1.323e+00  2.791e-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:  8.478e-01  2.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/968458/likelihoodResults_540518401_540777601_4FGL_J2329.3-4955_daily_bin1162.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) = 5000.42173959
delta logL = 0.162567410365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5000.40583482
delta logL = 0.178472185737

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45775       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0833       1.0000          .0000       5.0000    
     3 'Normalizat'    .82111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3389       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=   5000.406     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45645        20.321        .11097E-01    .13627E-02
   2  alpha         3.0869        2.8343        .42665        .30472E-04
   3  Normalizat    .82119        .43902E-01    .43885E-01    .14826E-04
   4  Prefactor     1.3388        .48714E-01    .53987E-01    .28519E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.456449
  alpha      = 3.0869
  Normalizat = 0.821185
  Prefactor  = 1.3388
 **********
 **   18 **HESSE 
 **********

 FCN=   5000.406     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45645        1.1679        .75015E-04   -1.5573    
   2  alpha         3.0869        1.6403        .27846E-01    .23697    
   3  Normalizat    .82119        .25394        .27163E-03   -.99288    
   4  Prefactor     1.3388        .27470        .23870E-03   -.82160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45171e-11
Minuit parameter uncertainties:
  1  1.16799
  2  1.80064
  3  0.254312
  4  0.274997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968458': 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) = 5000.4058318
delta logL = 0.178475198463

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  4.564e-01  1.168e+00  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  3.087e+00  1.801e+00  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:  1.339e+00  2.750e-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:  8.212e-01  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/968458/cmap_HighResolution_540518401_540777601_4FGL_J2329.3-4955_daily_bin1162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-05', job_status='DONE', photon_flux_upper_limit='9.18e-08', time_completed='2021-09-29 21:45:42.554164', job_id='968458', GAL2='1.34', fit_tolerance='1e-08', EG2='0.82', EG='0.85', time_epoch_completed='1632977142.55', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='1.78e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1162' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:45:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 968458: <4FGL_J2329.3-4955_daily_bin1162> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin1162> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 21:30:30 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:30:30 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:30:30 2021
Terminated at Wed Sep 29 21:45:42 2021
Results reported at Wed Sep 29 21:45:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1162 352.329 -49.9324 540518401 540777601 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 :                                   826.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            912 sec.

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

