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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin652
RA = 351.17, Dec = 31.2573
tmin = 408326401, tmax = 408585601
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='832008', job_status='RUN', time_executed='2021-09-29 15:49:14.610475', time_epoch_executed='1632955754.61' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832008/ft1_4FGL_J2324.6+3115_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832008/ft2_4FGL_J2324.6+3115_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832008/ft1_4FGL_J2324.6+3115_daily_bin652.fits outfile=/scratch/kocevski/832008/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin652.fits ra=351.17 dec=31.2573 rad=12.0 tmin=408326401.0 tmax=408585601.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.87
user 4.62
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/832008/ft2_4FGL_J2324.6+3115_daily_bin652.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/832008/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin652.fits evtable="EVENTS" outfile="/scratch/kocevski/832008/ft1_filtered_4FGL_J2324.6+3115_daily_bin652.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.51
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832008/ft1_filtered_4FGL_J2324.6+3115_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/832008/ft2_4FGL_J2324.6+3115_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/832008/ltcube_408326401_408585601_4FGL_J2324.6+3115_daily_bin652.fits outfile=/scratch/kocevski/832008/expmap_408326401_408585601_4FGL_J2324.6+3115_daily_bin652.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/832008/ltcube_408326401_408585601_4FGL_J2324.6+3115_daily_bin652.fits
.....................!
real 190.14
user 184.88
sys 4.95

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/832008/ft1_filtered_4FGL_J2324.6+3115_daily_bin652.fits scfile=/scratch/kocevski/832008/ft2_4FGL_J2324.6+3115_daily_bin652.fits outfile=/scratch/kocevski/832008/cmap_408326401_408585601_4FGL_J2324.6+3115_daily_bin652.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832008/ft1_filtered_4FGL_J2324.6+3115_daily_bin652.fits scfile=/scratch/kocevski/832008/ft2_4FGL_J2324.6+3115_daily_bin652.fits outfile=/scratch/kocevski/832008/cmap_HighResolution_408326401_408585601_4FGL_J2324.6+3115_daily_bin652.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/832008/ft1_filtered_4FGL_J2324.6+3115_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/832008/ft2_4FGL_J2324.6+3115_daily_bin652.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/832008/Model_4FGL_J2324.6+3115_daily_bin652.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/832008/ft1_filtered_4FGL_J2324.6+3115_daily_bin652.fits.....................!
real 34.04
user 32.75
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9041       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .37876E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    3.6407       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .95915       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7882       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.751       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.736       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.324       1.0000         .10000E-03   10000.    
    17 'norm      '    4.3992       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.877       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13341E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    68.813       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .84869       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89638       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=   2247.515     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2506 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8950        54.411        .90456E-05    .62576E-04
   2  Prefactor     .10004E-03    16.694       -.27912E-05** at limit **
   3  norm          3.6407        2.1308        .31545E-07    .14720E-04
   4  Prefactor     .10000E-03    86.111       -.20434E-05** at limit **
   5  Prefactor     .10000E-03    17.953       -.12270E-05** at limit **
   6  Prefactor     .10000E-03    40.999       -.38169E-06** at limit **
   7  Prefactor     .10000E-03    6.6285       -.43201E-08** at limit **
   8  Prefactor     .10000E-03    7.6394       -.70992E-08** at limit **
   9  Prefactor     .10000E-03    27.533        .90813E-07** at limit **
  10  norm          .95872        1.9750       -.89032E-07   -.15535E-03
  11  Prefactor     6.7873        30.669        .33651E-06   -.13388E-05
  12  Prefactor     16.752        26.217        .29268E-06   -.30229E-06
  13  Prefactor     .10000E-03    17.367        .96347E-06** at limit **
  14  norm          .10000E-03    7.7312       -.24972E-06** at limit **
  15  norm          10.737        23.336        .12372E-06    .95792E-06
  16  Prefactor     14.304        34.599        .18967E-05   -.49483E-05
  17  norm          4.3994        5.6682        .30188E-06    .23951E-04
  18  Prefactor     23.868        29.779        .33161E-06   -.67135E-05
  19  Prefactor     .10000E-03    253.69        .15014E-04** at limit **
  20  Prefactor     68.827        68.059       -.18004E-05   -.81697E-05
  21  Prefactor     .10000E-03    3.7239        .10758E-06** at limit **
  22  Normalizat    .84874        .34757       -.19564E-05    .72023E-06
  23  Prefactor     .89635        .17207       -.52071E-07   -.37545E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.89502
  Prefactor  = 0.000100035
  norm       = 3.64074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.958724
  Prefactor  = 6.78727
  Prefactor  = 16.7516
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.737
  Prefactor  = 14.3042
  norm       = 4.39936
  Prefactor  = 23.8677
  Prefactor  = 0.0001
  Prefactor  = 68.827
  Prefactor  = 0.0001
  Normalizat = 0.848736
  Prefactor  = 0.896348
 **********
 **   18 **HESSE 
 **********

 FCN=   2247.515     FROM HESSE     STATUS=OK           372 CALLS     2878 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8950        56.943        .15068E-02   -1.5433    
   2  Prefactor     .10004E-03    39.726        .32941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.6407        2.1329        .51434E-04   -1.5326    
   4  Prefactor     .10000E-03    86.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    41.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6325        .11922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.6472        .12799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .95872        1.7412        .92049E-03   -1.5512    
  11  Prefactor     6.7873        30.621        .15400E-03   -1.5187    
  12  Prefactor     16.752        26.148        .97859E-04   -1.4889    
  13  Prefactor     .10000E-03    17.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.7670        .12868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.737        23.334        .12227E-03   -1.5053    
  16  Prefactor     14.304        34.779        .10583E-03   -1.4951    
  17  norm          4.3994        5.6592        .12052E-03   -1.5288    
  18  Prefactor     23.868        29.775        .40988E-03   -1.4730    
  19  Prefactor     .10000E-03    257.44        .41121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     68.827        68.261        .24194E-03   -1.4047    
  21  Prefactor     .10000E-03    3.7262        .89362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .84874        .39597        .33125E-03   -.98286    
  23  Prefactor     .89635        .20001        .16701E-03   -.96269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.87469e-10
Minuit parameter uncertainties:
  1  20.797
  2  0.00236592
  3  2.13295
  4  9.63322e-05
  5  2.48844e-05
  6  9.93768e-06
  7  1.30664e-07
  8  8.56653e-07
  9  3.06111e-06
  10  1.7413
  11  28.8572
  12  26.1662
  13  1.17605e-05
  14  2.3014e-05
  15  23.3541
  16  34.8281
  17  5.65987
  18  29.7937
  19  0.000370784
  20  68.3387
  21  2.51636e-06
  22  0.397328
  23  0.200172
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.430e+01  3.483e+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.963e-01  2.002e-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.487e-01  3.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 3.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/832008/likelihoodResults_408326401_408585601_4FGL_J2324.6+3115_daily_bin652.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) = 2246.51335896
delta logL = 1.00128621113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2246.50484506
delta logL = 1.00980011353

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70025       1.0000         .10000E-03   10000.    
     2 'Index     '    6.5681       1.0000          .0000       10.000    
     3 'Normalizat'    .72413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93763       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=   2246.505     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      313 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .69864        15.033        .72275E-02    .42864E-02
   2  Index         6.5705        7.9895        .13927        .24013E-03
   3  Normalizat    .72394        .11861        .80160E-01    .21534E-04
   4  Prefactor     .93778        .61717E-01    .45483E-01   -.19025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.698637
  Index      = 6.5705
  Normalizat = 0.723937
  Prefactor  = 0.937775
 **********
 **   18 **HESSE 
 **********

 FCN=   2246.505     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      342 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .69864        25.417        .32409E-04   -1.5541    
   2  Index         6.5705        8.2826        .58448E-02    .31951    
   3  Normalizat    .72394        .36520        .35493E-03   -1.0296    
   4  Prefactor     .93778        .18335        .16343E-03   -.94833    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.10078e-10
Minuit parameter uncertainties:
  1  8.43114
  2  9.18974
  3  0.366433
  4  0.183467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832008': 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) = 2246.50484426
delta logL = 1.00980090996

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  6.986e-01  8.431e+00  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  6.570e+00  9.190e+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:  9.378e-01  1.835e-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:  7.239e-01  3.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.40
Ra Dec: 351.170 31.257
Photon Index (Free Index): 6.57 +/- 9.19
Photon Flux (Free Index): 1.48e-07 +/- 1.52e-07
Energy Flux (Free Index): 1.80e-05 +/- 2.28e-05

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/832008/cmap_HighResolution_408326401_408585601_4FGL_J2324.6+3115_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-02', comment='SUCCESS', energy_flux2='1.80e-05', dlogl='1.01e+00', photon_flux2='1.48e-07', job_status='DONE', time_completed='2021-09-29 15:56:38.540782', photon_index_error2='9.19', photon_index2='6.57', ts='0.21', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='3.03e-07', energy_flux_error2='2.28e-05', EG='0.85', time_epoch_completed='1632956198.54', return_code='0', job_id='832008', GAL2='0.94', EG2='0.72', return_code2='102', photon_flux_error2='1.52e-07', ts2='2.40', photon_index='2.88' WHERE bin_id='652' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:56:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 832008: <4FGL_J2324.6+3115_daily_bin652> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin652> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 15:45:35 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:45:36 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:36 2021
Terminated at Wed Sep 29 15:56:39 2021
Results reported at Wed Sep 29 15:56:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin652 351.17 31.2573 408326401 408585601 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 :                                   444.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            664 sec.

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

