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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1029
RA = 351.182, Dec = -40.6834
tmin = 506044801, tmax = 506304001
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='851746', job_status='RUN', time_executed='2021-09-29 16:46:41.880338', time_epoch_executed='1632959201.88' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851746

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851746/ft1_4FGL_J2324.7-4041_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851746/ft2_4FGL_J2324.7-4041_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851746/ft1_4FGL_J2324.7-4041_daily_bin1029.fits outfile=/scratch/kocevski/851746/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1029.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=506044801.0 tmax=506304001.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 4.31
user 4.06
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851746/ft2_4FGL_J2324.7-4041_daily_bin1029.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/851746/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/851746/ft1_filtered_4FGL_J2324.7-4041_daily_bin1029.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851746/ft1_filtered_4FGL_J2324.7-4041_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/851746/ft2_4FGL_J2324.7-4041_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/851746/ltcube_506044801_506304001_4FGL_J2324.7-4041_daily_bin1029.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/851746/ft2_4FGL_J2324.7-4041_daily_bin1029.fits
.....................!
real 11.97
user 11.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851746/ft1_filtered_4FGL_J2324.7-4041_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/851746/ft2_4FGL_J2324.7-4041_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/851746/ltcube_506044801_506304001_4FGL_J2324.7-4041_daily_bin1029.fits outfile=/scratch/kocevski/851746/expmap_506044801_506304001_4FGL_J2324.7-4041_daily_bin1029.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/851746/ltcube_506044801_506304001_4FGL_J2324.7-4041_daily_bin1029.fits
.....................!
real 190.79
user 185.15
sys 5.31

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/851746/ft1_filtered_4FGL_J2324.7-4041_daily_bin1029.fits scfile=/scratch/kocevski/851746/ft2_4FGL_J2324.7-4041_daily_bin1029.fits outfile=/scratch/kocevski/851746/cmap_506044801_506304001_4FGL_J2324.7-4041_daily_bin1029.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851746/ft1_filtered_4FGL_J2324.7-4041_daily_bin1029.fits scfile=/scratch/kocevski/851746/ft2_4FGL_J2324.7-4041_daily_bin1029.fits outfile=/scratch/kocevski/851746/cmap_HighResolution_506044801_506304001_4FGL_J2324.7-4041_daily_bin1029.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851746/ft1_filtered_4FGL_J2324.7-4041_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/851746/ft2_4FGL_J2324.7-4041_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851746/Model_4FGL_J2324.7-4041_daily_bin1029.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/851746/ft1_filtered_4FGL_J2324.7-4041_daily_bin1029.fits.....................!
real 43.19
user 41.92
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/851746/ft1_filtered_4FGL_J2324.7-4041_daily_bin1029.fits', '/scratch/kocevski/851746/ft2_4FGL_J2324.7-4041_daily_bin1029.fits', expMap='/scratch/kocevski/851746/expmap_506044801_506304001_4FGL_J2324.7-4041_daily_bin1029.fits', expCube='/scratch/kocevski/851746/ltcube_506044801_506304001_4FGL_J2324.7-4041_daily_bin1029.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/851746/Model_4FGL_J2324.7-4041_daily_bin1029.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/851746/ft1_filtered_4FGL_J2324.7-4041_daily_bin1029.fits
Spacecraft file(s): /scratch/kocevski/851746/ft2_4FGL_J2324.7-4041_daily_bin1029.fits
Exposure map: /scratch/kocevski/851746/expmap_506044801_506304001_4FGL_J2324.7-4041_daily_bin1029.fits
Exposure cube: /scratch/kocevski/851746/ltcube_506044801_506304001_4FGL_J2324.7-4041_daily_bin1029.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/851746/Model_4FGL_J2324.7-4041_daily_bin1029.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) = 5716.01067922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.396       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0873       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.241       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0706       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.809       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30302E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.383       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22810E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.467       1.0000         .10000E-03   10000.    
    14 'norm      '    16.437       1.0000         .10000E-03   10000.    
    15 'norm      '    9.9407       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7153       1.0000         .10000E-03   10000.    
    17 'norm      '    14.208       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4068       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.038       1.0000         .10000E-03   10000.    
    21 'norm      '    5.2655       1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.078       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.9213       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .60970       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.379       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    104.65       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .91299       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .66578       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=   5716.005     FROM MIGRAD    STATUS=CONVERGED    884 CALLS     4411 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.727       -.14055E-05** at limit **
   2  Prefactor     .10000E-03    12.726       -.46495E-06** at limit **
   3  Prefactor     14.395        18.258       -.17380E-06    .16012E-06
   4  Prefactor     5.0875        3.7592       -.24098E-06   -.25932E-04
   5  Prefactor     33.233        42.619        .31398E-05    .24919E-04
   6  Prefactor     8.0708        6.4627        .57590E-07    .18201E-04
   7  Prefactor     23.809        16.810        .97495E-07    .14542E-04
   8  Prefactor     .10009E-03    14.958       -.15560E-06** at limit **
   9  Prefactor     20.387        13.538        .11272E-06    .14026E-04
  10  Prefactor     .10000E-03    2.9440       -.24010E-06** at limit **
  11  Prefactor     .10000E-03    64.576       -.26809E-05** at limit **
  12  Prefactor     .10000E-03    51.755       -.80527E-07** at limit **
  13  Prefactor     13.460        12.927       -.48880E-06   -.11151E-05
  14  norm          16.438        13.872       -.40598E-07    .36962E-05
  15  norm          9.9384        6.6747       -.72465E-06   -.23230E-04
  16  norm          1.7140        6.3428       -.83043E-06   -.15322E-03
  17  norm          14.210        7.7351       -.24945E-05   -.14673E-03
  18  Prefactor     3.4054        3.1253        .58878E-06   -.17200E-02
  19  Prefactor     .10000E-03    36.968        .10430E-05** at limit **
  20  Prefactor     16.050        35.500       -.95489E-05   -.30132E-04
  21  norm          5.2655        4.9957        .20933E-06   -.29972E-04
  22  Prefactor     27.076        14.379       -.12381E-06    .19551E-04
  23  norm          .10000E-03    .47493       -.28610E-07** at limit **
  24  norm          1.9211        2.1080       -.73378E-07    .12135E-04
  25  Prefactor     .60824        3.9457       -.68184E-07   -.28436E-03
  26  Prefactor     15.387        21.388        .59719E-06    .20195E-04
  27  Prefactor     .10000E-03    15.693        .76596E-07** at limit **
  28  Prefactor     .10000E-03    1.3220        .26070E-07** at limit **
  29  Prefactor     .10000E-03    1.0638        .42908E-07** at limit **
  30  Prefactor     104.66        44.370       -.14162E-05   -.17084E-04
  31  Normalizat    .91296        .16019        .40283E-06    .39641E-04
  32  Prefactor     .66581        .17306        .88547E-06    .40587E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3954
  Prefactor  = 5.08752
  Prefactor  = 33.2334
  Prefactor  = 8.07077
  Prefactor  = 23.8092
  Prefactor  = 0.000100088
  Prefactor  = 20.3875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.4603
  norm       = 16.4378
  norm       = 9.93838
  norm       = 1.71395
  norm       = 14.2095
  Prefactor  = 3.40541
  Prefactor  = 0.0001
  Prefactor  = 16.0503
  norm       = 5.26545
  Prefactor  = 27.0763
  norm       = 0.0001
  norm       = 1.92112
  Prefactor  = 0.608244
  Prefactor  = 15.3874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 104.657
  Normalizat = 0.912962
  Prefactor  = 0.665807
 **********
 **   18 **HESSE 
 **********

 FCN=   5716.005     FROM HESSE     STATUS=OK           683 CALLS     5094 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.395        18.255        .10556E-03   -1.4949    
   4  Prefactor     5.0875        3.7553        .11951E-03   -1.5257    
   5  Prefactor     33.233        42.419        .69501E-04   -1.4554    
   6  Prefactor     8.0708        6.4616        .14113E-03   -1.5140    
   7  Prefactor     23.809        16.773        .82093E-04   -1.4732    
   8  Prefactor     .10009E-03    118.58        .55769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.387        13.598        .88715E-04   -1.4805    
  10  Prefactor     .10000E-03    2.9583        .12668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    65.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.551        .15261       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.460        12.837        .10915E-03   -1.4974    
  14  norm          16.438        13.887        .98788E-04   -1.4897    
  15  norm          9.9384        6.7580        .12709E-03   -1.5077    
  16  norm          1.7140        6.2711        .27102E-03   -1.5446    
  17  norm          14.210        7.7340        .10626E-03   -1.4954    
  18  Prefactor     3.4054        7.9371        .10959E-02   -1.5339    
  19  Prefactor     .10000E-03    37.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.050        35.558        .10001E-03   -1.4906    
  21  norm          5.2655        4.9291        .11880E-03   -1.5249    
  22  Prefactor     27.076        17.188        .76986E-04   -1.4667    
  23  norm          .10000E-03    1.2612        .99648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.9211        2.1064        .11061E-03   -1.5431    
  25  Prefactor     .60824        3.6334        .24878E-03   -1.5552    
  26  Prefactor     15.387        20.278        .10213E-03   -1.4923    
  27  Prefactor     .10000E-03    15.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.3270        .84871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.0691        .76126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     104.66        44.428        .19654E-03   -1.3658    
  31  Normalizat    .91296        .19371        .21307E-03   -.96006    
  32  Prefactor     .66581        .20769        .27315E-03   -1.0488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34663e-09
Minuit parameter uncertainties:
  1  3.38384e-05
  2  1.88363e-05
  3  18.2624
  4  3.75551
  5  42.4573
  6  6.46217
  7  16.7766
  8  0.00647277
  9  13.6003
  10  6.6183e-06
  11  0.000103422
  12  0.000338334
  13  12.8398
  14  13.8898
  15  6.75855
  16  6.27346
  17  7.73458
  18  7.93953
  19  2.61926e-05
  20  35.6048
  21  4.92949
  22  17.1915
  23  5.2526e-06
  24  2.10647
  25  2.97323
  26  20.2866
  27  8.27097e-06
  28  2.47181e-06
  29  1.51566e-06
  30  44.4417
  31  0.19386
  32  0.207931
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.714e+00  6.273e+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:  6.658e-01  2.079e-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.130e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/851746/likelihoodResults_506044801_506304001_4FGL_J2324.7-4041_daily_bin1029.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5714.6508878
delta logL = 1.35415172099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5714.65046969
delta logL = 1.35456982653

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1775       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8210       1.0000          .0000       5.0000    
     3 'Normalizat'    .88597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67069       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=   5714.650     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      225 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1822        14.568        .10545E-01    .17445E-02
   2  alpha         2.8191        2.0308        .20126        .17911E-03
   3  Normalizat    .88602        .42497E-01    .44722E-01    .14442E-03
   4  Prefactor     .67068        .44948E-01    .61336E-01    .80653E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18216
  alpha      = 2.81911
  Normalizat = 0.886017
  Prefactor  = 0.670684
 **********
 **   18 **HESSE 
 **********

 FCN=   5714.650     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1822        2.4289        .59084E-04   -1.5491    
   2  alpha         2.8191        .84785        .74153E-02    .12799    
   3  Normalizat    .88602        .18474        .21553E-03   -.96953    
   4  Prefactor     .67068        .20336        .27132E-03   -1.0469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68865e-10
Minuit parameter uncertainties:
  1  2.42911
  2  0.865307
  3  0.184871
  4  0.203584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851746': 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) = 5714.65046543
delta logL = 1.35457408556

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.182e+00  2.429e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  2.819e+00  8.653e-01  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:  6.707e-01  2.036e-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:  8.860e-01  1.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.86
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 2.82 +/- 0.87
Photon Flux (Free Index): 4.29e-08 +/- 3.58e-08
Energy Flux (Free Index): 1.16e-05 +/- 9.22e-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/851746/cmap_HighResolution_506044801_506304001_4FGL_J2324.7-4041_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-05', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='1.35e+00', photon_flux2='4.29e-08', job_status='DONE', time_completed='2021-09-29 17:01:26.846226', photon_index_error2='0.87', photon_index2='2.82', ts='0.14', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='3.65e-08', energy_flux_error2='9.22e-06', EG='0.91', time_epoch_completed='1632960086.85', return_code='0', job_id='851746', GAL2='0.67', EG2='0.89', return_code2='0', photon_flux_error2='3.58e-08', ts2='2.86', photon_index='1.62' WHERE bin_id='1029' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:01:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 851746: <4FGL_J2324.7-4041_daily_bin1029> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1029> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:41 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:42 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:42 2021
Terminated at Wed Sep 29 17:01:27 2021
Results reported at Wed Sep 29 17:01:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1029 351.182 -40.6834 506044801 506304001 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 :                                   870.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            946 sec.

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

