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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1060
RA = 351.182, Dec = -40.6834
tmin = 514080001, tmax = 514339201
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='851793', job_status='RUN', time_executed='2021-09-29 16:49:25.071817', time_epoch_executed='1632959365.07' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1060'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851793

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851793/ft1_4FGL_J2324.7-4041_daily_bin1060.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851793/ft2_4FGL_J2324.7-4041_daily_bin1060.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851793/ft1_4FGL_J2324.7-4041_daily_bin1060.fits outfile=/scratch/kocevski/851793/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1060.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=514080001.0 tmax=514339201.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.62
user 3.40
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/851793/ft2_4FGL_J2324.7-4041_daily_bin1060.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851793/ft2_4FGL_J2324.7-4041_daily_bin1060.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/851793/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1060.fits evtable="EVENTS" outfile="/scratch/kocevski/851793/ft1_filtered_4FGL_J2324.7-4041_daily_bin1060.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851793/ft1_filtered_4FGL_J2324.7-4041_daily_bin1060.fits" evtable="EVENTS" scfile=/scratch/kocevski/851793/ft2_4FGL_J2324.7-4041_daily_bin1060.fits sctable="SC_DATA" outfile=/scratch/kocevski/851793/ltcube_514080001_514339201_4FGL_J2324.7-4041_daily_bin1060.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/851793/ft2_4FGL_J2324.7-4041_daily_bin1060.fits
.....................!
real 11.93
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851793/ft1_filtered_4FGL_J2324.7-4041_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/851793/ft2_4FGL_J2324.7-4041_daily_bin1060.fits sctable="SC_DATA" expcube=/scratch/kocevski/851793/ltcube_514080001_514339201_4FGL_J2324.7-4041_daily_bin1060.fits outfile=/scratch/kocevski/851793/expmap_514080001_514339201_4FGL_J2324.7-4041_daily_bin1060.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/851793/ltcube_514080001_514339201_4FGL_J2324.7-4041_daily_bin1060.fits
.....................!
real 191.62
user 186.15
sys 5.17

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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.7-4041 @ 351.182 -40.6834

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/851793/ft1_filtered_4FGL_J2324.7-4041_daily_bin1060.fits scfile=/scratch/kocevski/851793/ft2_4FGL_J2324.7-4041_daily_bin1060.fits outfile=/scratch/kocevski/851793/cmap_514080001_514339201_4FGL_J2324.7-4041_daily_bin1060.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=351.182 yref=-40.6834 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/851793/ft1_filtered_4FGL_J2324.7-4041_daily_bin1060.fits scfile=/scratch/kocevski/851793/ft2_4FGL_J2324.7-4041_daily_bin1060.fits outfile=/scratch/kocevski/851793/cmap_HighResolution_514080001_514339201_4FGL_J2324.7-4041_daily_bin1060.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=351.182 yref=-40.6834 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851793/ft1_filtered_4FGL_J2324.7-4041_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/851793/ft2_4FGL_J2324.7-4041_daily_bin1060.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851793/Model_4FGL_J2324.7-4041_daily_bin1060.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/851793/ft1_filtered_4FGL_J2324.7-4041_daily_bin1060.fits.....................!
real 36.93
user 35.67
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/851793/ft1_filtered_4FGL_J2324.7-4041_daily_bin1060.fits', '/scratch/kocevski/851793/ft2_4FGL_J2324.7-4041_daily_bin1060.fits', expMap='/scratch/kocevski/851793/expmap_514080001_514339201_4FGL_J2324.7-4041_daily_bin1060.fits', expCube='/scratch/kocevski/851793/ltcube_514080001_514339201_4FGL_J2324.7-4041_daily_bin1060.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/851793/Model_4FGL_J2324.7-4041_daily_bin1060.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7-4041'

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.376e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/851793/ft1_filtered_4FGL_J2324.7-4041_daily_bin1060.fits
Spacecraft file(s): /scratch/kocevski/851793/ft2_4FGL_J2324.7-4041_daily_bin1060.fits
Exposure map: /scratch/kocevski/851793/expmap_514080001_514339201_4FGL_J2324.7-4041_daily_bin1060.fits
Exposure cube: /scratch/kocevski/851793/ltcube_514080001_514339201_4FGL_J2324.7-4041_daily_bin1060.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/851793/Model_4FGL_J2324.7-4041_daily_bin1060.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) = 4523.01337801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.814       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .80736       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.791       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.231       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10771E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7299       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.716       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1186       1.0000         .10000E-03   10000.    
    24 'norm      '    .27199       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.5274       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .32552       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .96288E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.4670       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0777       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1585       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4523.004     FROM MIGRAD    STATUS=CONVERGED    828 CALLS     4346 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.535        .10420E-05** at limit **
   2  Prefactor     22.834        28.180        .16283E-06   -.13526E-03
   3  Prefactor     .10000E-03    28.300        .59974E-06** at limit **
   4  Prefactor     .81342        5.3837        .14835E-05   -.17518E-03
   5  Prefactor     .10000E-03    21.502       -.61733E-06** at limit **
   6  Prefactor     .10000E-03    8.4716       -.10410E-06** at limit **
   7  Prefactor     .10000E-03    11.298       -.38798E-06** at limit **
   8  Prefactor     44.785        36.435       -.49483E-07   -.13040E-03
   9  Prefactor     13.231        17.669        .60449E-06   -.13100E-04
  10  Prefactor     .10000E-03    5.3886        .13274E-07** at limit **
  11  Prefactor     .10000E-03    16.416        .41428E-06** at limit **
  12  Prefactor     .10000E-03    49.174       -.18863E-05** at limit **
  13  Prefactor     .10000E-03    20.707       -.53123E-06** at limit **
  14  norm          .10000E-03    6.2545        .24471E-06** at limit **
  15  norm          .10000E-03    11.719        .21081E-06** at limit **
  16  norm          1.7342        5.0616        .44506E-06   -.16263E-04
  17  norm          .10000E-03    3.9787       -.98687E-08** at limit **
  18  Prefactor     .10000E-03    5.0934        .82030E-07** at limit **
  19  Prefactor     35.733        45.849        .38272E-06   -.66417E-04
  20  Prefactor     .10000E-03    24.375       -.30452E-06** at limit **
  21  norm          .10000E-03    5.7592        .12711E-05** at limit **
  22  Prefactor     .10000E-03    16.118        .63179E-06** at limit **
  23  norm          1.1187        1.1180        .99604E-07   -.51424E-04
  24  norm          .27022        3.9192        .60947E-06   -.19182E-03
  25  Prefactor     .10000E-03    1.7981        .27218E-07** at limit **
  26  Prefactor     9.5297        19.467       -.63946E-07   -.78895E-04
  27  Prefactor     .10000E-03    19.607       -.35806E-06** at limit **
  28  Prefactor     .32467        5.2586        .82454E-06   -.13869E-03
  29  Prefactor     .10029E-03    4.4576        .15067E-05** at limit **
  30  Prefactor     5.4651        53.755       -.10985E-06   -.21760E-04
  31  Normalizat    1.0777        .23672       -.31856E-05   -.57569E-03
  32  Prefactor     1.1585        .23565        .95932E-06   -.55753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.834
  Prefactor  = 0.0001
  Prefactor  = 0.813424
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.7852
  Prefactor  = 13.2312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.73417
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.7329
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.11869
  norm       = 0.270219
  Prefactor  = 0.0001
  Prefactor  = 9.52966
  Prefactor  = 0.0001
  Prefactor  = 0.324668
  Prefactor  = 0.000100293
  Prefactor  = 5.46513
  Normalizat = 1.07775
  Prefactor  = 1.15846
 **********
 **   18 **HESSE 
 **********

 FCN=   4523.004     FROM HESSE     STATUS=OK           649 CALLS     4995 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.834        27.609        .83861E-04   -1.4752    
   3  Prefactor     .10000E-03    28.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .81342        9.1924        .27466E-02   -1.5528    
   5  Prefactor     .10000E-03    21.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.7093        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     44.785        36.462        .59906E-04   -1.4369    
   9  Prefactor     13.231        17.696        .11012E-03   -1.4980    
  10  Prefactor     .10000E-03    5.4245        .15246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    49.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.2673        .16438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.148        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7342        4.9669        .24319E-03   -1.5445    
  17  norm          .10000E-03    3.9892        .13101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1301        .14819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.733        46.011        .67058E-04   -1.4512    
  20  Prefactor     .10000E-03    24.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.8048        .31062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1187        1.0962        .68147E-04   -1.5496    
  24  norm          .27022        9.4037        .24705E-02   -1.5604    
  25  Prefactor     .10000E-03    1.8208        .88035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.5297        19.423        .12983E-03   -1.5090    
  27  Prefactor     .10000E-03    19.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .32467        13.451        .28892E-02   -1.5594    
  29  Prefactor     .10029E-03    41.376        .23211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.4651        53.319        .17185E-03   -1.5240    
  31  Normalizat    1.0777        .26985        .24572E-03   -.90470    
  32  Prefactor     1.1585        .27957        .26035E-03   -.87619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.08952e-08
Minuit parameter uncertainties:
  1  0.000249002
  2  27.6242
  3  0.000126916
  4  5.46967
  5  8.70326e-05
  6  9.39262e-07
  7  3.12522e-05
  8  36.4804
  9  17.7035
  10  9.21558e-06
  11  6.03771e-05
  12  0.0003929
  13  4.1183e-05
  14  2.14319e-05
  15  1.92169e-05
  16  4.96813
  17  2.87519e-06
  18  8.95006e-06
  19  46.0567
  20  2.91417e-05
  21  1.99446e-05
  22  9.2695e-05
  23  1.09625
  24  3.1881
  25  2.26323e-06
  26  19.4356
  27  4.91535e-05
  28  4.17994
  29  0.00696556
  30  34.18
  31  0.270199
  32  0.279928
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.734e+00  4.968e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.158e+00  2.799e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.078e+00  2.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 4.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851793/likelihoodResults_514080001_514339201_4FGL_J2324.7-4041_daily_bin1060.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): 1
logL (Free Index) = 4522.02418089
delta logL = 0.980263002285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4521.79220756
delta logL = 1.21223633374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51310E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .93793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2607       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4521.792     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      432 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51233E-02    .11767        .95833E-03    .11187E-01
   2  alpha         5.0000        2.5342        .46267    ** at limit **
   3  Normalizat    .93802        .11756        .45384E-01    .19717E-04
   4  Prefactor     1.2609        .12494        .56731E-01    .90783E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0051233
  alpha      = 5
  Normalizat = 0.938016
  Prefactor  = 1.26087
 **********
 **   18 **HESSE 
 **********

 FCN=   4521.792     FROM HESSE     STATUS=OK            33 CALLS      465 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51233E-02    .37188E-02    .33278E-04   -1.5694    
   2  alpha         5.0000        .94519        .31761E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .93802        .26291        .26058E-03   -.95137    
   4  Prefactor     1.2609        .28199        .25086E-03   -.84478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65299e-12
Minuit parameter uncertainties:
  1  0.00371885
  2  4.24008e-07
  3  0.263275
  4  0.282331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851793': 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) = 4521.79219868
delta logL = 1.2122452134

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  5.123e-03  3.719e-03  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  5.000e+00  4.240e-07  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.261e+00  2.823e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  9.380e-01  2.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.79
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.11e-07 +/- 7.99e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.11e-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/851793/cmap_HighResolution_514080001_514339201_4FGL_J2324.7-4041_daily_bin1060.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.38e-05', comment='SUCCESS', energy_flux2='1.54e-05', dlogl='1.21e+00', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-29 17:01:51.497798', photon_index_error2='0.00', photon_index2='5.00', ts='0.16', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='4.34e-08', energy_flux_error2='1.11e-05', EG='1.08', time_epoch_completed='1632960111.5', return_code='0', job_id='851793', GAL2='1.26', EG2='0.94', return_code2='0', photon_flux_error2='7.99e-08', ts2='2.79', photon_index='1.62' WHERE bin_id='1060' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:01:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 851793: <4FGL_J2324.7-4041_daily_bin1060> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1060> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:45 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:45:47 2021
Terminated at Wed Sep 29 17:01:52 2021
Results reported at Wed Sep 29 17:01:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1060 351.182 -40.6834 514080001 514339201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7-4041 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   740.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            967 sec.

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

