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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1404
RA = 352.329, Dec = -49.9324
tmin = 603244801, tmax = 603504001
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='972550', job_status='RUN', time_executed='2021-09-29 21:35:49.521838', time_epoch_executed='1632976549.52' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/972550

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/972550/ft1_4FGL_J2329.3-4955_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/972550/ft2_4FGL_J2329.3-4955_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/972550/ft1_4FGL_J2329.3-4955_daily_bin1404.fits outfile=/scratch/kocevski/972550/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1404.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=603244801.0 tmax=603504001.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 2.90
user 2.68
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/972550/ft1_filtered_4FGL_J2329.3-4955_daily_bin1404.fits" evtable="EVENTS" scfile=/scratch/kocevski/972550/ft2_4FGL_J2329.3-4955_daily_bin1404.fits sctable="SC_DATA" outfile=/scratch/kocevski/972550/ltcube_603244801_603504001_4FGL_J2329.3-4955_daily_bin1404.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/972550/ft2_4FGL_J2329.3-4955_daily_bin1404.fits
.....................!
real 12.44
user 12.06
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/972550/ft1_filtered_4FGL_J2329.3-4955_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/972550/ft2_4FGL_J2329.3-4955_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/972550/ltcube_603244801_603504001_4FGL_J2329.3-4955_daily_bin1404.fits outfile=/scratch/kocevski/972550/expmap_603244801_603504001_4FGL_J2329.3-4955_daily_bin1404.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/972550/ltcube_603244801_603504001_4FGL_J2329.3-4955_daily_bin1404.fits
.....................!
real 191.52
user 186.57
sys 4.64

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/972550/ft1_filtered_4FGL_J2329.3-4955_daily_bin1404.fits scfile=/scratch/kocevski/972550/ft2_4FGL_J2329.3-4955_daily_bin1404.fits outfile=/scratch/kocevski/972550/cmap_603244801_603504001_4FGL_J2329.3-4955_daily_bin1404.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/972550/ft1_filtered_4FGL_J2329.3-4955_daily_bin1404.fits scfile=/scratch/kocevski/972550/ft2_4FGL_J2329.3-4955_daily_bin1404.fits outfile=/scratch/kocevski/972550/cmap_HighResolution_603244801_603504001_4FGL_J2329.3-4955_daily_bin1404.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/972550/ft1_filtered_4FGL_J2329.3-4955_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/972550/ft2_4FGL_J2329.3-4955_daily_bin1404.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/972550/Model_4FGL_J2329.3-4955_daily_bin1404.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/972550/ft1_filtered_4FGL_J2329.3-4955_daily_bin1404.fits......................!
real 29.79
user 28.58
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39463       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29229E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1005       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.252       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23511       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9129       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2718       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0196       1.0000         .10000E-03   10000.    
    22 'norm      '    .16148E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.201       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.2807       1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.301       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3674       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .74504       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3240.718     FROM MIGRAD    STATUS=CONVERGED   1627 CALLS     5346 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    80.129        .18142E-02** at limit **
   2  Prefactor     .12347        33.786        .86760E-01    .23431E-03
   3  Prefactor     .10000E-03    51.143        .21401E-02** at limit **
   4  Prefactor     1.0988        22.196        .45299E-03   -.14337E-03
   5  Prefactor     .10000E-03    7.1879        .14791E-02** at limit **
   6  Prefactor     .10000E-03    2.4120        .86313E-03** at limit **
   7  norm          .10000E-03    23.041        .18142E-02** at limit **
   8  norm          .10000E-03    8.1712        .15889E-02** at limit **
   9  Prefactor     15.253        16.914        .10256E-03   -.22946E-04
  10  Prefactor     .10000E-03    18.918        .18142E-02** at limit **
  11  Prefactor     .10000E-03    19.005        .18142E-02** at limit **
  12  Prefactor     .30271        148.08        .41219E-02   -.29592E-04
  13  Prefactor     .10000E-03    58.898        .18142E-02** at limit **
  14  Prefactor     8.9055        18.552        .13426E-03   -.13295E-04
  15  Prefactor     .10000E-03    25.648        .18142E-02** at limit **
  16  Prefactor     .10000E-03    35.906        .18142E-02** at limit **
  17  norm          .10000E-03    19.802        .18142E-02** at limit **
  18  norm          .10000E-03    3.5175        .10427E-02** at limit **
  19  norm          .10000E-03    5.8792        .13389E-02** at limit **
  20  Prefactor     9.2649        9.0701        .13162E-03    .14540E-03
  21  Prefactor     4.1026        60.841        .20114E-03   -.28939E-04
  22  norm          .10001E-03    8.1460        .21731E-02** at limit **
  23  Prefactor     21.204        20.844        .86989E-04    .64039E-05
  24  norm          .10000E-03    1.1555        .11717E-03** at limit **
  25  norm          .10000E-03    1.5765        .69791E-03** at limit **
  26  Prefactor     .10000E-03    27.971        .18142E-02** at limit **
  27  Prefactor     .10000E-03    5.5633        .25622E-02** at limit **
  28  Prefactor     .10000E-03    42.643        .18142E-02** at limit **
  29  norm          3.2658        52.349        .11178E-02   -.21447E-03
  30  Prefactor     10.297        8.7198        .12484E-03   -.11146E-03
  31  Prefactor     .10000E-03    3.3930        .10199E-02** at limit **
  32  Normalizat    1.3673        .31072        .21529E-03    .71051E-04
  33  Prefactor     .74541        .31907        .29830E-03    .33748E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.123468
  Prefactor  = 0.0001
  Prefactor  = 1.09885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.2532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.302709
  Prefactor  = 0.000100001
  Prefactor  = 8.90549
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.26486
  Prefactor  = 4.10264
  norm       = 0.000100006
  Prefactor  = 21.2041
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.26576
  Prefactor  = 10.2973
  Prefactor  = 0.0001
  Normalizat = 1.36734
  Prefactor  = 0.745407
 **********
 **   18 **HESSE 
 **********

 FCN=   3240.718     FROM HESSE     STATUS=OK           673 CALLS     6019 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    80.130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12347        31.179        .91802E-01   -1.5638    
   3  Prefactor     .10000E-03    51.159        .42801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0988        22.170        .18120E-04   -1.5498    
   5  Prefactor     .10000E-03    7.1908        .29582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4120        .17263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    23.043        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.1714        .31778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.253        16.914        .41023E-05   -1.4927    
  10  Prefactor     .10000E-03    18.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .30271        151.83        .16488E-03   -1.5598    
  13  Prefactor     .10000E-03    58.898        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.9055        18.552        .53702E-05   -1.5111    
  15  Prefactor     .10000E-03    25.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    35.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    19.807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.5176        .20853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.8793        .26779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.2649        9.0699        .26324E-04   -1.5099    
  21  Prefactor     4.1026        60.559        .80457E-05   -1.5303    
  22  norm          .10001E-03    8.1481        .43462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.204        20.844        .34796E-05   -1.4787    
  24  norm          .10000E-03    1.1555        .23434E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.5765        .13958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    27.985        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.5824        .51243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    42.651        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.2658        52.060        .44711E-04   -1.5347    
  30  Prefactor     10.297        8.6952        .49937E-05   -1.5066    
  31  Prefactor     .10000E-03    3.3933        .20399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3673        .31091        .43058E-04   -.81578    
  33  Prefactor     .74541        .31931        .11932E-04   -1.0177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79221e-09
Minuit parameter uncertainties:
  1  0.00119339
  2  3.92455
  3  3.49566e-05
  4  9.87521
  5  9.65377e-06
  6  7.73151e-07
  7  0.000114633
  8  1.06305e-05
  9  16.9191
  10  4.00332e-05
  11  2.23552e-05
  12  13.5913
  13  0.000346149
  14  18.5639
  15  0.000109373
  16  0.000314713
  17  0.000148779
  18  1.20354e-06
  19  5.94546e-05
  20  9.07127
  21  31.5628
  22  0.000446821
  23  20.851
  24  4.86859e-06
  25  2.11271e-06
  26  5.26628e-05
  27  5.96028e-06
  28  0.000410251
  29  26.1046
  30  8.69622
  31  4.64713e-06
  32  0.311339
  33  0.320097
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  4.869e-06  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.454e-01  3.201e-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.367e+00  3.113e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/972550/likelihoodResults_603244801_603504001_4FGL_J2329.3-4955_daily_bin1404.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3240.72185196
delta logL = -0.00406153437825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3240.11198824
delta logL = 0.605802178648

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11424       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82375       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3240.112     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      479 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11430        .14590        .18369E-04   -.12657E-03
   2  alpha         5.0000        3.8697        .50000    ** at limit **
   3  Normalizat    1.2526        .31691        .22288E-03   -.12652E-03
   4  Prefactor     .82384        .32574        .28483E-03    .10414E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.1143
  alpha      = 5
  Normalizat = 1.25255
  Prefactor  = 0.823836
 **********
 **   18 **HESSE 
 **********

 FCN=   3240.112     FROM HESSE     STATUS=OK            29 CALLS      508 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11430        .14529        .73475E-06   -1.5640    
   2  alpha         5.0000        3.8611        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2526        .31734        .44575E-04   -.84994    
   4  Prefactor     .82384        .32616        .11393E-04   -.98856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76206e-10
Minuit parameter uncertainties:
  1  0.145287
  2  4.02563e-05
  3  0.317837
  4  0.326931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/972550': 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) = 3240.11198799
delta logL = 0.605802431965

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  8.238e-01  3.269e-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.253e+00  3.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.00e-08 +/- 1.14e-07
Energy Flux (Free Index): 1.22e-05 +/- 1.55e-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/972550/cmap_HighResolution_603244801_603504001_4FGL_J2329.3-4955_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-05', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='6.06e-01', photon_flux2='9.00e-08', job_status='DONE', time_completed='2021-09-29 21:47:13.040829', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.55e-05', EG='1.37', time_epoch_completed='1632977233.04', return_code='0', job_id='972550', GAL2='0.82', EG2='1.25', return_code2='0', photon_flux_error2='1.14e-07', ts2='1.32', photon_index='2.18' WHERE bin_id='1404' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:47:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 972550: <4FGL_J2329.3-4955_daily_bin1404> in cluster <slac> Done

Job <4FGL_J2329.3-4955_daily_bin1404> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 21:35:14 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:35:15 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:35:15 2021
Terminated at Wed Sep 29 21:47:13 2021
Results reported at Wed Sep 29 21:47:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1404 352.329 -49.9324 603244801 603504001 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 :                                   681.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            719 sec.

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

