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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin628
RA = 351.17, Dec = 31.2573
tmin = 402105601, tmax = 402364801
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='831971', job_status='RUN', time_executed='2021-09-29 15:45:50.105819', time_epoch_executed='1632955550.11' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='628'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831971

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831971/ft1_4FGL_J2324.6+3115_daily_bin628.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831971/ft2_4FGL_J2324.6+3115_daily_bin628.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831971/ft1_4FGL_J2324.6+3115_daily_bin628.fits outfile=/scratch/kocevski/831971/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin628.fits ra=351.17 dec=31.2573 rad=12.0 tmin=402105601.0 tmax=402364801.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.52
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/831971/ft1_filtered_4FGL_J2324.6+3115_daily_bin628.fits" evtable="EVENTS" scfile=/scratch/kocevski/831971/ft2_4FGL_J2324.6+3115_daily_bin628.fits sctable="SC_DATA" outfile=/scratch/kocevski/831971/ltcube_402105601_402364801_4FGL_J2324.6+3115_daily_bin628.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/831971/ft2_4FGL_J2324.6+3115_daily_bin628.fits
.....................!
real 11.81
user 11.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831971/ft1_filtered_4FGL_J2324.6+3115_daily_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/831971/ft2_4FGL_J2324.6+3115_daily_bin628.fits sctable="SC_DATA" expcube=/scratch/kocevski/831971/ltcube_402105601_402364801_4FGL_J2324.6+3115_daily_bin628.fits outfile=/scratch/kocevski/831971/expmap_402105601_402364801_4FGL_J2324.6+3115_daily_bin628.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/831971/ltcube_402105601_402364801_4FGL_J2324.6+3115_daily_bin628.fits
.....................!
real 190.60
user 185.26
sys 5.03

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/831971/ft1_filtered_4FGL_J2324.6+3115_daily_bin628.fits scfile=/scratch/kocevski/831971/ft2_4FGL_J2324.6+3115_daily_bin628.fits outfile=/scratch/kocevski/831971/cmap_402105601_402364801_4FGL_J2324.6+3115_daily_bin628.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.17 yref=31.2573 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/831971/ft1_filtered_4FGL_J2324.6+3115_daily_bin628.fits scfile=/scratch/kocevski/831971/ft2_4FGL_J2324.6+3115_daily_bin628.fits outfile=/scratch/kocevski/831971/cmap_HighResolution_402105601_402364801_4FGL_J2324.6+3115_daily_bin628.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/831971/ft1_filtered_4FGL_J2324.6+3115_daily_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/831971/ft2_4FGL_J2324.6+3115_daily_bin628.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/831971/Model_4FGL_J2324.6+3115_daily_bin628.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/831971/ft1_filtered_4FGL_J2324.6+3115_daily_bin628.fits.....................!
real 87.66
user 86.37
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10790E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6877       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    68.952       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .45632       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5773       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6842       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.694       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.0844       1.0000         .10000E-03   10000.    
    15 'norm      '    .43492E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.114       1.0000         .10000E-03   10000.    
    17 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7529       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2712       1.0000         .10000E-03   10000.    
    20 'Prefactor '    88.043       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27993E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99509       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85671       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=   7950.303     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2578 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.193        .96165E-06** at limit **
   2  Prefactor     4.6892        6.9002        .10087E-06   -.97847E-04
   3  norm          .10000E-03    .29048       -.28413E-07** at limit **
   4  Prefactor     68.938        60.116       -.47538E-07   -.15229E-03
   5  Prefactor     .10000E-03    12.193        .53174E-07** at limit **
   6  Prefactor     .10000E-03    5.4480       -.45928E-07** at limit **
   7  Prefactor     .10000E-03    3.3959       -.89515E-07** at limit **
   8  Prefactor     .46429        6.5613        .99067E-06   -.16203E-03
   9  Prefactor     .10000E-03    11.640       -.17585E-06** at limit **
  10  norm          1.5781        1.5440        .12203E-07   -.56834E-04
  11  Prefactor     4.6916        30.410        .67223E-06    .56837E-04
  12  Prefactor     13.696        11.971        .16718E-06   -.12068E-03
  13  Prefactor     .10000E-03    9.8906        .19441E-07** at limit **
  14  norm          3.0856        4.3310        .15173E-05    .58654E-03
  15  norm          .10005E-03    8.5614        .23038E-05** at limit **
  16  Prefactor     23.114        19.085       -.57267E-06    .18303E-04
  17  norm          .10000E-03    1.9495       -.74792E-07** at limit **
  18  Prefactor     3.7532        7.3400        .10833E-05    .16009E-03
  19  Prefactor     1.3790        124.04        .38731E-06   -.24065E-04
  20  Prefactor     88.087        50.186       -.42813E-05   -.64772E-03
  21  Prefactor     .10003E-03    10.650        .70095E-05** at limit **
  22  Normalizat    .99487        .19930       -.43859E-06   -.65083E-03
  23  Prefactor     .85671        .92627E-01   -.11702E-06   -.12263E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 4.68921
  norm       = 0.0001
  Prefactor  = 68.9381
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.464289
  Prefactor  = 0.000100001
  norm       = 1.57814
  Prefactor  = 4.69163
  Prefactor  = 13.6958
  Prefactor  = 0.0001
  norm       = 3.08563
  norm       = 0.000100049
  Prefactor  = 23.1142
  norm       = 0.0001
  Prefactor  = 3.75322
  Prefactor  = 1.37896
  Prefactor  = 88.0873
  Prefactor  = 0.000100031
  Normalizat = 0.994867
  Prefactor  = 0.856713
 **********
 **   18 **HESSE 
 **********

 FCN=   7950.303     FROM HESSE     STATUS=OK           370 CALLS     2948 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6892        6.9002        .18586E-03   -1.5275    
   3  norm          .10000E-03    .29504        .46906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     68.938        60.181        .24170E-03   -1.4045    
   5  Prefactor     .10000E-03    12.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.4219        .16044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .46429        36.194        .43184E-02   -1.5572    
   9  Prefactor     .10000E-03    11.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5781        1.5238        .10289E-03   -1.5457    
  11  Prefactor     4.6916        30.338        .18594E-03   -1.5275    
  12  Prefactor     13.696        11.928        .10824E-03   -1.4968    
  13  Prefactor     .10000E-03    9.8998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0856        4.5552        .10431E-02   -1.5357    
  15  norm          .10005E-03    42.912        .47105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.114        19.233        .83315E-04   -1.4746    
  17  norm          .10000E-03    2.0197        .24260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.7532        7.3944        .10421E-02   -1.5320    
  19  Prefactor     1.3790        126.66        .39456E-03   -1.5473    
  20  Prefactor     88.087        53.832        .21410E-03   -1.3828    
  21  Prefactor     .10003E-03    17.244        .38552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .99487        .23194        .32822E-03   -.93203    
  23  Prefactor     .85671        .10858        .16986E-03   -.97670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26846e-09
Minuit parameter uncertainties:
  1  6.91712e-05
  2  6.9014
  3  4.63823e-07
  4  60.2346
  5  0.000229426
  6  4.85217e-06
  7  7.82225e-06
  8  8.20288
  9  0.000217138
  10  1.52382
  11  23.8783
  12  11.9303
  13  1.7133e-05
  14  4.55566
  15  0.00290147
  16  19.2381
  17  7.8012e-06
  18  7.39617
  19  26.4884
  20  53.8617
  21  0.00147376
  22  0.232176
  23  0.108604
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.311e+01  1.924e+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.567e-01  1.086e-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.949e-01  2.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.23
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 7.44e-08 +/- 6.18e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/831971/likelihoodResults_402105601_402364801_4FGL_J2324.6+3115_daily_bin628.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) = 7950.28241179
delta logL = 0.0202695022999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7950.27320502
delta logL = 0.0294762750291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.470       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1023       1.0000          .0000       10.000    
     3 'Normalizat'    .98437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86071       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=   7950.273     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      216 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.451        372.61        .22132E-02    .24475E-03
   2  Index         3.1043        6.4546        .21882        .15689E-03
   3  Normalizat    .98424        .81008E-01    .74527E-01   -.13329E-03
   4  Prefactor     .86079        .38952E-01    .44502E-01   -.25845E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4507
  Index      = 3.10431
  Normalizat = 0.984245
  Prefactor  = 0.860785
 **********
 **   18 **HESSE 
 **********

 FCN=   7950.273     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.451        22.671        .88526E-04   -1.4803    
   2  Index         3.1043        1.0865        .10749E-01   -.38886    
   3  Normalizat    .98424        .22761        .32978E-03   -.93560    
   4  Prefactor     .86079        .10843        .16951E-03   -.97525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02799e-10
Minuit parameter uncertainties:
  1  22.6804
  2  1.09678
  3  0.227831
  4  0.108456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831971': 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) = 7950.27320276
delta logL = 0.029478532384

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.045e+01  2.268e+01  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  3.104e+00  1.097e+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:  8.608e-01  1.085e-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.842e-01  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 351.170 31.257
Photon Index (Free Index): 3.10 +/- 1.10
Photon Flux (Free Index): 8.13e-08 +/- 6.46e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.23e-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/831971/cmap_HighResolution_402105601_402364801_4FGL_J2324.6+3115_daily_bin628.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', comment='SUCCESS', photon_flux='7.44e-08', energy_flux2='1.55e-05', photon_flux_error='6.18e-08', dlogl='2.95e-02', energy_flux='1.59e-05', photon_flux2='8.13e-08', job_status='DONE', time_completed='2021-09-29 15:58:13.623565', photon_index_error2='1.10', photon_index2='3.10', ts='2.23', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='1.23e-05', EG='0.99', time_epoch_completed='1632956293.62', return_code='0', job_id='831971', GAL2='0.86', EG2='0.98', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='6.46e-08', ts2='2.32', photon_index='2.88' WHERE bin_id='628' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:58:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 831971: <4FGL_J2324.6+3115_daily_bin628> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin628> 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) <bullet0120>, 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 15:58:14 2021
Results reported at Wed Sep 29 15:58:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin628 351.17 31.2573 402105601 402364801 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 :                                   739.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            762 sec.

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

