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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1101
RA = 351.182, Dec = -40.6834
tmin = 524707201, tmax = 524966401
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='851860', job_status='RUN', time_executed='2021-09-29 16:46:09.326501', time_epoch_executed='1632959169.33' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851860

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851860/ft1_4FGL_J2324.7-4041_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851860/ft2_4FGL_J2324.7-4041_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851860/ft1_4FGL_J2324.7-4041_daily_bin1101.fits outfile=/scratch/kocevski/851860/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1101.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=524707201.0 tmax=524966401.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.45
user 3.19
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851860/ft2_4FGL_J2324.7-4041_daily_bin1101.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/851860/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1101.fits evtable="EVENTS" outfile="/scratch/kocevski/851860/ft1_filtered_4FGL_J2324.7-4041_daily_bin1101.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/851860/ft1_filtered_4FGL_J2324.7-4041_daily_bin1101.fits" evtable="EVENTS" scfile=/scratch/kocevski/851860/ft2_4FGL_J2324.7-4041_daily_bin1101.fits sctable="SC_DATA" outfile=/scratch/kocevski/851860/ltcube_524707201_524966401_4FGL_J2324.7-4041_daily_bin1101.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/851860/ft2_4FGL_J2324.7-4041_daily_bin1101.fits
.....................!
real 12.42
user 12.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851860/ft1_filtered_4FGL_J2324.7-4041_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/851860/ft2_4FGL_J2324.7-4041_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/851860/ltcube_524707201_524966401_4FGL_J2324.7-4041_daily_bin1101.fits outfile=/scratch/kocevski/851860/expmap_524707201_524966401_4FGL_J2324.7-4041_daily_bin1101.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/851860/ltcube_524707201_524966401_4FGL_J2324.7-4041_daily_bin1101.fits
.....................!
real 191.88
user 185.91
sys 5.57

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/851860/ft1_filtered_4FGL_J2324.7-4041_daily_bin1101.fits scfile=/scratch/kocevski/851860/ft2_4FGL_J2324.7-4041_daily_bin1101.fits outfile=/scratch/kocevski/851860/cmap_524707201_524966401_4FGL_J2324.7-4041_daily_bin1101.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851860/ft1_filtered_4FGL_J2324.7-4041_daily_bin1101.fits scfile=/scratch/kocevski/851860/ft2_4FGL_J2324.7-4041_daily_bin1101.fits outfile=/scratch/kocevski/851860/cmap_HighResolution_524707201_524966401_4FGL_J2324.7-4041_daily_bin1101.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851860/ft1_filtered_4FGL_J2324.7-4041_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/851860/ft2_4FGL_J2324.7-4041_daily_bin1101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851860/Model_4FGL_J2324.7-4041_daily_bin1101.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/851860/ft1_filtered_4FGL_J2324.7-4041_daily_bin1101.fits.....................!
real 42.30
user 40.93
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.947       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6735       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.417       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4680       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.928       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.354       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3630       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0796       1.0000         .10000E-03   10000.    
    14 'norm      '    9.0012       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5921       1.0000         .10000E-03   10000.    
    16 'norm      '    3.9270       1.0000         .10000E-03   10000.    
    17 'norm      '    .35696       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.966       1.0000         .10000E-03   10000.    
    21 'norm      '    4.1457       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .96086       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.4281       1.0000         .10000E-03   10000.    
    26 'Prefactor '    30.725       1.0000         .10000E-03   10000.    
    27 'Prefactor '    55.019       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.2019       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0216       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .43366       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=   5669.408     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     3763 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.316        .72535E-06** at limit **
   2  Prefactor     19.974        20.256        .11038E-05    .12722E-03
   3  Prefactor     .10000E-03    40.335       -.11103E-05** at limit **
   4  Prefactor     1.6733        2.1936        .14296E-06   -.41429E-05
   5  Prefactor     32.417        28.109        .50510E-07   -.16092E-05
   6  Prefactor     3.4682        4.0444       -.87156E-08   -.43511E-04
   7  Prefactor     14.921        16.517        .67981E-07   -.18750E-04
   8  Prefactor     .10000E-03    8.2735       -.24962E-06** at limit **
   9  Prefactor     13.355        11.179        .24431E-06    .44731E-05
  10  Prefactor     3.2212        3.4685       -.25791E-07   -.33038E-04
  11  Prefactor     4.3610        22.637        .70373E-07   -.84381E-05
  12  Prefactor     .10000E-03    23.449        .19155E-05** at limit **
  13  Prefactor     6.0793        8.8538        .27122E-05   -.41588E-04
  14  norm          9.0014        6.9737       -.39804E-07    .85157E-05
  15  norm          2.5921        3.4457       -.12226E-06   -.51481E-04
  16  norm          3.9269        3.4503        .45440E-07    .50914E-04
  17  norm          .35823        3.4655        .61279E-06   -.24113E-03
  18  Prefactor     .10000E-03    5.0955       -.18788E-06** at limit **
  19  Prefactor     .10000E-03    20.730        .91256E-07** at limit **
  20  Prefactor     18.961        31.000       -.48813E-06   -.56053E-04
  21  norm          4.1459        2.9047        .73632E-08   -.65267E-04
  22  Prefactor     .10000E-03    17.292       -.18874E-05** at limit **
  23  norm          .96082        .79032       -.12890E-06   -.12970E-03
  24  norm          .10000E-03    1.1179        .12322E-07** at limit **
  25  Prefactor     2.4281        3.2232        .15739E-06   -.33441E-04
  26  Prefactor     30.731        22.516       -.24596E-06    .25305E-04
  27  Prefactor     55.006        42.696       -.11208E-05   -.10989E-03
  28  Prefactor     2.2020        3.6682        .15409E-06   -.14472E-03
  29  Prefactor     .10000E-03    3.4860        .10682E-05** at limit **
  30  Prefactor     .10000E-03    10.301        .44393E-06** at limit **
  31  Normalizat    1.0215        .14398       -.37781E-06   -.71055E-04
  32  Prefactor     .43385        .15143       -.45240E-06   -.56009E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.9738
  Prefactor  = 0.0001
  Prefactor  = 1.67331
  Prefactor  = 32.4172
  Prefactor  = 3.46816
  Prefactor  = 14.9211
  Prefactor  = 0.0001
  Prefactor  = 13.3545
  Prefactor  = 3.22116
  Prefactor  = 4.361
  Prefactor  = 0.000100001
  Prefactor  = 6.07934
  norm       = 9.00143
  norm       = 2.59205
  norm       = 3.92694
  norm       = 0.358232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9607
  norm       = 4.14589
  Prefactor  = 0.0001
  norm       = 0.960819
  norm       = 0.0001
  Prefactor  = 2.42811
  Prefactor  = 30.7306
  Prefactor  = 55.0063
  Prefactor  = 2.202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02146
  Prefactor  = 0.433848
 **********
 **   18 **HESSE 
 **********

 FCN=   5669.408     FROM HESSE     STATUS=OK           665 CALLS     4428 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.974        20.353        .89679E-04   -1.4814    
   3  Prefactor     .10000E-03    41.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6733        2.1702        .12270E-03   -1.5449    
   5  Prefactor     32.417        28.094        .70377E-04   -1.4569    
   6  Prefactor     3.4682        4.0395        .15842E-03   -1.5335    
   7  Prefactor     14.921        16.518        .10367E-03   -1.4935    
   8  Prefactor     .10000E-03    8.2997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.355        11.216        .10961E-03   -1.4977    
  10  Prefactor     3.2212        3.4697        .14117E-03   -1.5349    
  11  Prefactor     4.3610        22.598        .19283E-03   -1.5290    
  12  Prefactor     .10000E-03    23.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.0793        9.0163        .81416E-03   -1.5215    
  14  norm          9.0014        6.9742        .13359E-03   -1.5108    
  15  norm          2.5921        3.4364        .15645E-03   -1.5386    
  16  norm          3.9269        3.4583        .12579E-03   -1.5312    
  17  norm          .35823        7.9834        .26716E-02   -1.5588    
  18  Prefactor     .10000E-03    5.3033        .33123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.961        31.110        .91969E-04   -1.4837    
  21  norm          4.1459        2.9075        .10188E-03   -1.5301    
  22  Prefactor     .10000E-03    17.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .96082        .77236        .57220E-04   -1.5512    
  24  norm          .10000E-03    1.1241        .77705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.4281        3.1911        .14022E-03   -1.5396    
  26  Prefactor     30.731        22.409        .72283E-04   -1.4599    
  27  Prefactor     55.006        43.098        .27039E-03   -1.4223    
  28  Prefactor     2.2020        3.6695        .17876E-03   -1.5411    
  29  Prefactor     .10000E-03    3.5698        .27140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    10.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0215        .17072        .18141E-03   -.92315    
  32  Prefactor     .43385        .17693        .29252E-03   -1.1511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20787e-08
Minuit parameter uncertainties:
  1  0.000134088
  2  20.3602
  3  0.000175463
  4  2.17034
  5  28.1059
  6  4.03985
  7  16.5229
  8  1.79994e-05
  9  11.2176
  10  3.4699
  11  19.866
  12  0.000280901
  13  9.0183
  14  6.97488
  15  3.43661
  16  3.45844
  17  3.38229
  18  6.08397e-06
  19  2.05129e-05
  20  31.1361
  21  2.90756
  22  0.000178772
  23  0.77237
  24  8.26155e-07
  25  3.19131
  26  22.4154
  27  43.1224
  28  3.66991
  29  2.11594e-05
  30  5.5225e-05
  31  0.170815
  32  0.177149
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.927e+00  3.458e+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:  4.338e-01  1.771e-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.021e+00  1.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.86
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 9.63e-09 +/- 8.48e-09
Energy Flux (Fixed Index): 2.08e-05 +/- 1.84e-05

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) = 5668.73291472
delta logL = 0.675168453351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5668.72657825
delta logL = 0.681504927335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4747       1.0000         .10000E-03   10000.    
     2 'alpha     '    .91221       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43898       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=   5668.727     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4747        3.2314        .54233E-02   -.38258E-02
   2  alpha         .91242        .48966        .43378       -.17905E-04
   3  Normalizat    1.0204        .13755        .43301E-01    .56321E-05
   4  Prefactor     .43889        .15000        .65762E-01    .34846E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.47466
  alpha      = 0.912422
  Normalizat = 1.02038
  Prefactor  = 0.43889
 **********
 **   18 **HESSE 
 **********

 FCN=   5668.727     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4747        3.9837        .12669E-03   -1.5335    
   2  alpha         .91242        .61287        .18722E-01   -.68805    
   3  Normalizat    1.0204        .16080        .18151E-03   -.92351    
   4  Prefactor     .43889        .17506        .29109E-03   -1.1487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.35947e-09
Minuit parameter uncertainties:
  1  3.98402
  2  0.62365
  3  0.160877
  4  0.175274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851860': 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) = 5668.72657794
delta logL = 0.681505237273

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.475e+00  3.984e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  9.124e-01  6.236e-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:  4.389e-01  1.753e-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.020e+00  1.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.22
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 0.91 +/- 0.62
Photon Flux (Free Index): 5.21e-09 +/- 5.44e-09
Energy Flux (Free Index): 6.79e-05 +/- 8.30e-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/851860/cmap_HighResolution_524707201_524966401_4FGL_J2324.7-4041_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.63e-09', energy_flux2='6.79e-05', photon_flux_error='8.48e-09', dlogl='6.82e-01', energy_flux='2.08e-05', photon_flux2='5.21e-09', job_status='DONE', time_completed='2021-09-29 16:58:04.419349', photon_index_error2='0.62', photon_index2='0.91', ts='8.86', fit_tolerance='1e-08', GAL='0.43', photon_index_error='0.00', energy_flux_error2='8.30e-05', EG='1.02', time_epoch_completed='1632959884.42', return_code='0', job_id='851860', GAL2='0.44', EG2='1.02', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='5.44e-09', ts2='10.22', photon_index='1.62' WHERE bin_id='1101' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:58:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 851860: <4FGL_J2324.7-4041_daily_bin1101> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1101> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:52 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:53 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:53 2021
Terminated at Wed Sep 29 16:58:05 2021
Results reported at Wed Sep 29 16:58:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1101 351.182 -40.6834 524707201 524966401 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 :                                   708.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

