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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin993
RA = 351.17, Dec = 31.2573
tmin = 496713601, tmax = 496972801
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='834696', job_status='RUN', time_executed='2021-09-29 15:58:19.498473', time_epoch_executed='1632956299.5' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='993'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834696

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834696/ft1_4FGL_J2324.6+3115_daily_bin993.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834696/ft2_4FGL_J2324.6+3115_daily_bin993.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834696/ft1_4FGL_J2324.6+3115_daily_bin993.fits outfile=/scratch/kocevski/834696/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin993.fits ra=351.17 dec=31.2573 rad=12.0 tmin=496713601.0 tmax=496972801.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 4.99
user 4.68
sys 0.25

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834696/ft1_filtered_4FGL_J2324.6+3115_daily_bin993.fits" evtable="EVENTS" scfile=/scratch/kocevski/834696/ft2_4FGL_J2324.6+3115_daily_bin993.fits sctable="SC_DATA" outfile=/scratch/kocevski/834696/ltcube_496713601_496972801_4FGL_J2324.6+3115_daily_bin993.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/834696/ft2_4FGL_J2324.6+3115_daily_bin993.fits
.....................!
real 12.08
user 11.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834696/ft1_filtered_4FGL_J2324.6+3115_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/834696/ft2_4FGL_J2324.6+3115_daily_bin993.fits sctable="SC_DATA" expcube=/scratch/kocevski/834696/ltcube_496713601_496972801_4FGL_J2324.6+3115_daily_bin993.fits outfile=/scratch/kocevski/834696/expmap_496713601_496972801_4FGL_J2324.6+3115_daily_bin993.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/834696/ltcube_496713601_496972801_4FGL_J2324.6+3115_daily_bin993.fits
.....................!
real 189.77
user 184.86
sys 4.45

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/834696/ft1_filtered_4FGL_J2324.6+3115_daily_bin993.fits scfile=/scratch/kocevski/834696/ft2_4FGL_J2324.6+3115_daily_bin993.fits outfile=/scratch/kocevski/834696/cmap_496713601_496972801_4FGL_J2324.6+3115_daily_bin993.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834696/ft1_filtered_4FGL_J2324.6+3115_daily_bin993.fits scfile=/scratch/kocevski/834696/ft2_4FGL_J2324.6+3115_daily_bin993.fits outfile=/scratch/kocevski/834696/cmap_HighResolution_496713601_496972801_4FGL_J2324.6+3115_daily_bin993.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.60
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/834696/ft1_filtered_4FGL_J2324.6+3115_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/834696/ft2_4FGL_J2324.6+3115_daily_bin993.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/834696/Model_4FGL_J2324.6+3115_daily_bin993.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/834696/ft1_filtered_4FGL_J2324.6+3115_daily_bin993.fits.....................!
real 76.29
user 74.90
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/834696/ft1_filtered_4FGL_J2324.6+3115_daily_bin993.fits', '/scratch/kocevski/834696/ft2_4FGL_J2324.6+3115_daily_bin993.fits', expMap='/scratch/kocevski/834696/expmap_496713601_496972801_4FGL_J2324.6+3115_daily_bin993.fits', expCube='/scratch/kocevski/834696/ltcube_496713601_496972801_4FGL_J2324.6+3115_daily_bin993.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/834696/Model_4FGL_J2324.6+3115_daily_bin993.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/834696/ft1_filtered_4FGL_J2324.6+3115_daily_bin993.fits
Spacecraft file(s): /scratch/kocevski/834696/ft2_4FGL_J2324.6+3115_daily_bin993.fits
Exposure map: /scratch/kocevski/834696/expmap_496713601_496972801_4FGL_J2324.6+3115_daily_bin993.fits
Exposure cube: /scratch/kocevski/834696/ltcube_496713601_496972801_4FGL_J2324.6+3115_daily_bin993.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/834696/Model_4FGL_J2324.6+3115_daily_bin993.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) = 7146.81346054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22321       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15665       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12577E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.145       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7031       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1694       1.0000         .10000E-03   10000.    
    10 'norm      '    3.0556       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .31711E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.696       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6024       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .77277       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5595       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .44314E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .77761       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21091E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.315       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .60285       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2726       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=   7145.796     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     1886 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35645        26.750       -.71608E-05    .55391E-03
   2  Prefactor     .10000E-03    2.7383        .31694E-07** at limit **
   3  norm          .10000E-03    .83236        .30710E-06** at limit **
   4  Prefactor     .10000E-03    65.126       -.16098E-05** at limit **
   5  Prefactor     .10000E-03    9.1345        .62915E-07** at limit **
   6  Prefactor     22.368        20.719        .14793E-05    .10120E-03
   7  Prefactor     .10000E-03    3.0533       -.12209E-06** at limit **
   8  Prefactor     4.6736        11.885        .89965E-06    .28918E-04
   9  Prefactor     5.9892        57.348        .11655E-04    .64708E-04
  10  norm          3.0548        1.5809       -.75642E-07   -.24007E-03
  11  Prefactor     .10000E-03    11.895        .69231E-06** at limit **
  12  Prefactor     13.795        12.945       -.79491E-07   -.75263E-05
  13  Prefactor     .10000E-03    5.7849        .19713E-07** at limit **
  14  norm          .10000E-03    1.2131        .10248E-07** at limit **
  15  norm          2.6712        6.5297        .41580E-05    .69957E-03
  16  Prefactor     .80255        8.8157       -.26019E-05    .13524E-03
  17  norm          2.5572        1.9885       -.30254E-07   -.14993E-04
  18  Prefactor     .10000E-03    13.315       -.21486E-05** at limit **
  19  Prefactor     .10000E-03    128.40        .29023E-05** at limit **
  20  Prefactor     .10000E-03    37.285        .92376E-06** at limit **
  21  Prefactor     11.249        8.4282        .34064E-06    .49926E-03
  22  Normalizat    .60381        .23621       -.23782E-05   -.32471E-04
  23  Prefactor     1.2723        .12262        .17749E-06    .15585E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.356448
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3676
  Prefactor  = 0.0001
  Prefactor  = 4.67363
  Prefactor  = 5.98921
  norm       = 3.05476
  Prefactor  = 0.0001
  Prefactor  = 13.7948
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.67123
  Prefactor  = 0.802548
  norm       = 2.5572
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 11.249
  Normalizat = 0.603815
  Prefactor  = 1.27231
 **********
 **   18 **HESSE 
 **********

 FCN=   7145.796     FROM HESSE     STATUS=OK           380 CALLS     2266 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35645        18.936        .91340E-01   -1.5589    
   2  Prefactor     .10000E-03    2.7538        .13660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.9768        .14866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    65.179        .19556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1481        .20604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.368        20.731        .85116E-04   -1.4762    
   7  Prefactor     .10000E-03    3.0688        .14425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6736        11.881        .18555E-03   -1.5276    
   9  Prefactor     5.9892        57.789        .16163E-03   -1.5218    
  10  norm          3.0548        1.5742        .73086E-04   -1.5358    
  11  Prefactor     .10000E-03    11.931        .19767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.795        12.912        .10823E-03   -1.4965    
  13  Prefactor     .10000E-03    5.7860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.2143        .90909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6712        6.7444        .12645E-02   -1.5381    
  16  Prefactor     .80255        24.106        .44855E-02   -1.5529    
  17  norm          2.5572        1.9855        .10197E-03   -1.5388    
  18  Prefactor     .10000E-03    13.357        .21216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    132.98        .49425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.341        .20181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.249        8.4405        .11910E-03   -1.5037    
  22  Normalizat    .60381        .25148        .44460E-03   -1.0782    
  23  Prefactor     1.2723        .13286        .16458E-03   -.84134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05887e-09
Minuit parameter uncertainties:
  1  5.19705
  2  5.14949e-06
  3  3.37842e-06
  4  0.000191292
  5  6.97134e-06
  6  20.7379
  7  1.17008e-05
  8  11.8871
  9  37.2549
  10  1.57425
  11  4.17145e-05
  12  12.9146
  13  3.04574e-06
  14  1.37504e-06
  15  6.74628
  16  8.80021
  17  1.98555
  18  7.7706e-05
  19  0.000961794
  20  0.000136296
  21  8.44144
  22  0.251954
  23  0.132891
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  8.025e-01  8.800e+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

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.272e+00  1.329e-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:  6.038e-01  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 9.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834696/likelihoodResults_496713601_496972801_4FGL_J2324.6+3115_daily_bin993.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) = 7145.71026475
delta logL = 0.0857174193334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7145.67085772
delta logL = 0.125124450443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0390       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0277       1.0000          .0000       10.000    
     3 'Normalizat'    .60701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2688       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=   7145.671     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      263 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0416        11.543        .50160E-02    .15732E-03
   2  Index         2.0277        1.0183        .29244       -.66011E-04
   3  Normalizat    .60703        .23114        .10006        .39848E-04
   4  Prefactor     1.2687        .12100        .33178E-01   -.61195E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.04156
  Index      = 2.02775
  Normalizat = 0.607028
  Prefactor  = 1.26875
 **********
 **   18 **HESSE 
 **********

 FCN=   7145.671     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0416        9.4447        .20064E-03   -1.5306    
   2  Index         2.0277        1.1381        .17078E-01   -.63658    
   3  Normalizat    .60703        .24871        .44350E-03   -1.0769    
   4  Prefactor     1.2687        .13058        .16475E-03   -.84241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.4078e-11
Minuit parameter uncertainties:
  1  9.44815
  2  1.15391
  3  0.249165
  4  0.130618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834696': 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) = 7145.67085768
delta logL = 0.125124488339

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  4.042e+00  9.448e+00  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.028e+00  1.154e+00  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:  1.269e+00  1.306e-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:  6.070e-01  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 351.170 31.257

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/834696/cmap_HighResolution_496713601_496972801_4FGL_J2324.6+3115_daily_bin993.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', job_status='DONE', photon_flux_upper_limit='9.25e-08', time_completed='2021-09-29 16:09:31.394584', job_id='834696', GAL2='1.27', fit_tolerance='1e-08', EG2='0.61', EG='0.60', time_epoch_completed='1632956971.39', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.25e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='993' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:09:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 834696: <4FGL_J2324.6+3115_daily_bin993> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin993> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 15:55:29 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:55:31 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:55:31 2021
Terminated at Wed Sep 29 16:09:32 2021
Results reported at Wed Sep 29 16:09:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin993 351.17 31.2573 496713601 496972801 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 :                                 1256 MB
    Average Memory :                             326.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            843 sec.

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

