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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1040
RA = 351.182, Dec = -40.6834
tmin = 508896001, tmax = 509155201
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='851763', job_status='RUN', time_executed='2021-09-29 16:46:38.254947', time_epoch_executed='1632959198.25' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851763

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851763/ft1_4FGL_J2324.7-4041_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851763/ft2_4FGL_J2324.7-4041_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851763/ft1_4FGL_J2324.7-4041_daily_bin1040.fits outfile=/scratch/kocevski/851763/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1040.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=508896001.0 tmax=509155201.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.80
user 3.51
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851763/ft2_4FGL_J2324.7-4041_daily_bin1040.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/851763/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1040.fits evtable="EVENTS" outfile="/scratch/kocevski/851763/ft1_filtered_4FGL_J2324.7-4041_daily_bin1040.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851763/ft1_filtered_4FGL_J2324.7-4041_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/851763/ft2_4FGL_J2324.7-4041_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/851763/ltcube_508896001_509155201_4FGL_J2324.7-4041_daily_bin1040.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/851763/ft2_4FGL_J2324.7-4041_daily_bin1040.fits
.....................!
real 11.71
user 11.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851763/ft1_filtered_4FGL_J2324.7-4041_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/851763/ft2_4FGL_J2324.7-4041_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/851763/ltcube_508896001_509155201_4FGL_J2324.7-4041_daily_bin1040.fits outfile=/scratch/kocevski/851763/expmap_508896001_509155201_4FGL_J2324.7-4041_daily_bin1040.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/851763/ltcube_508896001_509155201_4FGL_J2324.7-4041_daily_bin1040.fits
.....................!
real 193.13
user 187.49
sys 5.21

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/851763/ft1_filtered_4FGL_J2324.7-4041_daily_bin1040.fits scfile=/scratch/kocevski/851763/ft2_4FGL_J2324.7-4041_daily_bin1040.fits outfile=/scratch/kocevski/851763/cmap_508896001_509155201_4FGL_J2324.7-4041_daily_bin1040.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/851763/ft1_filtered_4FGL_J2324.7-4041_daily_bin1040.fits scfile=/scratch/kocevski/851763/ft2_4FGL_J2324.7-4041_daily_bin1040.fits outfile=/scratch/kocevski/851763/cmap_HighResolution_508896001_509155201_4FGL_J2324.7-4041_daily_bin1040.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851763/ft1_filtered_4FGL_J2324.7-4041_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/851763/ft2_4FGL_J2324.7-4041_daily_bin1040.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851763/Model_4FGL_J2324.7-4041_daily_bin1040.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/851763/ft1_filtered_4FGL_J2324.7-4041_daily_bin1040.fits.....................!
real 38.04
user 36.13
sys 1.70

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    127.05       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.697       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.772       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.074       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6278       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.669       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    20.541       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0750       1.0000         .10000E-03   10000.    
    19 'Prefactor '    72.610       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.2279       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.4386       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0812       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1584       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=   4326.946     FROM MIGRAD    STATUS=CONVERGED    831 CALLS     4386 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     127.09        94.132        .33560E-06    .82327E-04
   2  Prefactor     .10000E-03    10.822        .10126E-06** at limit **
   3  Prefactor     16.708        38.950        .20331E-06    .21327E-04
   4  Prefactor     .10000E-03    1.2251       -.20188E-08** at limit **
   5  Prefactor     .10000E-03    13.391       -.83391E-07** at limit **
   6  Prefactor     14.771        10.550       -.94758E-07    .11126E-04
   7  Prefactor     43.085        30.552       -.76615E-07    .27275E-04
   8  Prefactor     .10000E-03    25.813       -.18223E-07** at limit **
   9  Prefactor     3.6280        27.306        .24907E-06    .21698E-05
  10  Prefactor     .10000E-03    3.5605       -.52643E-07** at limit **
  11  Prefactor     .10000E-03    14.969        .48071E-08** at limit **
  12  Prefactor     .10000E-03    100.50       -.89567E-07** at limit **
  13  Prefactor     12.669        21.407       -.22595E-06    .95157E-05
  14  norm          .10000E-03    6.5954       -.87929E-07** at limit **
  15  norm          .10000E-03    3.9761        .11906E-07** at limit **
  16  norm          .10000E-03    3.4130       -.77494E-06** at limit **
  17  norm          20.536        14.321       -.30178E-07    .58143E-04
  18  Prefactor     6.0751        7.7529       -.51659E-07    .21856E-04
  19  Prefactor     72.551        59.620        .87154E-06    .10023E-03
  20  Prefactor     .10000E-03    54.830        .97921E-07** at limit **
  21  norm          .10000E-03    8.5142       -.55488E-05** at limit **
  22  Prefactor     .10000E-03    12.422       -.28472E-06** at limit **
  23  norm          .10000E-03    .64920       -.30002E-07** at limit **
  24  norm          1.2326        4.6456       -.24635E-06    .10444E-03
  25  Prefactor     2.4387        4.1044        .13314E-06   -.60152E-05
  26  Prefactor     .10000E-03    15.251       -.54948E-07** at limit **
  27  Prefactor     .10000E-03    26.984       -.17779E-06** at limit **
  28  Prefactor     .10000E-03    6.7614        .20545E-06** at limit **
  29  Prefactor     .10000E-03    3.4552       -.10535E-07** at limit **
  30  Prefactor     .10000E-03    23.284        .24218E-06** at limit **
  31  Normalizat    1.0816        .25039        .28390E-05    .36428E-04
  32  Prefactor     1.1578        .25388       -.25879E-05    .18897E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 127.089
  Prefactor  = 0.0001
  Prefactor  = 16.7084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7708
  Prefactor  = 43.0854
  Prefactor  = 0.0001
  Prefactor  = 3.62804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6692
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 20.5358
  Prefactor  = 6.07508
  Prefactor  = 72.5514
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.23256
  Prefactor  = 2.43872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08161
  Prefactor  = 1.15781
 **********
 **   18 **HESSE 
 **********

 FCN=   4326.946     FROM HESSE     STATUS=OK           643 CALLS     5029 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     127.09        94.319        .17858E-03   -1.3448    
   2  Prefactor     .10000E-03    10.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.708        38.948        .98017E-04   -1.4890    
   4  Prefactor     .10000E-03    1.2277        .71101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.771        10.569        .10421E-03   -1.4939    
   7  Prefactor     43.085        30.547        .61083E-04   -1.4394    
   8  Prefactor     .10000E-03    25.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6280        27.289        .21212E-03   -1.5327    
  10  Prefactor     .10000E-03    3.5698        .12122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    100.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.669        21.408        .11254E-03   -1.4996    
  14  norm          .10000E-03    6.5984        .16500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9932        .12807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.4207        .11861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          20.536        14.339        .88375E-04   -1.4801    
  18  Prefactor     6.0751        7.7358        .16289E-03   -1.5215    
  19  Prefactor     72.551        60.102        .47114E-04   -1.4002    
  20  Prefactor     .10000E-03    54.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    8.7669        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .66689        .10320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.2326        4.5297        .25361E-03   -1.5486    
  25  Prefactor     2.4387        4.0892        .16631E-03   -1.5396    
  26  Prefactor     .10000E-03    15.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    26.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.9320        .33387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.4820        .11935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    23.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0816        .29553        .26136E-03   -.90344    
  32  Prefactor     1.1578        .29829        .27355E-03   -.87640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67414e-10
Minuit parameter uncertainties:
  1  94.4309
  2  2.75681e-05
  3  39.0077
  4  2.97056e-08
  5  3.01123e-05
  6  10.5708
  7  30.5577
  8  3.796e-05
  9  19.9127
  10  2.01224e-08
  11  6.91453e-07
  12  1.29881e-05
  13  21.4205
  14  4.41467e-06
  15  1.05804e-06
  16  9.11529e-07
  17  14.3419
  18  7.73712
  19  60.1519
  20  5.38889e-05
  21  5.22056e-05
  22  2.97188e-05
  23  6.57745e-07
  24  4.53091
  25  4.0897
  26  1.28035e-06
  27  0.000103003
  28  4.54515e-07
  29  5.46993e-06
  30  9.98544e-05
  31  0.295987
  32  0.298725
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  9.115e-07  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:  1.158e+00  2.987e-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.082e+00  2.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/851763/likelihoodResults_508896001_509155201_4FGL_J2324.7-4041_daily_bin1040.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) = 4326.94763538
delta logL = -0.0013448260861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4326.94629062
delta logL = -7.00056261849e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6415       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1579       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=   4326.946     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.5666        .90712E-02** at limit **
   2  alpha         1.6605        3.2186        .44738       -.25280E-04
   3  Normalizat    1.0816        .22213        .59096E-01    .29945E-05
   4  Prefactor     1.1578        .24060        .61850E-01    .31000E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.66047
  Normalizat = 1.08162
  Prefactor  = 1.15781
 **********
 **   18 **HESSE 
 **********

 FCN=   4326.946     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5928        .12022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6605        3.3010        .50000       -.34247    
   3  Normalizat    1.0816        .27005        .26135E-03   -.90344    
   4  Prefactor     1.1578        .29251        .27355E-03   -.87640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47298e-10
Minuit parameter uncertainties:
  1  3.14343e-05
  2  2.38236
  3  0.270392
  4  0.292915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851763': 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) = 4326.94629016
delta logL = 3.93142727262e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.143e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.660e+00  2.382e+00  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.158e+00  2.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:  1.082e+00  2.704e-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/851763/cmap_HighResolution_508896001_509155201_4FGL_J2324.7-4041_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.61e-05', job_status='DONE', photon_flux_upper_limit='3.98e-08', time_completed='2021-09-29 16:58:43.800579', job_id='851763', GAL2='1.16', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632959923.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='3.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1040' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:58:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 851763: <4FGL_J2324.7-4041_daily_bin1040> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1040 351.182 -40.6834 508896001 509155201 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 :                                   711.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            782 sec.

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

