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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin495
RA = 351.17, Dec = 31.2573
tmin = 367632001, tmax = 367891201
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='831759', job_status='RUN', time_executed='2021-09-29 15:47:17.542549', time_epoch_executed='1632955637.54' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831759

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831759/ft1_4FGL_J2324.6+3115_daily_bin495.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831759/ft2_4FGL_J2324.6+3115_daily_bin495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831759/ft1_4FGL_J2324.6+3115_daily_bin495.fits outfile=/scratch/kocevski/831759/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin495.fits ra=351.17 dec=31.2573 rad=12.0 tmin=367632001.0 tmax=367891201.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 5.10
user 4.83
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/831759/ft2_4FGL_J2324.6+3115_daily_bin495.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/831759/ft2_4FGL_J2324.6+3115_daily_bin495.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/831759/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin495.fits evtable="EVENTS" outfile="/scratch/kocevski/831759/ft1_filtered_4FGL_J2324.6+3115_daily_bin495.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/831759/ft1_filtered_4FGL_J2324.6+3115_daily_bin495.fits" evtable="EVENTS" scfile=/scratch/kocevski/831759/ft2_4FGL_J2324.6+3115_daily_bin495.fits sctable="SC_DATA" outfile=/scratch/kocevski/831759/ltcube_367632001_367891201_4FGL_J2324.6+3115_daily_bin495.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/831759/ft2_4FGL_J2324.6+3115_daily_bin495.fits
.....................!
real 11.95
user 11.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831759/ft1_filtered_4FGL_J2324.6+3115_daily_bin495.fits evtable="EVENTS" scfile=/scratch/kocevski/831759/ft2_4FGL_J2324.6+3115_daily_bin495.fits sctable="SC_DATA" expcube=/scratch/kocevski/831759/ltcube_367632001_367891201_4FGL_J2324.6+3115_daily_bin495.fits outfile=/scratch/kocevski/831759/expmap_367632001_367891201_4FGL_J2324.6+3115_daily_bin495.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/831759/ltcube_367632001_367891201_4FGL_J2324.6+3115_daily_bin495.fits
.....................!
real 192.11
user 186.59
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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.6+3115 @ 351.17 31.2573

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/831759/ft1_filtered_4FGL_J2324.6+3115_daily_bin495.fits scfile=/scratch/kocevski/831759/ft2_4FGL_J2324.6+3115_daily_bin495.fits outfile=/scratch/kocevski/831759/cmap_367632001_367891201_4FGL_J2324.6+3115_daily_bin495.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.17 yref=31.2573 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/831759/ft1_filtered_4FGL_J2324.6+3115_daily_bin495.fits scfile=/scratch/kocevski/831759/ft2_4FGL_J2324.6+3115_daily_bin495.fits outfile=/scratch/kocevski/831759/cmap_HighResolution_367632001_367891201_4FGL_J2324.6+3115_daily_bin495.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.17 yref=31.2573 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/831759/ft1_filtered_4FGL_J2324.6+3115_daily_bin495.fits evtable="EVENTS" scfile=/scratch/kocevski/831759/ft2_4FGL_J2324.6+3115_daily_bin495.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/831759/Model_4FGL_J2324.6+3115_daily_bin495.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/831759/ft1_filtered_4FGL_J2324.6+3115_daily_bin495.fits.....................!
real 79.69
user 78.41
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/831759/ft1_filtered_4FGL_J2324.6+3115_daily_bin495.fits', '/scratch/kocevski/831759/ft2_4FGL_J2324.6+3115_daily_bin495.fits', expMap='/scratch/kocevski/831759/expmap_367632001_367891201_4FGL_J2324.6+3115_daily_bin495.fits', expCube='/scratch/kocevski/831759/ltcube_367632001_367891201_4FGL_J2324.6+3115_daily_bin495.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/831759/Model_4FGL_J2324.6+3115_daily_bin495.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.6+3115'

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.967e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/831759/ft1_filtered_4FGL_J2324.6+3115_daily_bin495.fits
Spacecraft file(s): /scratch/kocevski/831759/ft2_4FGL_J2324.6+3115_daily_bin495.fits
Exposure map: /scratch/kocevski/831759/expmap_367632001_367891201_4FGL_J2324.6+3115_daily_bin495.fits
Exposure cube: /scratch/kocevski/831759/ltcube_367632001_367891201_4FGL_J2324.6+3115_daily_bin495.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/831759/Model_4FGL_J2324.6+3115_daily_bin495.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) = 7163.33577162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.869       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9718       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1574       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12771E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.685       1.0000         .10000E-03   10000.    
    10 'norm      '    .72259       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.638       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2659       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9047       1.0000         .10000E-03   10000.    
    14 'norm      '    .20071E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.447       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0169       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4134       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .25716       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83763       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88404       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7163.333     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2643 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.798        17.319       -.99223E-05   -.17783E-03
   2  Prefactor     6.9726        6.7321       -.50418E-05    .34766E-03
   3  norm          3.1575        1.3810       -.88677E-07    .52947E-03
   4  Prefactor     .10000E-03    29.280        .28098E-06** at limit **
   5  Prefactor     .10001E-03    14.301       -.11583E-05** at limit **
   6  Prefactor     .10000E-03    5.1270       -.37604E-08** at limit **
   7  Prefactor     .10000E-03    9.0570       -.37823E-06** at limit **
   8  Prefactor     .10000E-03    3.0493       -.43556E-07** at limit **
   9  Prefactor     12.686        13.035        .34484E-07    .18686E-04
  10  norm          .72286        1.0325       -.19476E-06    .13863E-03
  11  Prefactor     31.642        22.908        .41883E-05   -.10464E-03
  12  Prefactor     5.2680        8.6567       -.21180E-05   -.76582E-04
  13  Prefactor     9.9208        26.113       -.15977E-04    .15499E-03
  14  norm          .10001E-03    4.9340       -.22002E-05** at limit **
  15  norm          .10000E-03    2.6464        .10920E-08** at limit **
  16  Prefactor     43.454        21.820        .37360E-05    .68842E-03
  17  norm          3.0172        2.3623       -.35181E-07   -.23336E-03
  18  Prefactor     .10000E-03    9.9536        .40698E-06** at limit **
  19  Prefactor     9.4206        30.248       -.74648E-05    .50694E-04
  20  Prefactor     .73988        41.861        .95933E-05   -.31718E-04
  21  Prefactor     .10000E-03    5.9136        .41619E-06** at limit **
  22  Normalizat    .83765        .20198        .32786E-05    .20534E-04
  23  Prefactor     .88393        .96327E-01    .26741E-06    .18985E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 26.7975
  Prefactor  = 6.97257
  norm       = 3.15745
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6858
  norm       = 0.722858
  Prefactor  = 31.6416
  Prefactor  = 5.26801
  Prefactor  = 9.92081
  norm       = 0.00010001
  norm       = 0.0001
  Prefactor  = 43.4542
  norm       = 3.01722
  Prefactor  = 0.0001
  Prefactor  = 9.42058
  Prefactor  = 0.739877
  Prefactor  = 0.000100001
  Normalizat = 0.837652
  Prefactor  = 0.883931
 **********
 **   18 **HESSE 
 **********

 FCN=   7163.333     FROM HESSE     STATUS=OK           378 CALLS     3021 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.798        17.669        .77285E-04   -1.4672    
   2  Prefactor     6.9726        6.7269        .15194E-03   -1.5180    
   3  norm          3.1575        1.3385        .61436E-04   -1.5353    
   4  Prefactor     .10000E-03    29.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    85.601        .59917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.3886        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0540        .14434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.686        13.037        .11247E-03   -1.4995    
  10  norm          .72286        1.0311        .48593E-04   -1.5538    
  11  Prefactor     31.642        22.883        .71235E-04   -1.4582    
  12  Prefactor     5.2680        8.6421        .17516E-03   -1.5249    
  13  Prefactor     9.9208        25.995        .12732E-03   -1.5078    
  14  norm          .10001E-03    17.263        .32870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6472        .13446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     43.454        20.220        .60821E-04   -1.4389    
  17  norm          3.0172        2.3548        .11023E-03   -1.5361    
  18  Prefactor     .10000E-03    9.9732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4206        30.305        .13062E-03   -1.5094    
  20  Prefactor     .73988        42.586        .15027       -1.5536    
  21  Prefactor     .10000E-03    5.9881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .83765        .23250        .33658E-03   -.98687    
  23  Prefactor     .88393        .11183        .16553E-03   -.96705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02658e-09
Minuit parameter uncertainties:
  1  17.6726
  2  6.72764
  3  1.33849
  4  2.21232e-05
  5  0.00209479
  6  2.95534e-06
  7  2.36693e-05
  8  6.35247e-06
  9  13.0401
  10  1.03109
  11  22.8897
  12  8.64411
  13  26.0245
  14  0.000849343
  15  4.50021e-07
  16  20.2236
  17  2.35492
  18  1.47041e-05
  19  30.3544
  20  11.2341
  21  0.000110427
  22  0.232776
  23  0.11186
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  4.345e+01  2.022e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  8.839e-01  1.119e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  8.377e-01  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 6.50e-08
Energy Flux (Fixed Index): 2.98e-05 +/- 1.39e-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) = 7163.18285491
delta logL = 0.14985721918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7163.18015087
delta logL = 0.152561259432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.403       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2569       1.0000          .0000       10.000    
     3 'Normalizat'    .81010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7163.180     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      265 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.433        227.91        .17333E-02   -.29620E-04
   2  Index         3.2574        3.8490        .16357        .94723E-04
   3  Normalizat    .81017        .90880E-01    .77175E-01   -.12361E-03
   4  Prefactor     .89544        .46414E-01    .44950E-01   -.34171E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.4328
  Index      = 3.2574
  Normalizat = 0.81017
  Prefactor  = 0.895437
 **********
 **   18 **HESSE 
 **********

 FCN=   7163.180     FROM HESSE     STATUS=OK            31 CALLS      296 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.433        30.079        .69334E-04   -1.4551    
   2  Index         3.2574        .87689        .63978E-02   -.35599    
   3  Normalizat    .81017        .22684        .34161E-03   -.99693    
   4  Prefactor     .89544        .11241        .16461E-03   -.96301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.35977e-09
Minuit parameter uncertainties:
  1  30.0928
  2  0.88209
  3  0.227109
  4  0.112442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831759': 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) = 7163.18013862
delta logL = 0.152573511666

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  3.343e+01  3.009e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  3.257e+00  8.821e-01  0.000e+00  1.000e+01 (-1.000e+00)
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  8.954e-01  1.124e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  8.102e-01  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.58
Ra Dec: 351.170 31.257
Photon Index (Free Index): 3.26 +/- 0.88
Photon Flux (Free Index): 1.54e-07 +/- 7.00e-08
Energy Flux (Free Index): 2.76e-05 +/- 1.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/831759/cmap_HighResolution_367632001_367891201_4FGL_J2324.6+3115_daily_bin495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='2.76e-05', photon_flux_error='6.50e-08', dlogl='1.53e-01', energy_flux='2.98e-05', photon_flux2='1.54e-07', job_status='DONE', time_completed='2021-09-29 15:58:23.887450', photon_index_error2='0.88', photon_index2='3.26', ts='7.17', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='0.84', time_epoch_completed='1632956303.89', return_code='0', job_id='831759', GAL2='0.90', EG2='0.81', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='7.00e-08', ts2='7.58', photon_index='2.88' WHERE bin_id='495' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:58:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 831759: <4FGL_J2324.6+3115_daily_bin495> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin495> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 15:45:15 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:45:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 15:45:16 2021
Terminated at Wed Sep 29 15:58:24 2021
Results reported at Wed Sep 29 15:58:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin495 351.17 31.2573 367632001 367891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.6+3115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   666.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            789 sec.

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

