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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1467
RA = 351.182, Dec = -40.6834
tmin = 619574401, tmax = 619833601
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='854614', job_status='RUN', time_executed='2021-09-29 16:57:45.051232', time_epoch_executed='1632959865.05' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1467'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854614/ft1_4FGL_J2324.7-4041_daily_bin1467.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854614/ft2_4FGL_J2324.7-4041_daily_bin1467.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854614/ft1_4FGL_J2324.7-4041_daily_bin1467.fits outfile=/scratch/kocevski/854614/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1467.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=619574401.0 tmax=619833601.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.57
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/854614/ft2_4FGL_J2324.7-4041_daily_bin1467.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/854614/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1467.fits evtable="EVENTS" outfile="/scratch/kocevski/854614/ft1_filtered_4FGL_J2324.7-4041_daily_bin1467.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854614/ft1_filtered_4FGL_J2324.7-4041_daily_bin1467.fits" evtable="EVENTS" scfile=/scratch/kocevski/854614/ft2_4FGL_J2324.7-4041_daily_bin1467.fits sctable="SC_DATA" outfile=/scratch/kocevski/854614/ltcube_619574401_619833601_4FGL_J2324.7-4041_daily_bin1467.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/854614/ft2_4FGL_J2324.7-4041_daily_bin1467.fits
.....................!
real 11.89
user 11.49
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854614/ft1_filtered_4FGL_J2324.7-4041_daily_bin1467.fits evtable="EVENTS" scfile=/scratch/kocevski/854614/ft2_4FGL_J2324.7-4041_daily_bin1467.fits sctable="SC_DATA" expcube=/scratch/kocevski/854614/ltcube_619574401_619833601_4FGL_J2324.7-4041_daily_bin1467.fits outfile=/scratch/kocevski/854614/expmap_619574401_619833601_4FGL_J2324.7-4041_daily_bin1467.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/854614/ltcube_619574401_619833601_4FGL_J2324.7-4041_daily_bin1467.fits
.....................!
real 190.02
user 184.64
sys 4.96

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/854614/ft1_filtered_4FGL_J2324.7-4041_daily_bin1467.fits scfile=/scratch/kocevski/854614/ft2_4FGL_J2324.7-4041_daily_bin1467.fits outfile=/scratch/kocevski/854614/cmap_619574401_619833601_4FGL_J2324.7-4041_daily_bin1467.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854614/ft1_filtered_4FGL_J2324.7-4041_daily_bin1467.fits scfile=/scratch/kocevski/854614/ft2_4FGL_J2324.7-4041_daily_bin1467.fits outfile=/scratch/kocevski/854614/cmap_HighResolution_619574401_619833601_4FGL_J2324.7-4041_daily_bin1467.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/854614/ft1_filtered_4FGL_J2324.7-4041_daily_bin1467.fits evtable="EVENTS" scfile=/scratch/kocevski/854614/ft2_4FGL_J2324.7-4041_daily_bin1467.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854614/Model_4FGL_J2324.7-4041_daily_bin1467.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/854614/ft1_filtered_4FGL_J2324.7-4041_daily_bin1467.fits.....................!
real 35.93
user 34.43
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31987       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    99.516       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.443       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11720E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.214       1.0000         .10000E-03   10000.    
    14 'norm      '    16.412       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.0526       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8574       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7648       1.0000         .10000E-03   10000.    
    19 'Prefactor '    101.62       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10220E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.6719       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.596       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.6289       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .58849       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1786       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=   4378.359     FROM MIGRAD    STATUS=CONVERGED    834 CALLS     4365 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.992        .19009E-04** at limit **
   2  Prefactor     .10000E-03    6.7447        .19051E-06** at limit **
   3  Prefactor     .10000E-03    20.125       -.18804E-04** at limit **
   4  Prefactor     .32572        2.6593        .93149E-06   -.97490E-03
   5  Prefactor     .10000E-03    30.113       -.28889E-04** at limit **
   6  Prefactor     .10000E-03    3.9550        .10363E-06** at limit **
   7  Prefactor     99.514        44.193       -.81425E-06   -.12578E-03
   8  Prefactor     34.443        29.528        .53447E-06   -.15566E-04
   9  Prefactor     .10000E-03    24.616        .18594E-04** at limit **
  10  Prefactor     .10000E-03    2.3842       -.15964E-06** at limit **
  11  Prefactor     .10000E-03    203.25       -.34804E-04** at limit **
  12  Prefactor     .10000E-03    54.868        .33850E-04** at limit **
  13  Prefactor     13.216        12.812        .82716E-07    .48757E-04
  14  norm          16.412        15.204       -.67872E-07    .65538E-04
  15  norm          .10000E-03    3.6070        .18158E-07** at limit **
  16  norm          6.0520        5.7044       -.79773E-06    .44929E-04
  17  norm          5.8576        7.2931       -.39885E-06   -.12738E-03
  18  Prefactor     3.7668        8.1120       -.33865E-06    .27304E-05
  19  Prefactor     101.63        56.469        .61275E-05    .20188E-04
  20  Prefactor     .10000E-03    12.905        .11081E-05** at limit **
  21  norm          .10000E-03    6.4500       -.71660E-07** at limit **
  22  Prefactor     .10000E-03    28.588       -.12989E-04** at limit **
  23  norm          .10000E-03    .57303        .19482E-06** at limit **
  24  norm          9.6678        7.1513       -.27588E-05   -.11287E-03
  25  Prefactor     .10000E-03    1.2531        .11146E-06** at limit **
  26  Prefactor     17.598        17.270       -.25721E-06    .26631E-04
  27  Prefactor     .10000E-03    50.428       -.14363E-04** at limit **
  28  Prefactor     8.6290        8.2488        .41096E-06   -.18288E-03
  29  Prefactor     .10000E-03    1.6761        .58725E-07** at limit **
  30  Prefactor     .10000E-03    26.040        .12901E-04** at limit **
  31  Normalizat    .58854        .19898       -.14382E-05   -.41464E-04
  32  Prefactor     1.1784        .21634        .45922E-06   -.10822E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.325721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 99.5137
  Prefactor  = 34.4427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.2161
  norm       = 16.4124
  norm       = 0.0001
  norm       = 6.05198
  norm       = 5.85764
  Prefactor  = 3.76682
  Prefactor  = 101.628
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.66778
  Prefactor  = 0.0001
  Prefactor  = 17.5977
  Prefactor  = 0.0001
  Prefactor  = 8.62904
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.588544
  Prefactor  = 1.17843
 **********
 **   18 **HESSE 
 **********

 FCN=   4378.359     FROM HESSE     STATUS=OK           651 CALLS     5016 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.7480        .16784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .32572        12.461        .20396E-02   -1.5594    
   5  Prefactor     .10000E-03    30.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9710        .12849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     99.514        44.198        .40299E-04   -1.3710    
   8  Prefactor     34.443        29.517        .68282E-04   -1.4534    
   9  Prefactor     .10000E-03    25.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3887        .99776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    206.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    55.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.216        12.775        .11019E-03   -1.4981    
  14  norm          16.412        15.202        .98864E-04   -1.4897    
  15  norm          .10000E-03    3.6124        .12266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.0520        5.7025        .14729E-03   -1.5216    
  17  norm          5.8576        7.2896        .16593E-03   -1.5224    
  18  Prefactor     3.7668        7.7615        .20807E-03   -1.5320    
  19  Prefactor     101.63        56.435        .39884E-04   -1.3688    
  20  Prefactor     .10000E-03    12.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.4934        .16265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .88904        .92966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.6678        7.1589        .12885E-03   -1.5086    
  25  Prefactor     .10000E-03    1.2636        .72303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     17.598        17.255        .95481E-04   -1.4869    
  27  Prefactor     .10000E-03    50.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.6290        8.2862        .13646E-03   -1.5120    
  29  Prefactor     .10000E-03    1.6928        .83632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    26.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .58854        .23685        .28034E-03   -1.0847    
  32  Prefactor     1.1784        .26008        .23279E-03   -.86998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33434e-09
Minuit parameter uncertainties:
  1  1.65262e-06
  2  2.87067e-06
  3  2.44335e-05
  4  4.02957
  5  3.13828e-06
  6  2.33368e-06
  7  44.2123
  8  29.5299
  9  0.000157657
  10  9.50599e-07
  11  0.00111082
  12  0.000132335
  13  12.7776
  14  15.206
  15  3.84154e-06
  16  5.70297
  17  7.29074
  18  7.76361
  19  56.4651
  20  1.51811e-06
  21  4.28344e-05
  22  0.000185706
  23  8.10748e-06
  24  7.15957
  25  1.47957e-06
  26  17.2604
  27  2.57349e-06
  28  8.2873
  29  2.82815e-06
  30  5.28273e-06
  31  0.237259
  32  0.260361
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  6.052e+00  5.703e+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:  1.178e+00  2.604e-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:  5.885e-01  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.01
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.48e-08 +/- 1.40e-08
Energy Flux (Fixed Index): 3.21e-05 +/- 3.03e-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) = 4377.60400608
delta logL = 0.755130331185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4377.56170692
delta logL = 0.797429497768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5135       1.0000         .10000E-03   10000.    
     2 'alpha     '    .77566       1.0000          .0000       5.0000    
     3 'Normalizat'    .58745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1837       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=   4377.562     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      205 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5135        3.9166        .47376E-02   -.26070E-02
   2  alpha         .77600        .48937        .37639       -.17936E-04
   3  Normalizat    .58732        .18660        .63417E-01    .22941E-04
   4  Prefactor     1.1839        .21424        .52561E-01    .46731E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.51352
  alpha      = 0.775997
  Normalizat = 0.587321
  Prefactor  = 1.18386
 **********
 **   18 **HESSE 
 **********

 FCN=   4377.562     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5135        4.8496        .11641E-03   -1.5283    
   2  alpha         .77600        .57953        .17279E-01   -.76094    
   3  Normalizat    .58732        .22252        .28060E-03   -1.0853    
   4  Prefactor     1.1839        .25585        .23238E-03   -.86830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4089e-09
Minuit parameter uncertainties:
  1  4.85002
  2  0.58991
  3  0.222863
  4  0.256123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854614': 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) = 4377.56170647
delta logL = 0.797429948381

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  4.514e+00  4.850e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  7.760e-01  5.899e-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:  1.184e+00  2.561e-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:  5.873e-01  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.62
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 0.78 +/- 0.59
Photon Flux (Free Index): 7.26e-09 +/- 6.40e-09
Energy Flux (Free Index): 1.23e-04 +/- 1.44e-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/854614/cmap_HighResolution_619574401_619833601_4FGL_J2324.7-4041_daily_bin1467.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.48e-08', energy_flux2='1.23e-04', photon_flux_error='1.40e-08', dlogl='7.97e-01', energy_flux='3.21e-05', photon_flux2='7.26e-09', job_status='DONE', time_completed='2021-09-29 17:08:49.912938', photon_index_error2='0.59', photon_index2='0.78', ts='5.01', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.44e-04', EG='0.59', time_epoch_completed='1632960529.91', return_code='0', job_id='854614', GAL2='1.18', EG2='0.59', return_code2='0', energy_flux_error='3.03e-05', photon_flux_error2='6.40e-09', ts2='6.62', photon_index='1.62' WHERE bin_id='1467' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:08:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 854614: <4FGL_J2324.7-4041_daily_bin1467> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1467 351.182 -40.6834 619574401 619833601 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 :                                   634.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

