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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin625
RA = 351.17, Dec = 31.2573
tmin = 401328001, tmax = 401587201
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='831966', job_status='RUN', time_executed='2021-09-29 15:48:59.851065', time_epoch_executed='1632955739.85' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831966

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831966/ft1_4FGL_J2324.6+3115_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831966/ft2_4FGL_J2324.6+3115_daily_bin625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831966/ft1_4FGL_J2324.6+3115_daily_bin625.fits outfile=/scratch/kocevski/831966/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin625.fits ra=351.17 dec=31.2573 rad=12.0 tmin=401328001.0 tmax=401587201.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.43
user 3.20
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831966/ft1_filtered_4FGL_J2324.6+3115_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/831966/ft2_4FGL_J2324.6+3115_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/831966/ltcube_401328001_401587201_4FGL_J2324.6+3115_daily_bin625.fits outfile=/scratch/kocevski/831966/expmap_401328001_401587201_4FGL_J2324.6+3115_daily_bin625.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/831966/ltcube_401328001_401587201_4FGL_J2324.6+3115_daily_bin625.fits
.....................!
real 190.59
user 185.85
sys 4.44

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/831966/ft1_filtered_4FGL_J2324.6+3115_daily_bin625.fits scfile=/scratch/kocevski/831966/ft2_4FGL_J2324.6+3115_daily_bin625.fits outfile=/scratch/kocevski/831966/cmap_401328001_401587201_4FGL_J2324.6+3115_daily_bin625.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/831966/ft1_filtered_4FGL_J2324.6+3115_daily_bin625.fits scfile=/scratch/kocevski/831966/ft2_4FGL_J2324.6+3115_daily_bin625.fits outfile=/scratch/kocevski/831966/cmap_HighResolution_401328001_401587201_4FGL_J2324.6+3115_daily_bin625.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/831966/ft1_filtered_4FGL_J2324.6+3115_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/831966/ft2_4FGL_J2324.6+3115_daily_bin625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/831966/Model_4FGL_J2324.6+3115_daily_bin625.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/831966/ft1_filtered_4FGL_J2324.6+3115_daily_bin625.fits.....................!
real 93.03
user 91.74
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.992       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9957       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.872       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9645       1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.217       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.258       1.0000         .10000E-03   10000.    
    14 'norm      '    16.111       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9538       1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.174       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4093       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.140       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8769       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93539       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86921       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=   8234.272     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2534 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.991        22.728        .23201E-06   -.59654E-05
   2  Prefactor     .10000E-03    15.842       -.28565E-06** at limit **
   3  norm          .10000E-03    .42259        .41515E-07** at limit **
   4  Prefactor     .10000E-03    22.529       -.28726E-06** at limit **
   5  Prefactor     .10000E-03    5.1178        .72982E-07** at limit **
   6  Prefactor     .10000E-03    5.2497        .42942E-07** at limit **
   7  Prefactor     9.9945        7.7021        .14580E-06   -.59190E-04
   8  Prefactor     23.872        12.620        .14705E-06   -.43371E-05
   9  Prefactor     .10000E-03    9.7424        .14963E-06** at limit **
  10  norm          1.9645        1.6233        .20276E-07   -.56543E-04
  11  Prefactor     41.219        23.922        .67184E-06   -.48488E-05
  12  Prefactor     .10000E-03    5.5971        .12784E-06** at limit **
  13  Prefactor     24.257        22.608       -.98220E-06   -.34274E-05
  14  norm          16.110        7.9728       -.44316E-06   -.95612E-05
  15  norm          4.9532        6.4821       -.63770E-07   -.12451E-05
  16  Prefactor     43.179        26.715        .22717E-05   -.12481E-04
  17  norm          .10000E-03    .65541        .26420E-07** at limit **
  18  Prefactor     4.4018        13.994        .31786E-05   -.34153E-05
  19  Prefactor     27.146        35.750        .64691E-05   -.50373E-05
  20  Prefactor     .10000E-03    73.131        .32037E-06** at limit **
  21  Prefactor     1.8792        1.1965       -.19755E-07   -.35076E-03
  22  Normalizat    .93502        .20989       -.20741E-05    .31829E-04
  23  Prefactor     .86938        .95675E-01    .19951E-06   -.10552E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 23.991
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.99452
  Prefactor  = 23.8718
  Prefactor  = 0.0001
  norm       = 1.96453
  Prefactor  = 41.2188
  Prefactor  = 0.0001
  Prefactor  = 24.2573
  norm       = 16.11
  norm       = 4.95316
  Prefactor  = 43.1795
  norm       = 0.0001
  Prefactor  = 4.40179
  Prefactor  = 27.1456
  Prefactor  = 0.0001
  Prefactor  = 1.87918
  Normalizat = 0.935022
  Prefactor  = 0.869379
 **********
 **   18 **HESSE 
 **********

 FCN=   8234.272     FROM HESSE     STATUS=OK           372 CALLS     2906 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.991        24.940        .81780E-04   -1.4728    
   2  Prefactor     .10000E-03    16.551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .44029        .11515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.1199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9945        7.7486        .63370E-03   -1.5076    
   8  Prefactor     23.872        12.620        .81985E-04   -1.4730    
   9  Prefactor     .10000E-03    9.7674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9645        1.6095        .98663E-04   -1.5428    
  11  Prefactor     41.219        23.928        .62439E-04   -1.4423    
  12  Prefactor     .10000E-03    5.6366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.257        22.608        .81330E-04   -1.4723    
  14  norm          16.110        7.9722        .99785E-04   -1.4905    
  15  norm          4.9532        6.4817        .18070E-03   -1.5263    
  16  Prefactor     43.179        26.755        .61012E-04   -1.4393    
  17  norm          .10000E-03    .65799        .71734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4018        14.008        .19179E-03   -1.5288    
  19  Prefactor     27.146        35.746        .76899E-04   -1.4665    
  20  Prefactor     .10000E-03    73.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.8792        8.6607        .15196E-02   -1.5434    
  22  Normalizat    .93502        .24177        .35735E-03   -.95240    
  23  Prefactor     .86938        .11207        .17588E-03   -.97219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13723e-10
Minuit parameter uncertainties:
  1  24.951
  2  4.39765e-05
  3  1.00306e-06
  4  2.3001e-06
  5  1.83109e-06
  6  9.68435e-07
  7  7.74939
  8  12.6218
  9  1.94469e-06
  10  1.60951
  11  23.9334
  12  5.11533e-06
  13  22.6157
  14  7.97269
  15  6.48257
  16  26.7626
  17  4.27514e-07
  18  14.0186
  19  35.7746
  20  2.83599e-06
  21  8.07019
  22  0.242054
  23  0.112097
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  4.318e+01  2.676e+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.694e-01  1.121e-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:  9.350e-01  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.13
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 8.60e-08
Energy Flux (Fixed Index): 2.97e-05 +/- 1.84e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8234.22544537
delta logL = 0.0468990718127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8234.21727717
delta logL = 0.0550672623376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.024       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0991       1.0000          .0000       10.000    
     3 'Normalizat'    .91297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87645       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=   8234.217     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      246 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.023        25.925        .63358E-04    .39253E-03
   2  Index         3.0992        .72823        .81057E-02    .10238E-03
   3  Normalizat    .91297        .24310        .36106E-03   -.12689E-03
   4  Prefactor     .87646        .11180        .17524E-03   -.29482E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.023
  Index      = 3.09918
  Normalizat = 0.912968
  Prefactor  = 0.876456
 **********
 **   18 **HESSE 
 **********

 FCN=   8234.217     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.023        24.920        .12672E-04   -1.4442    
   2  Index         3.0992        .69859        .32423E-03   -.38997    
   3  Normalizat    .91297        .24306        .14442E-04   -.96006    
   4  Prefactor     .87646        .11175        .35047E-04   -.96969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73954e-10
Minuit parameter uncertainties:
  1  24.926
  2  0.701277
  3  0.243351
  4  0.111782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831966': 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) = 8234.21727717
delta logL = 0.0550672687605

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  8.765e-01  1.118e-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:  9.130e-01  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.47
Ra Dec: 351.170 31.257
Photon Index (Free Index): 3.10 +/- 0.70
Photon Flux (Free Index): 1.58e-07 +/- 9.74e-08
Energy Flux (Free Index): 3.02e-05 +/- 1.58e-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/831966/cmap_HighResolution_401328001_401587201_4FGL_J2324.6+3115_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='3.02e-05', photon_flux_error='8.60e-08', dlogl='5.51e-02', energy_flux='2.97e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-29 16:00:03.271395', photon_index_error2='0.70', photon_index2='3.10', ts='5.13', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='0.94', time_epoch_completed='1632956403.27', return_code='0', job_id='831966', GAL2='0.88', EG2='0.91', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='9.74e-08', ts2='5.47', photon_index='2.88' WHERE bin_id='625' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:00:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 831966: <4FGL_J2324.6+3115_daily_bin625> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin625 351.17 31.2573 401328001 401587201 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 :                                   664.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            872 sec.

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

