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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin784
RA = 351.17, Dec = 31.2573
tmin = 442540801, tmax = 442800001
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='833298', job_status='RUN', time_executed='2021-09-29 15:54:14.221387', time_epoch_executed='1632956054.22' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='784'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833298

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833298/ft1_4FGL_J2324.6+3115_daily_bin784.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833298/ft2_4FGL_J2324.6+3115_daily_bin784.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833298/ft1_4FGL_J2324.6+3115_daily_bin784.fits outfile=/scratch/kocevski/833298/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin784.fits ra=351.17 dec=31.2573 rad=12.0 tmin=442540801.0 tmax=442800001.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.37
user 3.15
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833298/ft2_4FGL_J2324.6+3115_daily_bin784.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/833298/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin784.fits evtable="EVENTS" outfile="/scratch/kocevski/833298/ft1_filtered_4FGL_J2324.6+3115_daily_bin784.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.48
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833298/ft1_filtered_4FGL_J2324.6+3115_daily_bin784.fits evtable="EVENTS" scfile=/scratch/kocevski/833298/ft2_4FGL_J2324.6+3115_daily_bin784.fits sctable="SC_DATA" expcube=/scratch/kocevski/833298/ltcube_442540801_442800001_4FGL_J2324.6+3115_daily_bin784.fits outfile=/scratch/kocevski/833298/expmap_442540801_442800001_4FGL_J2324.6+3115_daily_bin784.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/833298/ltcube_442540801_442800001_4FGL_J2324.6+3115_daily_bin784.fits
.....................!
real 190.94
user 185.11
sys 5.41

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/833298/ft1_filtered_4FGL_J2324.6+3115_daily_bin784.fits scfile=/scratch/kocevski/833298/ft2_4FGL_J2324.6+3115_daily_bin784.fits outfile=/scratch/kocevski/833298/cmap_442540801_442800001_4FGL_J2324.6+3115_daily_bin784.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833298/ft1_filtered_4FGL_J2324.6+3115_daily_bin784.fits scfile=/scratch/kocevski/833298/ft2_4FGL_J2324.6+3115_daily_bin784.fits outfile=/scratch/kocevski/833298/cmap_HighResolution_442540801_442800001_4FGL_J2324.6+3115_daily_bin784.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.061       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5166       1.0000         .10000E-03   10000.    
     3 'norm      '    6.7104       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0989       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.272       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7951       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10859E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    83.396       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.664       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3407       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .36777       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8471       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0741       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98012       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=   9092.677     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2240 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.047        25.791        .16195E-05    .91056E-04
   2  Prefactor     5.5159        8.0470        .15653E-05    .63743E-04
   3  norm          6.7101        1.7339        .11786E-07   -.44615E-05
   4  Prefactor     .10000E-03    34.805       -.17144E-05** at limit **
   5  Prefactor     5.0976        16.937        .34375E-06    .64928E-05
   6  Prefactor     13.273        14.111        .11097E-06    .12572E-04
   7  Prefactor     4.7962        6.7789        .19099E-06    .21483E-04
   8  Prefactor     .10000E-03    5.0850        .15605E-07** at limit **
   9  Prefactor     .10000E-03    13.271       -.14905E-05** at limit **
  10  norm          .10008E-03    .70512       -.70925E-06** at limit **
  11  Prefactor     83.390        29.496        .66600E-06    .11326E-03
  12  Prefactor     19.660        14.204       -.75129E-07    .52533E-04
  13  Prefactor     .10000E-03    8.7082       -.49948E-06** at limit **
  14  norm          .10000E-03    2.0291        .19458E-07** at limit **
  15  norm          3.3418        9.5260        .36191E-05    .86031E-04
  16  Prefactor     .10000E-03    6.2328        .22845E-07** at limit **
  17  norm          .36862        3.3269        .11276E-05    .85154E-04
  18  Prefactor     .10000E-03    17.208        .14879E-05** at limit **
  19  Prefactor     .10000E-03    30.276       -.22916E-06** at limit **
  20  Prefactor     .10000E-03    46.420        .81376E-06** at limit **
  21  Prefactor     5.8493        9.3815       -.64847E-06   -.13227E-03
  22  Normalizat    1.0743        .21257       -.74087E-07    .63965E-04
  23  Prefactor     .97998        .10093       -.62003E-06    .69217E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.0467
  Prefactor  = 5.51595
  norm       = 6.7101
  Prefactor  = 0.0001
  Prefactor  = 5.09759
  Prefactor  = 13.273
  Prefactor  = 4.79625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100079
  Prefactor  = 83.3896
  Prefactor  = 19.6595
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.34181
  Prefactor  = 0.0001
  norm       = 0.368621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.84931
  Normalizat = 1.07433
  Prefactor  = 0.979978
 **********
 **   18 **HESSE 
 **********

 FCN=   9092.677     FROM HESSE     STATUS=OK           372 CALLS     2612 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.047        25.783        .80019E-04   -1.4707    
   2  Prefactor     5.5159        8.1324        .85531E-03   -1.5238    
   3  norm          6.7101        1.7330        .60308E-04   -1.5190    
   4  Prefactor     .10000E-03    34.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0976        16.917        .17805E-03   -1.5256    
   6  Prefactor     13.273        14.120        .10995E-03   -1.4979    
   7  Prefactor     4.7962        6.7818        .18373E-03   -1.5270    
   8  Prefactor     .10000E-03    5.0977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10008E-03    9.9482        .13117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     83.390        29.574        .43986E-04   -1.3879    
  12  Prefactor     19.660        14.087        .90323E-04   -1.4821    
  13  Prefactor     .10000E-03    8.7253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.0455        .13262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3418        9.5254        .11072E-02   -1.5342    
  16  Prefactor     .10000E-03    6.2428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .36862        3.2915        .32247E-03   -1.5587    
  18  Prefactor     .10000E-03    17.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    46.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.8493        9.3869        .16608E-03   -1.5224    
  22  Normalizat    1.0743        .24810        .36702E-03   -.90580    
  23  Prefactor     .97998        .11793        .18364E-03   -.93400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59545e-09
Minuit parameter uncertainties:
  1  25.7947
  2  8.13407
  3  1.73301
  4  0.000195243
  5  16.9327
  6  14.1236
  7  6.78284
  8  7.94621e-07
  9  9.92088e-05
  10  0.00177318
  11  29.5795
  12  14.0897
  13  3.53121e-05
  14  2.9988e-06
  15  9.52972
  16  3.18669e-06
  17  2.20289
  18  0.000120875
  19  9.51585e-06
  20  6.71145e-05
  21  9.38922
  22  0.248365
  23  0.117959
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  3.187e-06  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:  9.800e-01  1.180e-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:  1.074e+00  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/833298/likelihoodResults_442540801_442800001_4FGL_J2324.6+3115_daily_bin784.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): 102
logL (Free Index) = 9092.67762687
delta logL = -0.0007633464229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9092.67686356
delta logL = -3.26745066559e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8712       1.0000          .0000       10.000    
     3 'Normalizat'    1.0743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97997       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9092.677     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      243 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10023E-03    243.84        .18142E-02** at limit **
   2  Index         2.8296        6.0253        .50000        .45793E-05
   3  Normalizat    1.0743        .35364E-01    .36702E-03   -.26205E-04
   4  Prefactor     .97998        .17099E-01    .18364E-03   -.36376E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100233
  Index      = 2.82964
  Normalizat = 1.07433
  Prefactor  = 0.979979
 **********
 **   18 **HESSE 
 **********

 FCN=   9092.677     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10023E-03    883.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8296        5.0742        .50000       -.44901    
   3  Normalizat    1.0743        .82470E-01    .14681E-04   -.90580    
   4  Prefactor     .97998        .39879E-01    .36729E-04   -.93400    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5332e-08
Minuit parameter uncertainties:
  1  0.0291542
  2  2292.31
  3  0.0824799
  4  0.0398801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833298': 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): 102
logL (Free Index) = 9092.67686349
delta logL = 3.65234882338e-08

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.002e-04  2.915e-02  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.830e+00  2.292e+03  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:  9.800e-01  3.988e-02  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:  1.074e+00  8.248e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/833298/cmap_HighResolution_442540801_442800001_4FGL_J2324.6+3115_daily_bin784.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.03e-03', job_status='DONE', photon_flux_upper_limit='8.85e-08', time_completed='2021-09-29 16:06:58.075327', job_id='833298', GAL2='0.98', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632956818.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.65e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='784' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:06:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 833298: <4FGL_J2324.6+3115_daily_bin784> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin784> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 15:50:25 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:50:26 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:50:26 2021
Terminated at Wed Sep 29 16:06:58 2021
Results reported at Wed Sep 29 16:06:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin784 351.17 31.2573 442540801 442800001 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 :                                   764.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            993 sec.

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

