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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin673
RA = 351.182, Dec = -40.6834
tmin = 413769601, tmax = 414028801
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='849662', job_status='RUN', time_executed='2021-09-29 16:44:49.849819', time_epoch_executed='1632959089.85' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849662

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849662/ft1_4FGL_J2324.7-4041_daily_bin673.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849662/ft2_4FGL_J2324.7-4041_daily_bin673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849662/ft1_4FGL_J2324.7-4041_daily_bin673.fits outfile=/scratch/kocevski/849662/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin673.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=413769601.0 tmax=414028801.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 6.31
user 6.00
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/849662/ft2_4FGL_J2324.7-4041_daily_bin673.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/849662/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin673.fits evtable="EVENTS" outfile="/scratch/kocevski/849662/ft1_filtered_4FGL_J2324.7-4041_daily_bin673.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849662/ft1_filtered_4FGL_J2324.7-4041_daily_bin673.fits" evtable="EVENTS" scfile=/scratch/kocevski/849662/ft2_4FGL_J2324.7-4041_daily_bin673.fits sctable="SC_DATA" outfile=/scratch/kocevski/849662/ltcube_413769601_414028801_4FGL_J2324.7-4041_daily_bin673.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/849662/ft2_4FGL_J2324.7-4041_daily_bin673.fits
.....................!
real 14.57
user 11.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849662/ft1_filtered_4FGL_J2324.7-4041_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/849662/ft2_4FGL_J2324.7-4041_daily_bin673.fits sctable="SC_DATA" expcube=/scratch/kocevski/849662/ltcube_413769601_414028801_4FGL_J2324.7-4041_daily_bin673.fits outfile=/scratch/kocevski/849662/expmap_413769601_414028801_4FGL_J2324.7-4041_daily_bin673.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/849662/ltcube_413769601_414028801_4FGL_J2324.7-4041_daily_bin673.fits
.....................!
real 192.42
user 185.20
sys 5.12

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/849662/ft1_filtered_4FGL_J2324.7-4041_daily_bin673.fits scfile=/scratch/kocevski/849662/ft2_4FGL_J2324.7-4041_daily_bin673.fits outfile=/scratch/kocevski/849662/cmap_413769601_414028801_4FGL_J2324.7-4041_daily_bin673.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849662/ft1_filtered_4FGL_J2324.7-4041_daily_bin673.fits scfile=/scratch/kocevski/849662/ft2_4FGL_J2324.7-4041_daily_bin673.fits outfile=/scratch/kocevski/849662/cmap_HighResolution_413769601_414028801_4FGL_J2324.7-4041_daily_bin673.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/849662/ft1_filtered_4FGL_J2324.7-4041_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/849662/ft2_4FGL_J2324.7-4041_daily_bin673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/849662/Model_4FGL_J2324.7-4041_daily_bin673.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/849662/ft1_filtered_4FGL_J2324.7-4041_daily_bin673.fits.....................!
real 32.83
user 31.14
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7419       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10821E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1626       1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.121       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.617       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.483       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.617       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.480       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    168.34       1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.584       1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.650       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10480E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.807       1.0000         .10000E-03   10000.    
    20 'Prefactor '    69.313       1.0000         .10000E-03   10000.    
    21 'norm      '    2.5381       1.0000         .10000E-03   10000.    
    22 'Prefactor '    46.213       1.0000         .10000E-03   10000.    
    23 'norm      '    14.413       1.0000         .10000E-03   10000.    
    24 'norm      '    .10475E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.693       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    62.913       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.037       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .13523E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    48.905       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .60656       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .94588       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3198.561     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     3679 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6429        22.827        .30547E-05    .42417E-02
   2  Prefactor     .10000E-03    10.594       -.61068E-06** at limit **
   3  Prefactor     .10039E-03    100.75       -.71796E-05** at limit **
   4  Prefactor     3.1621        4.7081        .38770E-06   -.18202E-04
   5  Prefactor     39.134        2.6305       -.14339E-06   -.36248E-03
   6  Prefactor     13.618        1.0759        .25208E-07   -.14863E-03
   7  Prefactor     40.468        2.9189        .15977E-06    .48498E-03
   8  Prefactor     .10001E-03    27.878        .30512E-05** at limit **
   9  Prefactor     41.596        3.5866        .22215E-06   -.21336E-02
  10  Prefactor     15.482        2.8869        .26165E-06   -.69836E-03
  11  Prefactor     .10049E-03    17.828        .21075E-06** at limit **
  12  Prefactor     168.36        5.5150       -.13087E-06   -.73507E-02
  13  Prefactor     65.529        9.2817        .46392E-06   -.46707E-02
  14  norm          .10000E-03    7.2270       -.25510E-07** at limit **
  15  norm          .10000E-03    5.1059       -.54623E-06** at limit **
  16  norm          .10000E-03    3.9288        .24422E-06** at limit **
  17  norm          12.649        3.2063        .49232E-06   -.17011E-02
  18  Prefactor     .12589E-03    353.75        .14935E-04** at limit **
  19  Prefactor     13.818        2.3703       -.19483E-06   -.38643E-03
  20  Prefactor     69.325        2.4242       -.82398E-07   -.15805E-02
  21  norm          2.5375        6.2100        .61467E-06   -.60337E-03
  22  Prefactor     46.147        9.7339        .53477E-06   -.10446E-01
  23  norm          14.413        3.5232       -.52294E-06   -.85473E-03
  24  norm          .10000E-03    5.7078       -.84031E-06** at limit **
  25  Prefactor     10.695        1.1749       -.69764E-07   -.74524E-03
  26  Prefactor     .10000E-03    13.912       -.71885E-06** at limit **
  27  Prefactor     62.906        1.9023        .54605E-07    .18732E-02
  28  Prefactor     14.037        1.0645        .35856E-07   -.21739E-03
  29  Prefactor     .10053E-03    17.021       -.26168E-05** at limit **
  30  Prefactor     48.897        2.0297        .75957E-07    .14016E-02
  31  Normalizat    .60653        .32654        .87706E-06   -.54003E-04
  32  Prefactor     .94595        .34509       -.21488E-05   -.83558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.64287
  Prefactor  = 0.0001
  Prefactor  = 0.000100387
  Prefactor  = 3.16214
  Prefactor  = 39.1338
  Prefactor  = 13.6175
  Prefactor  = 40.4685
  Prefactor  = 0.000100006
  Prefactor  = 41.5957
  Prefactor  = 15.4815
  Prefactor  = 0.000100488
  Prefactor  = 168.364
  Prefactor  = 65.5288
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.6494
  Prefactor  = 0.000125888
  Prefactor  = 13.8177
  Prefactor  = 69.3245
  norm       = 2.53746
  Prefactor  = 46.1474
  norm       = 14.4125
  norm       = 0.0001
  Prefactor  = 10.6952
  Prefactor  = 0.000100004
  Prefactor  = 62.9064
  Prefactor  = 14.037
  Prefactor  = 0.000100526
  Prefactor  = 48.8968
  Normalizat = 0.606525
  Prefactor  = 0.945949
 **********
 **   18 **HESSE 
 **********

 FCN=   3198.561     FROM HESSE     STATUS=OK           739 CALLS     4418 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6429        359.18        .46194E-02   -1.5277    
   2  Prefactor     .10000E-03    10.594        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10039E-03    100.51        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1621        4.8739        .56976E-02   -1.5352    
   5  Prefactor     39.134        73.227        .16021E-02   -1.4456    
   6  Prefactor     13.618        11.382        .27136E-02   -1.4970    
   7  Prefactor     40.468        38.921        .15750E-02   -1.4435    
   8  Prefactor     .10001E-03    27.847        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     41.596        29.814        .15535E-02   -1.4417    
  10  Prefactor     15.482        13.807        .25449E-02   -1.4921    
  11  Prefactor     .10049E-03    18.419        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     168.36        128.20        .77732E-03   -1.3106    
  13  Prefactor     65.529        39.709        .12389E-02   -1.4087    
  14  norm          .10000E-03    7.2233        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.1033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.9300        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.649        21.525        .28156E-02   -1.4996    
  18  Prefactor     .12589E-03    27.124        .90754E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.818        80.877        .26949E-02   -1.4964    
  20  Prefactor     69.325        89.509        .12054E-02   -1.4041    
  21  norm          2.5375        8.3061        .64088E-02   -1.5389    
  22  Prefactor     46.147        40.939        .14745E-02   -1.4348    
  23  norm          14.413        4.0370        .26375E-02   -1.4949    
  24  norm          .10000E-03    5.6556        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.695        7.1290        .30632E-02   -1.5054    
  26  Prefactor     .10000E-03    13.930        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     62.906        124.20        .12648E-02   -1.4120    
  28  Prefactor     14.037        10.756        .26727E-02   -1.4958    
  29  Prefactor     .10053E-03    4.2105        .60566E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     48.897        72.334        .14335E-02   -1.4308    
  31  Normalizat    .60653        .30813        .73661E-01   -1.0771    
  32  Prefactor     .94595        .30375        .45587E-01   -.94554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48819e-06
Minuit parameter uncertainties:
  1  82.1885
  2  0.000109284
  3  0.0124971
  4  4.87448
  5  73.3955
  6  11.3836
  7  38.9452
  8  0.000794931
  9  29.8251
  10  13.8099
  11  0.00599674
  12  128.412
  13  39.7255
  14  1.1591e-06
  15  2.267e-05
  16  1.11388e-05
  17  21.538
  18  0.0530212
  19  66.996
  20  89.6839
  21  8.30991
  22  40.9639
  23  4.0371
  24  3.57624e-05
  25  7.12959
  26  0.000486182
  27  124.714
  28  10.7572
  29  0.00297706
  30  72.464
  31  0.309003
  32  0.304298
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.114e-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:  9.459e-01  3.043e-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:  6.065e-01  3.090e-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: 4.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/849662/likelihoodResults_413769601_414028801_4FGL_J2324.7-4041_daily_bin673.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) = 3198.56236385
delta logL = -0.00113786244901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3198.56122599
delta logL = -1.93722371478e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6239       1.0000          .0000       5.0000    
     3 'Normalizat'    .60651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94597       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=   3198.561     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      230 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    500.55        .10943E-02** at limit **
   2  alpha         1.6313        2.5477        .50000       -.28821E-06
   3  Normalizat    .60652        .86710E-01    .32611E-03    .67980E-06
   4  Prefactor     .94595        .92927E-01    .28217E-03   -.58420E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.63127
  Normalizat = 0.606525
  Prefactor  = 0.94595
 **********
 **   18 **HESSE 
 **********

 FCN=   3198.561     FROM HESSE     STATUS=OK            29 CALLS      259 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.7815        .21886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6313        4.0890        .50000       -.35490    
   3  Normalizat    .60652        .32145        .13044E-04   -1.0771    
   4  Prefactor     .94595        .34476        .11287E-04   -.94553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04243e-09
Minuit parameter uncertainties:
  1  0.000277425
  2  276.26
  3  0.322448
  4  0.345562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849662': 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) = 3198.56122598
delta logL = 9.36324795475e-10

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  2.774e-04  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.631e+00  2.763e+02  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:  9.459e-01  3.456e-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:  6.065e-01  3.224e-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/849662/cmap_HighResolution_413769601_414028801_4FGL_J2324.7-4041_daily_bin673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-04', job_status='DONE', photon_flux_upper_limit='4.97e-08', time_completed='2021-09-29 16:55:08.299507', job_id='849662', GAL2='0.95', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632959708.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.36e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='673' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:55:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 849662: <4FGL_J2324.7-4041_daily_bin673> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin673> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 16:40:53 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:40:55 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:40:55 2021
Terminated at Wed Sep 29 16:55:09 2021
Results reported at Wed Sep 29 16:55:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin673 351.182 -40.6834 413769601 414028801 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 :                                   608.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            856 sec.

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

