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


Performing analysis on: 4FGL_J2329.3-4955_daily_bin1485
RA = 352.329, Dec = -49.9324
tmin = 624240001, tmax = 624499201
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='972755', job_status='RUN', time_executed='2021-09-29 21:35:49.922463', time_epoch_executed='1632976549.92' WHERE source_name='4FGL J2329.3-4955' and cadence='daily' and bin_id='1485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/972755

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/972755/ft1_4FGL_J2329.3-4955_daily_bin1485.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/972755/ft2_4FGL_J2329.3-4955_daily_bin1485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/972755/ft1_4FGL_J2329.3-4955_daily_bin1485.fits outfile=/scratch/kocevski/972755/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1485.fits ra=352.329 dec=-49.9324 rad=12.0 tmin=624240001.0 tmax=624499201.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.47
user 3.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/972755/ft2_4FGL_J2329.3-4955_daily_bin1485.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/972755/ft1_filteredMKT_4FGL_J2329.3-4955_daily_bin1485.fits evtable="EVENTS" outfile="/scratch/kocevski/972755/ft1_filtered_4FGL_J2329.3-4955_daily_bin1485.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/972755/ft1_filtered_4FGL_J2329.3-4955_daily_bin1485.fits" evtable="EVENTS" scfile=/scratch/kocevski/972755/ft2_4FGL_J2329.3-4955_daily_bin1485.fits sctable="SC_DATA" outfile=/scratch/kocevski/972755/ltcube_624240001_624499201_4FGL_J2329.3-4955_daily_bin1485.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/972755/ft2_4FGL_J2329.3-4955_daily_bin1485.fits
.....................!
real 11.74
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/972755/ft1_filtered_4FGL_J2329.3-4955_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/972755/ft2_4FGL_J2329.3-4955_daily_bin1485.fits sctable="SC_DATA" expcube=/scratch/kocevski/972755/ltcube_624240001_624499201_4FGL_J2329.3-4955_daily_bin1485.fits outfile=/scratch/kocevski/972755/expmap_624240001_624499201_4FGL_J2329.3-4955_daily_bin1485.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/972755/ltcube_624240001_624499201_4FGL_J2329.3-4955_daily_bin1485.fits
.....................!
real 190.68
user 185.90
sys 4.47

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/972755/ft1_filtered_4FGL_J2329.3-4955_daily_bin1485.fits scfile=/scratch/kocevski/972755/ft2_4FGL_J2329.3-4955_daily_bin1485.fits outfile=/scratch/kocevski/972755/cmap_624240001_624499201_4FGL_J2329.3-4955_daily_bin1485.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/972755/ft1_filtered_4FGL_J2329.3-4955_daily_bin1485.fits scfile=/scratch/kocevski/972755/ft2_4FGL_J2329.3-4955_daily_bin1485.fits outfile=/scratch/kocevski/972755/cmap_HighResolution_624240001_624499201_4FGL_J2329.3-4955_daily_bin1485.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/972755/ft1_filtered_4FGL_J2329.3-4955_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/972755/ft2_4FGL_J2329.3-4955_daily_bin1485.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/972755/Model_4FGL_J2329.3-4955_daily_bin1485.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/972755/ft1_filtered_4FGL_J2329.3-4955_daily_bin1485.fits.....................!
real 40.26
user 39.04
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.489       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6184       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5369       1.0000         .10000E-03   10000.    
     7 'norm      '    .10897E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .58688E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2645       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.255       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.677       1.0000         .10000E-03   10000.    
    22 'norm      '    .11032E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.7764       1.0000         .10000E-03   10000.    
    24 'norm      '    .11221E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.0341       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .27470E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3942       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .72922       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=   5465.472     FROM MIGRAD    STATUS=CONVERGED    924 CALLS     4624 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.488        57.483       -.37576E-07   -.19448E-05
   2  Prefactor     6.6104        22.862       -.29168E-06    .31326E-04
   3  Prefactor     .10000E-03    48.303        .36296E-06** at limit **
   4  Prefactor     .10000E-03    5.0249        .10619E-06** at limit **
   5  Prefactor     .10000E-03    8.2692        .24253E-06** at limit **
   6  Prefactor     2.5332        6.9251        .10802E-05    .13969E-03
   7  norm          .10000E-03    16.251        .13141E-06** at limit **
   8  norm          .10000E-03    3.8805       -.49442E-07** at limit **
   9  Prefactor     .10000E-03    1.2775        .16382E-07** at limit **
  10  Prefactor     .10004E-03    4.3626        .13689E-05** at limit **
  11  Prefactor     .10000E-03    20.530        .14566E-06** at limit **
  12  Prefactor     7.2642        10.544        .14160E-06   -.24742E-04
  13  Prefactor     .10000E-03    30.754        .91069E-07** at limit **
  14  Prefactor     .10000E-03    3.8894        .92657E-07** at limit **
  15  Prefactor     .10000E-03    18.409       -.12233E-06** at limit **
  16  Prefactor     .10000E-03    10.338       -.41871E-07** at limit **
  17  norm          .10000E-03    3.8097       -.55135E-07** at limit **
  18  norm          .10000E-03    2.1802        .23576E-07** at limit **
  19  norm          .10000E-03    2.2648       -.38687E-06** at limit **
  20  Prefactor     12.261        8.5916        .15194E-06    .35072E-03
  21  Prefactor     29.713        33.862        .65857E-06    .73065E-04
  22  norm          .10000E-03    5.0487       -.34144E-05** at limit **
  23  Prefactor     8.8006        20.095        .22331E-06    .54920E-04
  24  norm          .10000E-03    .85314       -.51055E-06** at limit **
  25  norm          3.0349        2.9781       -.69167E-07    .10677E-03
  26  Prefactor     .10386E-03    18.546       -.21132E-05** at limit **
  27  Prefactor     .10000E-03    1.9359        .30203E-07** at limit **
  28  Prefactor     .10000E-03    8.6638       -.11890E-06** at limit **
  29  norm          .10000E-03    7.3764       -.19944E-07** at limit **
  30  Prefactor     .10000E-03    3.7144        .11746E-05** at limit **
  31  Prefactor     .10000E-03    1.9882        .14982E-06** at limit **
  32  Normalizat    1.3943        .19939        .18354E-05    .26028E-04
  33  Prefactor     .72939        .20052       -.28491E-05    .31813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.4876
  Prefactor  = 6.61038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.53323
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  Prefactor  = 7.26418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.2613
  Prefactor  = 29.7126
  norm       = 0.000100002
  Prefactor  = 8.80058
  norm       = 0.0001
  norm       = 3.03491
  Prefactor  = 0.000103862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.39434
  Prefactor  = 0.729387
 **********
 **   18 **HESSE 
 **********

 FCN=   5465.472     FROM HESSE     STATUS=OK           689 CALLS     5313 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.488        57.478        .51589E-04   -1.4151    
   2  Prefactor     6.6104        22.854        .15598E-03   -1.5194    
   3  Prefactor     .10000E-03    48.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.0762        .16183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.3976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5332        6.9406        .25642E-03   -1.5390    
   7  norm          .10000E-03    16.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.8935        .14221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2794        .81599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    18.300        .26648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2642        10.526        .14882E-03   -1.5169    
  13  Prefactor     .10000E-03    30.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9024        .14237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.8105        .14093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1814        .10661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2713        .10871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.261        8.5512        .11443E-03   -1.5007    
  21  Prefactor     29.713        34.046        .73546E-04   -1.4617    
  22  norm          .10000E-03    5.4370        .33081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.8006        19.960        .13530E-03   -1.5115    
  24  norm          .10000E-03    1.3678        .12571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.0349        2.9784        .12140E-03   -1.5360    
  26  Prefactor     .10386E-03    21.182        .77552E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.9930        .20070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.6742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    7.3782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.9046        .25689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    2.0176        .10162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3943        .23306        .20893E-03   -.80793    
  33  Prefactor     .72939        .23272        .29307E-03   -1.0239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1943e-09
Minuit parameter uncertainties:
  1  57.5306
  2  22.8839
  3  7.25184e-05
  4  6.16218e-06
  5  1.50364e-05
  6  6.94277
  7  2.96397e-05
  8  1.2151e-05
  9  2.62779e-07
  10  0.00168179
  11  9.33662e-06
  12  10.529
  13  4.50575e-05
  14  1.396e-05
  15  6.67255e-05
  16  2.71538e-06
  17  2.08912e-06
  18  1.37988e-06
  19  1.38252e-05
  20  8.5521
  21  34.0682
  22  0.00019351
  23  19.9752
  24  8.40842e-06
  25  2.9785
  26  0.018096
  27  1.00043e-06
  28  2.06482e-05
  29  1.19071e-05
  30  0.000239548
  31  3.97648e-06
  32  0.233241
  33  0.233031
Done.

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

Extracting fit parameters...

4FGL J2329.3-4955
   Spectrum: LogParabola
476         norm:  1.000e-04  8.408e-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.294e-01  2.330e-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.394e+00  2.332e-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: 7.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/972755/likelihoodResults_624240001_624499201_4FGL_J2329.3-4955_daily_bin1485.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) = 5465.47571878
delta logL = -0.00349323205046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5465.47221073
delta logL = 1.48206972881e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2742       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72941       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=   5463.724     FROM MIGRAD    STATUS=CONVERGED    160 CALLS      325 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12544        .10329        .15526E-04   -.20327E-02
   2  alpha         5.0000        3.1666        .50000    ** at limit **
   3  Normalizat    1.2631        .23147        .21713E-03   -.22366E-03
   4  Prefactor     .81783        .23828        .27803E-03   -.16569E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.125442
  alpha      = 5
  Normalizat = 1.26312
  Prefactor  = 0.817829
 **********
 **   18 **HESSE 
 **********

 FCN=   5463.724     FROM HESSE     STATUS=OK            29 CALLS      354 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12544        .10290        .62105E-06   -1.5637    
   2  alpha         5.0000        3.1622        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2631        .23175        .43426E-04   -.84674    
   4  Prefactor     .81783        .23855        .11121E-04   -.99074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63131e-11
Minuit parameter uncertainties:
  1  0.102902
  2  0.000117782
  3  0.231942
  4  0.238856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/972755': 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) = 5463.72401068
delta logL = 1.74821486983

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
580    Prefactor:  8.178e-01  2.389e-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.263e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.74
Ra Dec: 352.329 -49.932
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.88e-08 +/- 8.06e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.10e-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/972755/cmap_HighResolution_624240001_624499201_4FGL_J2329.3-4955_daily_bin1485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', comment='SUCCESS', energy_flux2='1.34e-05', dlogl='1.75e+00', photon_flux2='9.88e-08', job_status='DONE', time_completed='2021-09-29 21:50:22.518467', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='7.40e-08', energy_flux_error2='1.10e-05', EG='1.39', time_epoch_completed='1632977422.52', return_code='0', job_id='972755', GAL2='0.82', EG2='1.26', return_code2='0', photon_flux_error2='8.06e-08', ts2='3.74', photon_index='2.18' WHERE bin_id='1485' AND source_name='4FGL J2329.3-4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 21:50:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 972755: <4FGL_J2329.3-4955_daily_bin1485> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2329.3-4955_daily_bin1485 352.329 -49.9324 624240001 624499201 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 :                                   865.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

