/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 17 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7425
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1210
RA = 351.182, Dec = -40.6834
tmin = 552960001, tmax = 553219201
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='853103', job_status='RUN', time_executed='2021-09-29 16:50:40.371735', time_epoch_executed='1632959440.37' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1210'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853103/ft1_4FGL_J2324.7-4041_daily_bin1210.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853103/ft2_4FGL_J2324.7-4041_daily_bin1210.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853103/ft1_4FGL_J2324.7-4041_daily_bin1210.fits outfile=/scratch/kocevski/853103/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1210.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=552960001.0 tmax=553219201.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 2.81
user 2.61
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853103/ft2_4FGL_J2324.7-4041_daily_bin1210.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/853103/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1210.fits evtable="EVENTS" outfile="/scratch/kocevski/853103/ft1_filtered_4FGL_J2324.7-4041_daily_bin1210.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853103/ft1_filtered_4FGL_J2324.7-4041_daily_bin1210.fits" evtable="EVENTS" scfile=/scratch/kocevski/853103/ft2_4FGL_J2324.7-4041_daily_bin1210.fits sctable="SC_DATA" outfile=/scratch/kocevski/853103/ltcube_552960001_553219201_4FGL_J2324.7-4041_daily_bin1210.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/853103/ft2_4FGL_J2324.7-4041_daily_bin1210.fits
.....................!
real 12.30
user 11.96
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853103/ft1_filtered_4FGL_J2324.7-4041_daily_bin1210.fits evtable="EVENTS" scfile=/scratch/kocevski/853103/ft2_4FGL_J2324.7-4041_daily_bin1210.fits sctable="SC_DATA" expcube=/scratch/kocevski/853103/ltcube_552960001_553219201_4FGL_J2324.7-4041_daily_bin1210.fits outfile=/scratch/kocevski/853103/expmap_552960001_553219201_4FGL_J2324.7-4041_daily_bin1210.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/853103/ltcube_552960001_553219201_4FGL_J2324.7-4041_daily_bin1210.fits
.....................!
real 194.79
user 188.93
sys 5.48

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/853103/ft1_filtered_4FGL_J2324.7-4041_daily_bin1210.fits scfile=/scratch/kocevski/853103/ft2_4FGL_J2324.7-4041_daily_bin1210.fits outfile=/scratch/kocevski/853103/cmap_552960001_553219201_4FGL_J2324.7-4041_daily_bin1210.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853103/ft1_filtered_4FGL_J2324.7-4041_daily_bin1210.fits scfile=/scratch/kocevski/853103/ft2_4FGL_J2324.7-4041_daily_bin1210.fits outfile=/scratch/kocevski/853103/cmap_HighResolution_552960001_553219201_4FGL_J2324.7-4041_daily_bin1210.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/853103/ft1_filtered_4FGL_J2324.7-4041_daily_bin1210.fits evtable="EVENTS" scfile=/scratch/kocevski/853103/ft2_4FGL_J2324.7-4041_daily_bin1210.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853103/Model_4FGL_J2324.7-4041_daily_bin1210.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/853103/ft1_filtered_4FGL_J2324.7-4041_daily_bin1210.fits.....................!
real 39.02
user 37.74
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.197       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1379       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.253       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.380       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.631       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.689       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.170       1.0000         .10000E-03   10000.    
    15 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6162       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4054       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.9827       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9621       1.0000         .10000E-03   10000.    
    23 'norm      '    .75356       1.0000         .10000E-03   10000.    
    24 'norm      '    1.5779       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.3662       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.7451       1.0000         .10000E-03   10000.    
    30 'Prefactor '    29.417       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3799       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .50987       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=   4965.352     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     5178 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.191        51.411       -.34751E-06    .99919E-05
   2  Prefactor     5.1369        30.398       -.34002E-05   -.87420E-05
   3  Prefactor     .10000E-03    19.531        .26020E-06** at limit **
   4  Prefactor     18.251        8.8859        .51089E-06    .10962E-03
   5  Prefactor     .10000E-03    71.862        .14421E-05** at limit **
   6  Prefactor     .10000E-03    3.0630        .75754E-07** at limit **
   7  Prefactor     15.376        25.429        .47206E-06    .37342E-05
   8  Prefactor     .10000E-03    24.484        .85296E-06** at limit **
   9  Prefactor     37.631        20.145        .80150E-07    .19894E-04
  10  Prefactor     .10000E-03    73.888        .95593E-05** at limit **
  11  Prefactor     .10000E-03    16.737        .57596E-07** at limit **
  12  Prefactor     12.681        121.42        .10093E-05    .79665E-05
  13  Prefactor     .10000E-03    6.6070        .10430E-06** at limit **
  14  norm          17.170        13.402        .11321E-06    .10694E-04
  15  norm          .10000E-03    6.4272       -.54864E-07** at limit **
  16  norm          3.6164        3.6053        .13925E-06   -.16784E-04
  17  norm          .10000E-03    2.4416       -.86132E-08** at limit **
  18  Prefactor     6.4053        6.0646        .22476E-06    .47958E-04
  19  Prefactor     .10004E-03    229.56        .19343E-05** at limit **
  20  Prefactor     .10000E-03    32.897       -.95792E-07** at limit **
  21  norm          4.9829        4.3865        .15122E-05    .53954E-04
  22  Prefactor     1.9611        16.527       -.34652E-06    .34688E-05
  23  norm          .75357        .94127       -.18100E-06   -.19665E-03
  24  norm          1.5777        2.8032        .26655E-06   -.67855E-04
  25  Prefactor     .10000E-03    1.3604       -.29364E-07** at limit **
  26  Prefactor     .10000E-03    29.320       -.69261E-06** at limit **
  27  Prefactor     .10000E-03    16.828       -.17238E-06** at limit **
  28  Prefactor     4.3660        7.0481        .30922E-06   -.26041E-04
  29  Prefactor     1.7451        3.7831        .12625E-05    .11946E-03
  30  Prefactor     29.413        43.062       -.99860E-06   -.34231E-06
  31  Normalizat    1.3799        .20218        .73152E-06   -.23194E-04
  32  Prefactor     .50989        .21247       -.15276E-05    .46262E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1908
  Prefactor  = 5.13687
  Prefactor  = 0.0001
  Prefactor  = 18.2514
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 15.3756
  Prefactor  = 0.0001
  Prefactor  = 37.6313
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.6811
  Prefactor  = 0.0001
  norm       = 17.1704
  norm       = 0.0001
  norm       = 3.61642
  norm       = 0.0001
  Prefactor  = 6.40528
  Prefactor  = 0.000100036
  Prefactor  = 0.0001
  norm       = 4.98294
  Prefactor  = 1.96106
  norm       = 0.753565
  norm       = 1.57766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.36604
  Prefactor  = 1.74512
  Prefactor  = 29.4126
  Normalizat = 1.37986
  Prefactor  = 0.50989
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.352     FROM HESSE     STATUS=OK           667 CALLS     5845 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.191        51.478        .91413E-04   -1.4832    
   2  Prefactor     5.1369        31.409        .88683E-03   -1.5255    
   3  Prefactor     .10000E-03    19.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.251        8.8792        .93747E-04   -1.4853    
   5  Prefactor     .10000E-03    71.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0649        .12043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.376        25.424        .10213E-03   -1.4924    
   8  Prefactor     .10000E-03    24.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.631        20.200        .65335E-04   -1.4480    
  10  Prefactor     .10000E-03    82.280        .33239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.681        121.55        .11245E-03   -1.4996    
  13  Prefactor     .10000E-03    6.6429        .17688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.170        13.401        .96658E-04   -1.4879    
  15  norm          .10000E-03    6.4884        .17392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6164        3.6232        .64999E-03   -1.5328    
  17  norm          .10000E-03    2.4437        .10753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.4053        6.1533        .14606E-03   -1.5202    
  19  Prefactor     .10004E-03    232.27        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    32.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.9829        4.3854        .13043E-03   -1.5261    
  22  Prefactor     1.9611        20.900        .14806E-02   -1.5428    
  23  norm          .75357        .88996        .72211E-03   -1.5534    
  24  norm          1.5777        2.7537        .15002E-03   -1.5457    
  25  Prefactor     .10000E-03    1.3764        .80229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    29.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    16.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.3660        7.0771        .19276E-03   -1.5290    
  29  Prefactor     1.7451        5.3528        .11712E-02   -1.5444    
  30  Prefactor     29.413        42.964        .73869E-04   -1.4623    
  31  Normalizat    1.3799        .23997        .20502E-03   -.81213    
  32  Prefactor     .50989        .24227        .34422E-03   -1.1153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8379e-10
Minuit parameter uncertainties:
  1  51.5976
  2  25.4237
  3  1.02455e-05
  4  8.87982
  5  0.000462618
  6  1.61827e-06
  7  25.4421
  8  4.17297e-05
  9  20.2034
  10  0.00069243
  11  1.00082e-05
  12  78.7313
  13  5.3197e-06
  14  13.4029
  15  2.06901e-05
  16  3.62337
  17  3.01685e-06
  18  6.15393
  19  0.00578772
  20  1.92103e-07
  21  4.38568
  22  12.8095
  23  0.889979
  24  2.7539
  25  1.18632e-06
  26  4.61975e-05
  27  9.57243e-06
  28  7.07845
  29  5.35429
  30  43.0095
  31  0.240163
  32  0.242761
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.616e+00  3.623e+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:  5.099e-01  2.428e-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.380e+00  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.77
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 8.87e-09 +/- 8.88e-09
Energy Flux (Fixed Index): 1.92e-05 +/- 1.92e-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) = 4964.41215892
delta logL = 0.93935317508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4964.24559763
delta logL = 1.1059144703

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5470       1.0000         .10000E-03   10000.    
     2 'alpha     '    .47523       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3802       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51402       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=   4964.246     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      210 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5471        1.7610        .85643E-02    .32730E-03
   2  alpha         .47504        .61434        .50000        .52239E-05
   3  Normalizat    1.3802        .19151        .46375E-01   -.12200E-05
   4  Prefactor     .51398        .20566        .77444E-01    .28980E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.54709
  alpha      = 0.475038
  Normalizat = 1.38025
  Prefactor  = 0.513985
 **********
 **   18 **HESSE 
 **********

 FCN=   4964.246     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5471        2.5178        .84485E-04   -1.5459    
   2  alpha         .47504        .73356        .25796E-01   -.94413    
   3  Normalizat    1.3802        .22143        .20500E-03   -.81202    
   4  Prefactor     .51398        .23716        .34296E-03   -1.1134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00882e-10
Minuit parameter uncertainties:
  1  2.51797
  2  0.768232
  3  0.221587
  4  0.237622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853103': 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) = 4964.24559751
delta logL = 1.10591458416

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.547e+00  2.518e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  4.750e-01  7.682e-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:  5.140e-01  2.376e-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.380e+00  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.98
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 0.48 +/- 0.77
Photon Flux (Free Index): 3.47e-09 +/- 3.52e-09
Energy Flux (Free Index): 9.23e-05 +/- 1.18e-04

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/853103/cmap_HighResolution_552960001_553219201_4FGL_J2324.7-4041_daily_bin1210.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.87e-09', energy_flux2='9.23e-05', photon_flux_error='8.88e-09', dlogl='1.11e+00', energy_flux='1.92e-05', photon_flux2='3.47e-09', job_status='DONE', time_completed='2021-09-29 17:03:02.627544', photon_index_error2='0.77', photon_index2='0.48', ts='7.77', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', energy_flux_error2='1.18e-04', EG='1.38', time_epoch_completed='1632960182.63', return_code='0', job_id='853103', GAL2='0.51', EG2='1.38', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='3.52e-09', ts2='9.98', photon_index='1.62' WHERE bin_id='1210' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:03:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 853103: <4FGL_J2324.7-4041_daily_bin1210> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1210 351.182 -40.6834 552960001 553219201 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.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            770 sec.

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

