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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin844
RA = 351.17, Dec = 31.2573
tmin = 458092801, tmax = 458352001
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='833387', job_status='RUN', time_executed='2021-09-29 15:54:02.310359', time_epoch_executed='1632956042.31' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='844'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833387

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833387/ft1_4FGL_J2324.6+3115_daily_bin844.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833387/ft2_4FGL_J2324.6+3115_daily_bin844.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833387/ft1_4FGL_J2324.6+3115_daily_bin844.fits outfile=/scratch/kocevski/833387/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin844.fits ra=351.17 dec=31.2573 rad=12.0 tmin=458092801.0 tmax=458352001.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.59
user 3.37
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833387/ft2_4FGL_J2324.6+3115_daily_bin844.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/833387/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin844.fits evtable="EVENTS" outfile="/scratch/kocevski/833387/ft1_filtered_4FGL_J2324.6+3115_daily_bin844.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.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833387/ft1_filtered_4FGL_J2324.6+3115_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/833387/ft2_4FGL_J2324.6+3115_daily_bin844.fits sctable="SC_DATA" expcube=/scratch/kocevski/833387/ltcube_458092801_458352001_4FGL_J2324.6+3115_daily_bin844.fits outfile=/scratch/kocevski/833387/expmap_458092801_458352001_4FGL_J2324.6+3115_daily_bin844.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/833387/ltcube_458092801_458352001_4FGL_J2324.6+3115_daily_bin844.fits
.....................!
real 189.92
user 185.39
sys 4.22

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/833387/ft1_filtered_4FGL_J2324.6+3115_daily_bin844.fits scfile=/scratch/kocevski/833387/ft2_4FGL_J2324.6+3115_daily_bin844.fits outfile=/scratch/kocevski/833387/cmap_458092801_458352001_4FGL_J2324.6+3115_daily_bin844.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833387/ft1_filtered_4FGL_J2324.6+3115_daily_bin844.fits scfile=/scratch/kocevski/833387/ft2_4FGL_J2324.6+3115_daily_bin844.fits outfile=/scratch/kocevski/833387/cmap_HighResolution_458092801_458352001_4FGL_J2324.6+3115_daily_bin844.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.56
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0432       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.043       1.0000         .10000E-03   10000.    
     3 'norm      '    .24494E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    81.284       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.613       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.610       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6890       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.0959       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.836       1.0000         .10000E-03   10000.    
    14 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.331       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.771       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1604       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.333       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .61559       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0115       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=   8440.397     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2548 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0467        14.674       -.22194E-05   -.19017E-03
   2  Prefactor     20.045        8.7529        .93579E-07   -.24284E-04
   3  norm          .10001E-03    .39550        .44052E-06** at limit **
   4  Prefactor     81.283        66.962       -.12952E-05   -.11878E-06
   5  Prefactor     33.595        19.316       -.48461E-05   -.27415E-03
   6  Prefactor     .10000E-03    5.8347        .11053E-05** at limit **
   7  Prefactor     11.610        6.3584       -.15960E-06   -.52153E-03
   8  Prefactor     8.6884        7.9313       -.58444E-06   -.96430E-03
   9  Prefactor     .10000E-03    6.6939       -.15183E-05** at limit **
  10  norm          5.0961        1.5933       -.52244E-07   -.99208E-04
  11  Prefactor     .10000E-03    21.616        .94509E-05** at limit **
  12  Prefactor     .10000E-03    2.9306        .91892E-07** at limit **
  13  Prefactor     15.836        14.419       -.11075E-05   -.24979E-04
  14  norm          .10000E-03    5.0470       -.75246E-06** at limit **
  15  norm          16.330        10.728       -.68333E-07   -.21091E-03
  16  Prefactor     19.781        15.952        .38084E-05    .19870E-04
  17  norm          2.1603        3.0155       -.43544E-06   -.10060E-02
  18  Prefactor     .10000E-03    25.423       -.58498E-05** at limit **
  19  Prefactor     .10000E-03    12.893       -.57755E-05** at limit **
  20  Prefactor     28.340        35.084        .90490E-05   -.60286E-04
  21  Prefactor     .10000E-03    10.156        .36876E-05** at limit **
  22  Normalizat    .61541        .19423       -.19047E-05   -.16230E-03
  23  Prefactor     1.0116        .97056E-01    .50278E-06   -.37210E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.0467
  Prefactor  = 20.0449
  norm       = 0.000100006
  Prefactor  = 81.2831
  Prefactor  = 33.595
  Prefactor  = 0.0001
  Prefactor  = 11.6103
  Prefactor  = 8.68836
  Prefactor  = 0.0001
  norm       = 5.09614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8355
  norm       = 0.000100001
  norm       = 16.3301
  Prefactor  = 19.7813
  norm       = 2.1603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.3396
  Prefactor  = 0.000100001
  Normalizat = 0.615406
  Prefactor  = 1.01156
 **********
 **   18 **HESSE 
 **********

 FCN=   8440.397     FROM HESSE     STATUS=OK           376 CALLS     2924 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0467        14.638        .20054E-03   -1.5306    
   2  Prefactor     20.045        8.7660        .89465E-04   -1.4812    
   3  norm          .10001E-03    1.0054        .20131E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     81.283        67.039        .44549E-04   -1.3902    
   5  Prefactor     33.595        19.642        .69118E-04   -1.4548    
   6  Prefactor     .10000E-03    5.8489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.610        6.3758        .58785E-03   -1.5026    
   8  Prefactor     8.6884        8.0131        .67992E-03   -1.5118    
   9  Prefactor     .10000E-03    6.6966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.0961        1.5916        .61791E-04   -1.5256    
  11  Prefactor     .10000E-03    21.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.9406        .15357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.836        14.418        .10065E-03   -1.4912    
  14  norm          .10000E-03    5.1478        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.330        10.721        .49554E-03   -1.4900    
  16  Prefactor     19.781        15.862        .90076E-04   -1.4818    
  17  norm          2.1603        3.0315        .17836E-03   -1.5414    
  18  Prefactor     .10000E-03    26.087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.340        34.757        .75266E-04   -1.4643    
  21  Prefactor     .10000E-03    10.354        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .61541        .21775        .39325E-03   -1.0733    
  23  Prefactor     1.0116        .11063        .16157E-03   -.92345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68534e-09
Minuit parameter uncertainties:
  1  14.6505
  2  8.76661
  3  0.000153144
  4  67.1012
  5  19.6461
  6  9.45098e-07
  7  6.37619
  8  8.01408
  9  1.15962e-06
  10  1.59164
  11  3.40806e-05
  12  2.67494e-06
  13  14.4214
  14  0.000104419
  15  10.7224
  16  15.8656
  17  3.03169
  18  6.00348e-05
  19  1.6301e-06
  20  34.7822
  21  0.000212238
  22  0.218059
  23  0.110651
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.978e+01  1.587e+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:  1.012e+00  1.107e-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.154e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.08
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 6.36e-08 +/- 5.10e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.09e-05

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

Saving results to:
/scratch/kocevski/833387/likelihoodResults_458092801_458352001_4FGL_J2324.6+3115_daily_bin844.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) = 8440.27969712
delta logL = 0.117801809258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8440.27622865
delta logL = 0.121270275582

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.207       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3392       1.0000          .0000       10.000    
     3 'Normalizat'    .60031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0181       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=   8440.276     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      295 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.211        21.664        .10626E-03    .11362E-03
   2  Index         3.3391        1.2894        .96283E-02    .33824E-04
   3  Normalizat    .60022        .21201        .39790E-03    .69853E-03
   4  Prefactor     1.0181        .10852        .16111E-03    .16520E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2109
  Index      = 3.3391
  Normalizat = 0.600222
  Prefactor  = 1.01809
 **********
 **   18 **HESSE 
 **********

 FCN=   8440.276     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.211        18.208        .42505E-05   -1.4954    
   2  Index         3.3391        1.0865        .38513E-03   -.33861    
   3  Normalizat    .60022        .21206        .15916E-04   -1.0797    
   4  Prefactor     1.0181        .10835        .32223E-04   -.92129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02218e-09
Minuit parameter uncertainties:
  1  18.2155
  2  1.0963
  3  0.212343
  4  0.108375
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833387': 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) = 8440.27622796
delta logL = 0.121270966192

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.421e+01  1.822e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  3.339e+00  1.096e+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.018e+00  1.084e-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.002e-01  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 351.170 31.257
Photon Index (Free Index): 3.34 +/- 1.10
Photon Flux (Free Index): 7.10e-08 +/- 5.39e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.00e-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/833387/cmap_HighResolution_458092801_458352001_4FGL_J2324.6+3115_daily_bin844.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', photon_flux='6.36e-08', energy_flux2='1.24e-05', photon_flux_error='5.10e-08', dlogl='1.21e-01', energy_flux='1.36e-05', photon_flux2='7.10e-08', job_status='DONE', time_completed='2021-09-29 16:07:11.595083', photon_index_error2='1.10', photon_index2='3.34', ts='2.08', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.00e-05', EG='0.62', time_epoch_completed='1632956831.6', return_code='0', job_id='833387', GAL2='1.02', EG2='0.60', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='5.39e-08', ts2='2.36', photon_index='2.88' WHERE bin_id='844' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:07:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 833387: <4FGL_J2324.6+3115_daily_bin844> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin844 351.17 31.2573 458092801 458352001 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 :                                   788.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            998 sec.

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

