/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 187 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_bin1076
RA = 351.182, Dec = -40.6834
tmin = 518227201, tmax = 518486401
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='851819', job_status='RUN', time_executed='2021-09-29 16:49:05.540794', time_epoch_executed='1632959345.54' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1076'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851819

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851819/ft1_4FGL_J2324.7-4041_daily_bin1076.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851819/ft2_4FGL_J2324.7-4041_daily_bin1076.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851819/ft1_4FGL_J2324.7-4041_daily_bin1076.fits outfile=/scratch/kocevski/851819/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1076.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=518227201.0 tmax=518486401.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.65
user 3.42
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851819/ft1_filtered_4FGL_J2324.7-4041_daily_bin1076.fits" evtable="EVENTS" scfile=/scratch/kocevski/851819/ft2_4FGL_J2324.7-4041_daily_bin1076.fits sctable="SC_DATA" outfile=/scratch/kocevski/851819/ltcube_518227201_518486401_4FGL_J2324.7-4041_daily_bin1076.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/851819/ft2_4FGL_J2324.7-4041_daily_bin1076.fits
.....................!
real 11.87
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851819/ft1_filtered_4FGL_J2324.7-4041_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/851819/ft2_4FGL_J2324.7-4041_daily_bin1076.fits sctable="SC_DATA" expcube=/scratch/kocevski/851819/ltcube_518227201_518486401_4FGL_J2324.7-4041_daily_bin1076.fits outfile=/scratch/kocevski/851819/expmap_518227201_518486401_4FGL_J2324.7-4041_daily_bin1076.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/851819/ltcube_518227201_518486401_4FGL_J2324.7-4041_daily_bin1076.fits
.....................!
real 189.96
user 185.36
sys 4.22

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/851819/ft1_filtered_4FGL_J2324.7-4041_daily_bin1076.fits scfile=/scratch/kocevski/851819/ft2_4FGL_J2324.7-4041_daily_bin1076.fits outfile=/scratch/kocevski/851819/cmap_518227201_518486401_4FGL_J2324.7-4041_daily_bin1076.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/851819/ft1_filtered_4FGL_J2324.7-4041_daily_bin1076.fits scfile=/scratch/kocevski/851819/ft2_4FGL_J2324.7-4041_daily_bin1076.fits outfile=/scratch/kocevski/851819/cmap_HighResolution_518227201_518486401_4FGL_J2324.7-4041_daily_bin1076.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851819/ft1_filtered_4FGL_J2324.7-4041_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/851819/ft2_4FGL_J2324.7-4041_daily_bin1076.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851819/Model_4FGL_J2324.7-4041_daily_bin1076.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/851819/ft1_filtered_4FGL_J2324.7-4041_daily_bin1076.fits.....................!
real 37.33
user 36.05
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44855E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4270       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.296       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    46.754       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.375       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.004       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10682E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.976       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .36056       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .66293       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.863       1.0000         .10000E-03   10000.    
    19 'Prefactor '    79.211       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.822       1.0000         .10000E-03   10000.    
    21 'norm      '    10.448       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.0316       1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.118       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.2284       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .35678       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .14707E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3071       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .72547       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=   4580.247     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     4450 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    324.70        .57990E-05** at limit **
   2  Prefactor     1.4461        51.226        .19209E-04    .12537E-03
   3  Prefactor     28.318        41.787       -.17251E-05   -.13781E-04
   4  Prefactor     .10000E-03    4.3612       -.10635E-06** at limit **
   5  Prefactor     46.761        45.566       -.47951E-06    .54395E-05
   6  Prefactor     13.374        9.1987        .64376E-07    .10660E-04
   7  Prefactor     .10000E-03    31.149       -.14058E-05** at limit **
   8  Prefactor     16.003        31.456        .50163E-06    .15832E-04
   9  Prefactor     .10000E-03    6.5327        .93999E-07** at limit **
  10  Prefactor     .10000E-03    6.2790       -.17824E-06** at limit **
  11  Prefactor     .10000E-03    56.244       -.14513E-05** at limit **
  12  Prefactor     .10000E-03    39.535        .12745E-05** at limit **
  13  Prefactor     15.972        13.200       -.26748E-06   -.74725E-04
  14  norm          .10000E-03    7.0461       -.26351E-06** at limit **
  15  norm          .36871        8.8801        .42837E-05   -.57004E-03
  16  norm          .10000E-03    7.4764        .25305E-06** at limit **
  17  norm          .61863        11.826       -.13196E-05    .10400E-03
  18  Prefactor     13.861        8.6089       -.17311E-06   -.24551E-03
  19  Prefactor     79.197        61.791        .14922E-05   -.78640E-05
  20  Prefactor     17.834        44.697       -.79725E-06    .12589E-04
  21  norm          10.450        7.5826       -.22265E-06   -.40740E-04
  22  Prefactor     .10000E-03    49.779        .39469E-06** at limit **
  23  norm          .10000E-03    .54238        .14867E-07** at limit **
  24  norm          .10000E-03    1.6679       -.86592E-07** at limit **
  25  Prefactor     .10000E-03    2.1473        .16305E-07** at limit **
  26  Prefactor     9.0293        25.924       -.72069E-06   -.24814E-04
  27  Prefactor     14.195        63.922       -.15261E-04   -.59595E-05
  28  Prefactor     3.2275        4.2934        .18902E-06    .54107E-04
  29  Prefactor     .33740        3.2121       -.18092E-08   -.27327E-03
  30  Prefactor     .10000E-03    133.58        .58441E-06** at limit **
  31  Normalizat    1.3073        .22124       -.10081E-05   -.62339E-04
  32  Prefactor     .72541        .22258        .10149E-05   -.49312E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 1.4461
  Prefactor  = 28.3175
  Prefactor  = 0.0001
  Prefactor  = 46.761
  Prefactor  = 13.3737
  Prefactor  = 0.0001
  Prefactor  = 16.0026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9719
  norm       = 0.0001
  norm       = 0.368705
  norm       = 0.0001
  norm       = 0.618629
  Prefactor  = 13.8606
  Prefactor  = 79.1971
  Prefactor  = 17.8339
  norm       = 10.4497
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.02934
  Prefactor  = 14.1955
  Prefactor  = 3.22747
  Prefactor  = 0.337399
  Prefactor  = 0.000100004
  Normalizat = 1.30731
  Prefactor  = 0.725405
 **********
 **   18 **HESSE 
 **********

 FCN=   4580.247     FROM HESSE     STATUS=OK           659 CALLS     5109 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    337.81        .42420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.4461        55.065        .18090E-02   -1.5467    
   3  Prefactor     28.318        41.870        .75315E-04   -1.4643    
   4  Prefactor     .10000E-03    4.4643        .27567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     46.761        45.540        .58640E-04   -1.4339    
   6  Prefactor     13.374        9.2029        .10952E-03   -1.4976    
   7  Prefactor     .10000E-03    31.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.003        31.502        .10012E-03   -1.4908    
   9  Prefactor     .10000E-03    6.5503        .16893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.3152        .16557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    56.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.972        13.238        .10020E-03   -1.4908    
  14  norm          .10000E-03    7.0594        .17546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .36871        25.954        .33720E-02   -1.5587    
  16  norm          .10000E-03    7.6651        .35860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .61863        45.225        .42479E-02   -1.5551    
  18  Prefactor     13.861        8.5984        .10757E-03   -1.4963    
  19  Prefactor     79.197        62.170        .45124E-04   -1.3926    
  20  Prefactor     17.834        44.610        .94873E-04   -1.4863    
  21  norm          10.450        7.5192        .12396E-03   -1.5061    
  22  Prefactor     .10000E-03    50.850        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .55862        .96732E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.6703        .85313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.1626        .96615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.0293        25.856        .13337E-03   -1.5107    
  27  Prefactor     14.195        64.457        .10660E-03   -1.4954    
  28  Prefactor     3.2275        4.2872        .15697E-03   -1.5349    
  29  Prefactor     .33740        17.379        .22259E-02   -1.5592    
  30  Prefactor     .10000E-03    134.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3073        .26993        .22438E-03   -.83348    
  32  Prefactor     .72541        .26903        .30969E-03   -1.0254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76506e-09
Minuit parameter uncertainties:
  1  0.00237379
  2  17.8642
  3  41.9133
  4  6.07538e-06
  5  45.5741
  6  9.20383
  7  3.37824e-05
  8  31.5347
  9  5.30454e-06
  10  9.36933e-06
  11  3.75367e-05
  12  1.67502e-05
  13  13.2403
  14  7.1525e-06
  15  6.18889
  16  1.55862e-05
  17  10.5862
  18  8.59921
  19  62.2206
  20  44.6938
  21  7.51992
  22  0.000234325
  23  4.87485e-06
  24  5.04985e-06
  25  8.30322e-07
  26  25.8876
  27  60.6061
  28  4.28757
  29  4.84382
  30  0.00153257
  31  0.270217
  32  0.269515
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.559e-05  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:  7.254e-01  2.695e-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.307e+00  2.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/851819/likelihoodResults_518227201_518486401_4FGL_J2324.7-4041_daily_bin1076.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) = 4580.24729777
delta logL = -0.000620287832135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4580.2466775
delta logL = -1.99806891032e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4580.247     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      262 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.3196        .36163E-02** at limit **
   2  alpha         1.8658        3.3752        .50000       -.21373E-07
   3  Normalizat    1.3073        .24556        .22439E-03   -.12082E-03
   4  Prefactor     .72541        .26105        .30969E-03   -.12665E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.86579
  Normalizat = 1.30731
  Prefactor  = 0.725407
 **********
 **   18 **HESSE 
 **********

 FCN=   4580.247     FROM HESSE     STATUS=OK            29 CALLS      291 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.2537        .72326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8658        3.3719        .50000       -.25648    
   3  Normalizat    1.3073        .24579        .44877E-04   -.83348    
   4  Prefactor     .72541        .26130        .12388E-04   -1.0254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00528e-11
Minuit parameter uncertainties:
  1  3.85669e-06
  2  2.41966
  3  0.246012
  4  0.26174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851819': 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) = 4580.246677
delta logL = 4.80211383547e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.857e-06  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.866e+00  2.420e+00  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:  7.254e-01  2.617e-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.307e+00  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.182 -40.683

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/851819/cmap_HighResolution_518227201_518486401_4FGL_J2324.7-4041_daily_bin1076.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.30e-05', job_status='DONE', photon_flux_upper_limit='3.83e-08', time_completed='2021-09-29 17:01:40.720527', job_id='851819', GAL2='0.73', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632960100.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='4.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1076' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:01:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 851819: <4FGL_J2324.7-4041_daily_bin1076> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1076 351.182 -40.6834 518227201 518486401 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 :                                   750.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

