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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1097
RA = 352.329, Dec = -49.9324
tmin = 523670401, tmax = 523929601
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='968303', job_status='RUN', time_executed='2021-09-29 21:31:14.817829', time_epoch_executed='1632976274.82' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1097'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/968303

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/968303/ft1_4FGL_J2329.3-4955_daily_bin1097.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/968303/ft2_4FGL_J2329.3-4955_daily_bin1097.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/968303/ft1_4FGL_J2329.3-4955_daily_bin1097.fits outfile=/scratch/kocevski/968303/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1097.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=523670401.0 tmax=523929601.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.53
user 3.33
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/968303/ft1_filtered_4FGL_J2329.3-4955_daily_bin1097.fits" evtable="EVENTS" scfile=/scratch/kocevski/968303/ft2_4FGL_J2329.3-4955_daily_bin1097.fits sctable="SC_DATA" outfile=/scratch/kocevski/968303/ltcube_523670401_523929601_4FGL_J2329.3-4955_daily_bin1097.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/968303/ft2_4FGL_J2329.3-4955_daily_bin1097.fits
.....................!
real 11.92
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/968303/ft1_filtered_4FGL_J2329.3-4955_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/968303/ft2_4FGL_J2329.3-4955_daily_bin1097.fits sctable="SC_DATA" expcube=/scratch/kocevski/968303/ltcube_523670401_523929601_4FGL_J2329.3-4955_daily_bin1097.fits outfile=/scratch/kocevski/968303/expmap_523670401_523929601_4FGL_J2329.3-4955_daily_bin1097.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/968303/ltcube_523670401_523929601_4FGL_J2329.3-4955_daily_bin1097.fits
.....................!
real 190.14
user 185.12
sys 4.71

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/968303/ft1_filtered_4FGL_J2329.3-4955_daily_bin1097.fits scfile=/scratch/kocevski/968303/ft2_4FGL_J2329.3-4955_daily_bin1097.fits outfile=/scratch/kocevski/968303/cmap_523670401_523929601_4FGL_J2329.3-4955_daily_bin1097.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/968303/ft1_filtered_4FGL_J2329.3-4955_daily_bin1097.fits scfile=/scratch/kocevski/968303/ft2_4FGL_J2329.3-4955_daily_bin1097.fits outfile=/scratch/kocevski/968303/cmap_HighResolution_523670401_523929601_4FGL_J2329.3-4955_daily_bin1097.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/968303/ft1_filtered_4FGL_J2329.3-4955_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/968303/ft2_4FGL_J2329.3-4955_daily_bin1097.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/968303/Model_4FGL_J2329.3-4955_daily_bin1097.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/968303/ft1_filtered_4FGL_J2329.3-4955_daily_bin1097.fits.....................!
real 39.21
user 37.95
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    144.65       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.113       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3573       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.292       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13608E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21032E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .25219E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.185       1.0000         .10000E-03   10000.    
    18 'norm      '    3.8463       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.1881       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.111       1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.3648       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.6177       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.2178       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .51178E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2297       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .81042       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=   5109.843     FROM MIGRAD    STATUS=CONVERGED    897 CALLS     4580 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     144.68        75.254        .15074E-04    .18561E-05
   2  Prefactor     .10000E-03    16.126       -.59022E-05** at limit **
   3  Prefactor     .10000E-03    55.053        .92496E-05** at limit **
   4  Prefactor     .10000E-03    6.1461        .27963E-06** at limit **
   5  Prefactor     .10000E-03    3.6562        .11587E-06** at limit **
   6  Prefactor     .10000E-03    6.3924       -.63949E-06** at limit **
   7  norm          .10000E-03    16.960        .82880E-05** at limit **
   8  norm          .10000E-03    9.3949        .37834E-06** at limit **
   9  Prefactor     17.111        6.8873        .12133E-06    .53732E-05
  10  Prefactor     4.3588        5.6845        .78275E-06   -.18071E-03
  11  Prefactor     24.238        33.811       -.44518E-05   -.42143E-04
  12  Prefactor     .10000E-03    6.1976        .38279E-06** at limit **
  13  Prefactor     .10000E-03    209.86        .79283E-06** at limit **
  14  Prefactor     .10002E-03    8.5923       -.53864E-06** at limit **
  15  Prefactor     .10000E-03    48.705       -.78299E-05** at limit **
  16  Prefactor     .10012E-03    9.3893        .19264E-05** at limit **
  17  norm          12.185        17.984       -.93177E-07   -.39266E-04
  18  norm          3.8461        3.8597        .73642E-07    .14855E-03
  19  norm          .10000E-03    1.8747        .85198E-07** at limit **
  20  Prefactor     .10000E-03    8.2577        .21790E-05** at limit **
  21  Prefactor     .10000E-03    16.301       -.34082E-05** at limit **
  22  norm          3.1879        3.4253       -.21337E-06   -.60051E-04
  23  Prefactor     16.101        15.143       -.83174E-06   -.62399E-03
  24  norm          .10000E-03    .49747       -.40132E-07** at limit **
  25  norm          6.3651        4.4965        .48184E-06   -.45033E-04
  26  Prefactor     9.6159        16.568        .28301E-07   -.48805E-04
  27  Prefactor     .10000E-03    2.6201        .11806E-06** at limit **
  28  Prefactor     .10000E-03    8.8765       -.30573E-05** at limit **
  29  norm          .10000E-03    12.934        .14265E-05** at limit **
  30  Prefactor     5.2178        5.3695       -.11016E-05   -.36877E-03
  31  Prefactor     .10001E-03    2.4302        .63871E-07** at limit **
  32  Normalizat    1.2299        .20368        .24659E-06   -.18832E-03
  33  Prefactor     .81017        .20450       -.22860E-06   -.10129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 144.681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.1111
  Prefactor  = 4.35883
  Prefactor  = 24.2376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.000100119
  norm       = 12.1845
  norm       = 3.84612
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.18795
  Prefactor  = 16.1012
  norm       = 0.0001
  norm       = 6.36513
  Prefactor  = 9.61589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.21775
  Prefactor  = 0.000100006
  Normalizat = 1.22995
  Prefactor  = 0.810167
 **********
 **   18 **HESSE 
 **********

 FCN=   5109.843     FROM HESSE     STATUS=OK           691 CALLS     5271 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     144.68        74.995        .16751E-03   -1.3296    
   2  Prefactor     .10000E-03    16.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    55.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.1899        .17305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6941        .13347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4695        .17646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    16.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.7448        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.111        6.8779        .96817E-04   -1.4880    
  10  Prefactor     4.3588        5.6561        .18302E-03   -1.5290    
  11  Prefactor     24.238        33.873        .81274E-04   -1.4723    
  12  Prefactor     .10000E-03    6.2146        .17369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    210.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    58.849        .40135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    48.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10012E-03    50.026        .41615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.185        17.990        .11476E-03   -1.5010    
  18  norm          3.8461        3.8677        .13737E-03   -1.5316    
  19  norm          .10000E-03    1.8753        .95574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.4470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.1879        3.4201        .13202E-03   -1.5351    
  23  Prefactor     16.101        15.143        .49892E-03   -1.4905    
  24  norm          .10000E-03    .51185        .98091E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.3651        4.4908        .12235E-03   -1.5203    
  26  Prefactor     9.6159        16.573        .12922E-03   -1.5088    
  27  Prefactor     .10000E-03    2.6901        .22553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.8780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    12.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.2178        5.3888        .15930E-03   -1.5251    
  31  Prefactor     .10001E-03    13.905        .21188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2299        .24887        .22233E-03   -.85682    
  33  Prefactor     .81017        .25175        .28406E-03   -.99355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72454e-09
Minuit parameter uncertainties:
  1  75.044
  2  1.72327e-06
  3  6.84509e-06
  4  2.12514e-06
  5  9.26693e-07
  6  3.6358e-07
  7  1.48714e-06
  8  1.44676e-05
  9  6.87826
  10  5.6568
  11  33.8997
  12  3.19032e-05
  13  0.000337292
  14  0.0023511
  15  3.19598e-05
  16  0.00488871
  17  17.9979
  18  3.86792
  19  1.37008e-07
  20  1.06188e-05
  21  8.54791e-06
  22  3.42031
  23  15.1471
  24  3.48016e-07
  25  4.49107
  26  16.5813
  27  1.36188e-05
  28  5.82656e-06
  29  3.04667e-05
  30  5.38931
  31  0.000570783
  32  0.249114
  33  0.252105
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  3.480e-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:  8.102e-01  2.521e-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.230e+00  2.491e-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.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/968303/likelihoodResults_523670401_523929601_4FGL_J2329.3-4955_daily_bin1097.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) = 5109.84360647
delta logL = -0.000907874095901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5109.84263161
delta logL = 6.69860992275e-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     '    2.6504       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81017       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=   5108.560     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      368 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97777E-01    .73405E-01    .35118E-02   -.12349E-02
   2  alpha         5.0000        .73653        .41246    ** at limit **
   3  Normalizat    1.1174        .20052        .52300E-01    .61809E-04
   4  Prefactor     .88974        .20889        .43849E-01    .94479E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0977773
  alpha      = 5
  Normalizat = 1.11736
  Prefactor  = 0.889736
 **********
 **   18 **HESSE 
 **********

 FCN=   5108.560     FROM HESSE     STATUS=OK            33 CALLS      401 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97777E-01    .73066E-01    .15929E-03   -1.5770    
   2  alpha         5.0000        1.1021        .54012E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1174        .24379        .23126E-03   -.89196    
   4  Prefactor     .88974        .25498        .27201E-03   -.96501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89723e-11
Minuit parameter uncertainties:
  1  0.0730662
  2  3.8652e-06
  3  0.244035
  4  0.255325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/968303': 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) = 5108.56037546
delta logL = 1.28232313624

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  9.778e-02  7.307e-02  1.000e-04  1.000e+04 ( 1.000e-11)
477        alpha:  5.000e+00  3.865e-06  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.897e-01  2.553e-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.117e+00  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.73
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.70e-08 +/- 5.72e-08
Energy Flux (Free Index): 1.04e-05 +/- 7.78e-06

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/968303/cmap_HighResolution_523670401_523929601_4FGL_J2329.3-4955_daily_bin1097.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-05', comment='SUCCESS', energy_flux2='1.04e-05', dlogl='1.28e+00', photon_flux2='7.70e-08', job_status='DONE', time_completed='2021-09-29 21:45:07.977606', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='5.71e-08', energy_flux_error2='7.78e-06', EG='1.23', time_epoch_completed='1632977107.98', return_code='0', job_id='968303', GAL2='0.89', EG2='1.12', return_code2='0', photon_flux_error2='5.72e-08', ts2='2.73', photon_index='2.18' WHERE bin_id='1097' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:45:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 968303: <4FGL_J2329.3-4955_daily_bin1097> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1097 352.329 -49.9324 523670401 523929601 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 :                                   831.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            886 sec.

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

