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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin465
RA = 351.182, Dec = -40.6834
tmin = 359856001, tmax = 360115201
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='849336', job_status='RUN', time_executed='2021-09-29 16:43:18.633269', time_epoch_executed='1632958998.63' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849336

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849336/ft1_4FGL_J2324.7-4041_daily_bin465.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849336/ft2_4FGL_J2324.7-4041_daily_bin465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849336/ft1_4FGL_J2324.7-4041_daily_bin465.fits outfile=/scratch/kocevski/849336/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin465.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=359856001.0 tmax=360115201.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.24
user 3.01
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/849336/ft2_4FGL_J2324.7-4041_daily_bin465.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/849336/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin465.fits evtable="EVENTS" outfile="/scratch/kocevski/849336/ft1_filtered_4FGL_J2324.7-4041_daily_bin465.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/849336/ft1_filtered_4FGL_J2324.7-4041_daily_bin465.fits" evtable="EVENTS" scfile=/scratch/kocevski/849336/ft2_4FGL_J2324.7-4041_daily_bin465.fits sctable="SC_DATA" outfile=/scratch/kocevski/849336/ltcube_359856001_360115201_4FGL_J2324.7-4041_daily_bin465.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/849336/ft2_4FGL_J2324.7-4041_daily_bin465.fits
.....................!
real 12.05
user 11.63
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849336/ft1_filtered_4FGL_J2324.7-4041_daily_bin465.fits evtable="EVENTS" scfile=/scratch/kocevski/849336/ft2_4FGL_J2324.7-4041_daily_bin465.fits sctable="SC_DATA" expcube=/scratch/kocevski/849336/ltcube_359856001_360115201_4FGL_J2324.7-4041_daily_bin465.fits outfile=/scratch/kocevski/849336/expmap_359856001_360115201_4FGL_J2324.7-4041_daily_bin465.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/849336/ltcube_359856001_360115201_4FGL_J2324.7-4041_daily_bin465.fits
.....................!
real 190.11
user 184.81
sys 4.64

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/849336/ft1_filtered_4FGL_J2324.7-4041_daily_bin465.fits scfile=/scratch/kocevski/849336/ft2_4FGL_J2324.7-4041_daily_bin465.fits outfile=/scratch/kocevski/849336/cmap_359856001_360115201_4FGL_J2324.7-4041_daily_bin465.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/849336/ft1_filtered_4FGL_J2324.7-4041_daily_bin465.fits scfile=/scratch/kocevski/849336/ft2_4FGL_J2324.7-4041_daily_bin465.fits outfile=/scratch/kocevski/849336/cmap_HighResolution_359856001_360115201_4FGL_J2324.7-4041_daily_bin465.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/849336/ft1_filtered_4FGL_J2324.7-4041_daily_bin465.fits evtable="EVENTS" scfile=/scratch/kocevski/849336/ft2_4FGL_J2324.7-4041_daily_bin465.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/849336/Model_4FGL_J2324.7-4041_daily_bin465.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/849336/ft1_filtered_4FGL_J2324.7-4041_daily_bin465.fits.....................!
real 46.88
user 45.50
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/849336/ft1_filtered_4FGL_J2324.7-4041_daily_bin465.fits', '/scratch/kocevski/849336/ft2_4FGL_J2324.7-4041_daily_bin465.fits', expMap='/scratch/kocevski/849336/expmap_359856001_360115201_4FGL_J2324.7-4041_daily_bin465.fits', expCube='/scratch/kocevski/849336/ltcube_359856001_360115201_4FGL_J2324.7-4041_daily_bin465.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/849336/Model_4FGL_J2324.7-4041_daily_bin465.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/849336/ft1_filtered_4FGL_J2324.7-4041_daily_bin465.fits
Spacecraft file(s): /scratch/kocevski/849336/ft2_4FGL_J2324.7-4041_daily_bin465.fits
Exposure map: /scratch/kocevski/849336/expmap_359856001_360115201_4FGL_J2324.7-4041_daily_bin465.fits
Exposure cube: /scratch/kocevski/849336/ltcube_359856001_360115201_4FGL_J2324.7-4041_daily_bin465.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/849336/Model_4FGL_J2324.7-4041_daily_bin465.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6569.66748455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11366E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .48140       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.821       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7264       1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.053       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .92487       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.491       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9013       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .81778       1.0000         .10000E-03   10000.    
    16 'norm      '    4.0798       1.0000         .10000E-03   10000.    
    17 'norm      '    8.8772       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.584       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18586E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.892       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.665       1.0000         .10000E-03   10000.    
    23 'norm      '    6.5520       1.0000         .10000E-03   10000.    
    24 'norm      '    2.0374       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .47623       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .16520E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .80573       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .81511       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=   6569.538     FROM MIGRAD    STATUS=CONVERGED    851 CALLS     3745 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    83.747       -.10799E-04** at limit **
   2  Prefactor     .59446        18.519        .77366E-05   -.65241E-03
   3  Prefactor     .10000E-03    11.763        .22615E-06** at limit **
   4  Prefactor     .10000E-03    1.0721       -.11706E-07** at limit **
   5  Prefactor     13.822        20.549        .99507E-07    .61808E-05
   6  Prefactor     .10000E-03    2.7193       -.33321E-09** at limit **
   7  Prefactor     .10000E-03    24.749       -.15795E-05** at limit **
   8  Prefactor     2.7421        34.125        .22388E-05    .43216E-04
   9  Prefactor     43.059        13.726        .96906E-07    .38602E-04
  10  Prefactor     .92598        4.1827        .84645E-06    .14216E-03
  11  Prefactor     .10000E-03    13.080       -.39687E-06** at limit **
  12  Prefactor     16.492        27.533        .62799E-07    .22638E-05
  13  Prefactor     2.9046        8.5176        .53361E-05    .64033E-03
  14  norm          .10000E-03    5.7230       -.48449E-07** at limit **
  15  norm          .81713        6.4037        .13421E-05    .17887E-03
  16  norm          4.0784        3.0776        .53375E-07    .10496E-03
  17  norm          8.8777        6.4593        .45682E-06    .14507E-03
  18  Prefactor     15.586        9.1577       -.68033E-07   -.48314E-04
  19  Prefactor     .10000E-03    25.297       -.96372E-06** at limit **
  20  Prefactor     31.890        27.861        .49760E-07   -.14991E-04
  21  norm          .10000E-03    .86222        .41149E-08** at limit **
  22  Prefactor     18.662        19.525       -.16556E-07   -.63654E-04
  23  norm          6.5522        1.7320       -.11825E-06   -.32177E-03
  24  norm          2.0364        2.3066        .10086E-06    .11487E-03
  25  Prefactor     .47591        3.6377        .10568E-05    .83836E-04
  26  Prefactor     .10000E-03    17.285        .10583E-05** at limit **
  27  Prefactor     .10001E-03    122.84        .12523E-04** at limit **
  28  Prefactor     .10000E-03    1.4618       -.23747E-07** at limit **
  29  Prefactor     .10000E-03    .98683        .24014E-07** at limit **
  30  Prefactor     .10000E-03    11.858       -.16423E-06** at limit **
  31  Normalizat    .80567        .14718       -.20900E-06   -.77648E-04
  32  Prefactor     .81498        .16201       -.51702E-06   -.99606E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 0.594456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.74209
  Prefactor  = 43.0587
  Prefactor  = 0.925983
  Prefactor  = 0.0001
  Prefactor  = 16.4923
  Prefactor  = 2.90462
  norm       = 0.0001
  norm       = 0.817126
  norm       = 4.07844
  norm       = 8.87771
  Prefactor  = 15.5862
  Prefactor  = 0.0001
  Prefactor  = 31.8895
  norm       = 0.0001
  Prefactor  = 18.6617
  norm       = 6.55224
  norm       = 2.03643
  Prefactor  = 0.475914
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.805671
  Prefactor  = 0.814979
 **********
 **   18 **HESSE 
 **********

 FCN=   6569.538     FROM HESSE     STATUS=OK           663 CALLS     4408 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    84.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .59446        57.535        .46604E-02   -1.5554    
   3  Prefactor     .10000E-03    11.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0843        .81926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.822        20.524        .10774E-03   -1.4964    
   6  Prefactor     .10000E-03    2.7433        .13051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7421        33.943        .24662E-03   -1.5377    
   9  Prefactor     43.059        13.739        .61097E-04   -1.4395    
  10  Prefactor     .92598        4.1616        .31827E-03   -1.5516    
  11  Prefactor     .10000E-03    13.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.492        27.529        .98626E-04   -1.4896    
  13  Prefactor     2.9046        8.8258        .11928E-02   -1.5367    
  14  norm          .10000E-03    5.7428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .81713        6.2549        .38738E-03   -1.5527    
  16  norm          4.0784        3.0781        .12030E-03   -1.5304    
  17  norm          8.8777        6.4575        .13453E-03   -1.5112    
  18  Prefactor     15.586        9.1364        .10146E-03   -1.4918    
  19  Prefactor     .10000E-03    26.315        .40587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.890        27.885        .70952E-04   -1.4578    
  21  norm          .10000E-03    .86690        .73447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.662        19.519        .92707E-04   -1.4844    
  23  norm          6.5522        1.7244        .48529E-04   -1.5196    
  24  norm          2.0364        2.2924        .12666E-03   -1.5423    
  25  Prefactor     .47591        3.7162        .29266E-03   -1.5570    
  26  Prefactor     .10000E-03    17.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    123.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.4711        .95679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    .99213        .78580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    11.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .80567        .17503        .22228E-03   -.99859    
  32  Prefactor     .81498        .19274        .24857E-03   -.99179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72383e-09
Minuit parameter uncertainties:
  1  0.00131795
  2  11.7071
  3  1.24323e-05
  4  9.5968e-07
  5  20.5341
  6  7.77759e-08
  7  0.000177909
  8  19.3084
  9  13.7396
  10  3.92637
  11  2.23833e-05
  12  27.5506
  13  8.82974
  14  1.81337e-06
  15  4.52191
  16  3.07824
  17  6.458
  18  9.13724
  19  2.5063e-05
  20  27.896
  21  1.43146e-07
  22  19.5256
  23  1.72443
  24  2.29245
  25  2.65971
  26  3.0311e-05
  27  0.00181694
  28  1.14133e-06
  29  2.58616e-06
  30  1.29759e-05
  31  0.175154
  32  0.192904
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  4.078e+00  3.078e+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:  8.150e-01  1.929e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  8.057e-01  1.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.74
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.00e-08 +/- 7.55e-09
Energy Flux (Fixed Index): 2.16e-05 +/- 1.63e-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) = 6569.42281382
delta logL = 0.115480659018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6569.41794064
delta logL = 0.120353839578

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4977       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3813       1.0000          .0000       5.0000    
     3 'Normalizat'    .80600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81597       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=   6569.418     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      221 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4992        134.55        .47461E-02   -.14953E-03
   2  alpha         1.3810        3.0374        .39083        .23501E-04
   3  Normalizat    .80610        .99437E-01    .43689E-01   -.69922E-05
   4  Prefactor     .81587        .95447E-01    .43925E-01    .34826E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.49919
  alpha      = 1.38098
  Normalizat = 0.806103
  Prefactor  = 0.815874
 **********
 **   18 **HESSE 
 **********

 FCN=   6569.418     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4992        3.4255        .12700E-03   -1.5284    
   2  alpha         1.3810        .48783        .14485E-01   -.46409    
   3  Normalizat    .80610        .16886        .22223E-03   -.99843    
   4  Prefactor     .81587        .19111        .24845E-03   -.99146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19898e-11
Minuit parameter uncertainties:
  1  3.42565
  2  0.491792
  3  0.168968
  4  0.191265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849336': 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) = 6569.41794018
delta logL = 0.120354301585

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  4.499e+00  3.426e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.381e+00  4.918e-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:  8.159e-01  1.913e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  8.061e-01  1.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.98
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 1.38 +/- 0.49
Photon Flux (Free Index): 8.05e-09 +/- 7.00e-09
Energy Flux (Free Index): 3.36e-05 +/- 3.95e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/849336/cmap_HighResolution_359856001_360115201_4FGL_J2324.7-4041_daily_bin465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-08', energy_flux2='3.36e-05', photon_flux_error='7.55e-09', dlogl='1.20e-01', energy_flux='2.16e-05', photon_flux2='8.05e-09', job_status='DONE', time_completed='2021-09-29 16:56:09.182307', photon_index_error2='0.49', photon_index2='1.38', ts='7.74', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='3.95e-05', EG='0.81', time_epoch_completed='1632959769.18', return_code='0', job_id='849336', GAL2='0.82', EG2='0.81', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='7.00e-09', ts2='7.98', photon_index='1.62' WHERE bin_id='465' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:56:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 849336: <4FGL_J2324.7-4041_daily_bin465> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin465 351.182 -40.6834 359856001 360115201 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 :                                   767.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            945 sec.

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

