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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1171
RA = 351.182, Dec = -40.6834
tmin = 542851201, tmax = 543110401
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='851966', job_status='RUN', time_executed='2021-09-29 16:47:56.319198', time_epoch_executed='1632959276.32' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851966

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851966/ft1_4FGL_J2324.7-4041_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851966/ft2_4FGL_J2324.7-4041_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851966/ft1_4FGL_J2324.7-4041_daily_bin1171.fits outfile=/scratch/kocevski/851966/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1171.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.76
user 0.60
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851966/ft1_filtered_4FGL_J2324.7-4041_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/851966/ft2_4FGL_J2324.7-4041_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/851966/ltcube_542851201_543110401_4FGL_J2324.7-4041_daily_bin1171.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/851966/ft2_4FGL_J2324.7-4041_daily_bin1171.fits
.....................!
real 1.85
user 1.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851966/ft1_filtered_4FGL_J2324.7-4041_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/851966/ft2_4FGL_J2324.7-4041_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/851966/ltcube_542851201_543110401_4FGL_J2324.7-4041_daily_bin1171.fits outfile=/scratch/kocevski/851966/expmap_542851201_543110401_4FGL_J2324.7-4041_daily_bin1171.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/851966/ltcube_542851201_543110401_4FGL_J2324.7-4041_daily_bin1171.fits
.....................!
real 189.98
user 185.29
sys 4.33

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/851966/ft1_filtered_4FGL_J2324.7-4041_daily_bin1171.fits scfile=/scratch/kocevski/851966/ft2_4FGL_J2324.7-4041_daily_bin1171.fits outfile=/scratch/kocevski/851966/cmap_542851201_543110401_4FGL_J2324.7-4041_daily_bin1171.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.52
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851966/ft1_filtered_4FGL_J2324.7-4041_daily_bin1171.fits scfile=/scratch/kocevski/851966/ft2_4FGL_J2324.7-4041_daily_bin1171.fits outfile=/scratch/kocevski/851966/cmap_HighResolution_542851201_543110401_4FGL_J2324.7-4041_daily_bin1171.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.52
user 0.36
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.838       1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.223       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37842E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    68.075       1.0000         .10000E-03   10000.    
    17 'norm      '    42.563       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    217.54       1.0000         .10000E-03   10000.    
    21 'norm      '    14.926       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.8188       1.0000         .10000E-03   10000.    
    24 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.642       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10726E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .63202E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    17.522       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .36948       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=   165.7150     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     4274 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    142.03       -.74829E-05** at limit **
   2  Prefactor     .10000E-03    202.09       -.29581E-05** at limit **
   3  Prefactor     .10000E-03    94.149        .47103E-05** at limit **
   4  Prefactor     .10000E-03    8.1764       -.24764E-07** at limit **
   5  Prefactor     .10000E-03    110.65        .12223E-07** at limit **
   6  Prefactor     .10000E-03    17.744        .33572E-05** at limit **
   7  Prefactor     .10000E-03    54.107       -.49304E-06** at limit **
   8  Prefactor     .10000E-03    47.630       -.19613E-05** at limit **
   9  Prefactor     49.836        56.349        .14657E-06    .66721E-05
  10  Prefactor     37.198        39.110        .45293E-06    .79929E-05
  11  Prefactor     .10000E-03    114.02       -.93041E-06** at limit **
  12  Prefactor     .10000E-03    811.27        .21449E-04** at limit **
  13  Prefactor     .10000E-03    46.035       -.83553E-06** at limit **
  14  norm          .10000E-03    79.593        .69078E-05** at limit **
  15  norm          .10000E-03    34.058        .15281E-05** at limit **
  16  norm          68.058        66.550        .15093E-05    .18890E-04
  17  norm          42.599        79.940       -.68669E-05    .18452E-04
  18  Prefactor     .10000E-03    20.344       -.75788E-06** at limit **
  19  Prefactor     .10000E-03    122.16       -.33491E-05** at limit **
  20  Prefactor     217.42        319.58        .10161E-04   -.20288E-05
  21  norm          14.924        28.201        .13475E-05    .72200E-04
  22  Prefactor     .10000E-03    38.547        .11891E-05** at limit **
  23  norm          4.7947        15.813       -.15207E-04   -.11901E-03
  24  norm          .10000E-03    16.997       -.28996E-05** at limit **
  25  Prefactor     14.763        95.847        .36674E-04   -.52789E-04
  26  Prefactor     .10000E-03    278.73        .23967E-04** at limit **
  27  Prefactor     .10002E-03    1191.9        .29195E-04** at limit **
  28  Prefactor     .10000E-03    15.628        .87480E-07** at limit **
  29  Prefactor     17.499        29.433       -.68689E-05   -.16651E-04
  30  Prefactor     .10000E-03    168.44       -.89882E-05** at limit **
  31  Normalizat    .10000E-01    .60451       -.55124E-05** at limit **
  32  Prefactor     .36933        .34648        .26848E-05    .53843E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.8358
  Prefactor  = 37.1984
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 68.0582
  norm       = 42.5986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 217.417
  norm       = 14.9239
  Prefactor  = 0.0001
  norm       = 4.79472
  norm       = 0.0001
  Prefactor  = 14.7635
  Prefactor  = 0.000100001
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 17.4986
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.36933
 **********
 **   18 **HESSE 
 **********

 FCN=   165.7150     FROM HESSE     STATUS=OK           635 CALLS     4909 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    142.01        .15039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    202.03        .17950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    94.134        .12235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1763        .36006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    110.65        .13268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.739        .53043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    54.107        .92695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    47.627        .86957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.836        56.323        .56805E-04   -1.4295    
  10  Prefactor     37.198        39.091        .65690E-04   -1.4487    
  11  Prefactor     .10000E-03    114.02        .13470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    812.25        .21289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.007        .85466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    79.570        .11243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    34.062        .73520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          68.058        66.618        .48648E-04   -1.4056    
  17  norm          42.599        79.779        .61447E-04   -1.4402    
  18  Prefactor     .10000E-03    20.335        .56793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    122.16        .13943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     217.42        317.87        .13710E-03   -1.2748    
  21  norm          14.924        28.172        .84150E-04   -1.4935    
  22  Prefactor     .10000E-03    38.547        .78219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.7947        15.769        .39101E-04   -1.5270    
  24  norm          .10000E-03    17.004        .51907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     14.763        95.061        .99209E-04   -1.4939    
  26  Prefactor     .10000E-03    279.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10002E-03    1187.9        .21036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    15.628        .49784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     17.499        29.290        .72165E-04   -1.4871    
  30  Prefactor     .10000E-03    168.48        .16388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .64865        .56010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .36933        .33424        .19225E-03   -1.1840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07307e-10
Minuit parameter uncertainties:
  1  9.04421e-05
  2  4.03521e-05
  3  6.2151e-05
  4  6.60569e-07
  5  1.21568e-06
  6  1.33553e-05
  7  7.94102e-06
  8  1.90985e-05
  9  56.3832
  10  39.1182
  11  2.24705e-05
  12  0.00162106
  13  0.000120727
  14  8.05937e-05
  15  1.42114e-05
  16  66.6908
  17  79.9801
  18  3.96362e-05
  19  4.3793e-05
  20  320.439
  21  28.1969
  22  4.18455e-05
  23  15.7826
  24  1.34009e-06
  25  75.0998
  26  0.000954801
  27  0.00915925
  28  2.37116e-05
  29  29.3138
  30  3.09012e-06
  31  8.55575e-06
  32  0.336018
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  6.806e+01  6.669e+01  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:  3.693e-01  3.360e-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.000e-02  8.556e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.11
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.67e-07 +/- 1.63e-07
Energy Flux (Fixed Index): 3.61e-04 +/- 3.54e-04

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) = 165.710563128
delta logL = 0.00442217897063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 165.70934688
delta logL = 0.00563842743168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    65.541       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7063       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .36030       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=   165.7093     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      194 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          65.550        65.742        .10923E-04   -.44743E-03
   2  alpha         1.7061        .71962       -.31683E-04   -.15330E-03
   3  Normalizat    .10000E-01    .55833        .25459E-05** at limit **
   4  Prefactor     .36031        .32075        .16070E-05    .20465E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 65.5495
  alpha      = 1.70612
  Normalizat = 0.01
  Prefactor  = 0.360305
 **********
 **   18 **HESSE 
 **********

 FCN=   165.7093     FROM HESSE     STATUS=OK            29 CALLS      223 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          65.550        66.779        .49573E-04   -1.4087    
   2  alpha         1.7061        .76069        .34034E-02   -.32315    
   3  Normalizat    .10000E-01    .61322        .55221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .36031        .30167        .19266E-03   -1.1888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42299e-09
Minuit parameter uncertainties:
  1  66.8554
  2  0.77439
  3  6.38894e-06
  4  0.303003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851966': 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) = 165.709346467
delta logL = 0.00563883985933

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  6.555e+01  6.686e+01  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.706e+00  7.744e-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:  3.603e-01  3.030e-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.000e-02  6.389e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.99
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 1.71 +/- 0.77
Photon Flux (Free Index): 1.84e-07 +/- 2.34e-07
Energy Flux (Free Index): 3.20e-04 +/- 4.69e-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/851966/cmap_HighResolution_542851201_543110401_4FGL_J2324.7-4041_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.67e-07', energy_flux2='3.20e-04', photon_flux_error='1.63e-07', dlogl='5.64e-03', energy_flux='3.61e-04', photon_flux2='1.84e-07', job_status='DONE', time_completed='2021-09-29 16:53:02.626144', photon_index_error2='0.77', photon_index2='1.71', ts='7.11', fit_tolerance='1e-08', GAL='0.37', photon_index_error='0.00', energy_flux_error2='4.69e-04', EG='0.01', time_epoch_completed='1632959582.63', return_code='0', job_id='851966', GAL2='0.36', EG2='0.01', return_code2='0', energy_flux_error='3.54e-04', photon_flux_error2='2.34e-07', ts2='6.99', photon_index='1.62' WHERE bin_id='1171' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:53:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 851966: <4FGL_J2324.7-4041_daily_bin1171> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1171> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:46:00 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:46:02 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:46:02 2021
Terminated at Wed Sep 29 16:53:03 2021
Results reported at Wed Sep 29 16:53:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1171 351.182 -40.6834 542851201 543110401 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 :                                   309.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             381.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   420 sec.
    Turnaround time :                            423 sec.

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

