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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin646
RA = 351.17, Dec = 31.2573
tmin = 406771201, tmax = 407030401
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='831999', job_status='RUN', time_executed='2021-09-29 15:47:42.279386', time_epoch_executed='1632955662.28' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='646'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831999

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831999/ft1_4FGL_J2324.6+3115_daily_bin646.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831999/ft2_4FGL_J2324.6+3115_daily_bin646.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831999/ft1_4FGL_J2324.6+3115_daily_bin646.fits outfile=/scratch/kocevski/831999/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin646.fits ra=351.17 dec=31.2573 rad=12.0 tmin=406771201.0 tmax=407030401.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.46
user 3.20
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/831999/ft2_4FGL_J2324.6+3115_daily_bin646.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/831999/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin646.fits evtable="EVENTS" outfile="/scratch/kocevski/831999/ft1_filtered_4FGL_J2324.6+3115_daily_bin646.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/831999/ft1_filtered_4FGL_J2324.6+3115_daily_bin646.fits" evtable="EVENTS" scfile=/scratch/kocevski/831999/ft2_4FGL_J2324.6+3115_daily_bin646.fits sctable="SC_DATA" outfile=/scratch/kocevski/831999/ltcube_406771201_407030401_4FGL_J2324.6+3115_daily_bin646.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/831999/ft2_4FGL_J2324.6+3115_daily_bin646.fits
.....................!
real 15.52
user 15.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831999/ft1_filtered_4FGL_J2324.6+3115_daily_bin646.fits evtable="EVENTS" scfile=/scratch/kocevski/831999/ft2_4FGL_J2324.6+3115_daily_bin646.fits sctable="SC_DATA" expcube=/scratch/kocevski/831999/ltcube_406771201_407030401_4FGL_J2324.6+3115_daily_bin646.fits outfile=/scratch/kocevski/831999/expmap_406771201_407030401_4FGL_J2324.6+3115_daily_bin646.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/831999/ltcube_406771201_407030401_4FGL_J2324.6+3115_daily_bin646.fits
.....................!
real 192.80
user 186.73
sys 5.68

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/831999/ft1_filtered_4FGL_J2324.6+3115_daily_bin646.fits scfile=/scratch/kocevski/831999/ft2_4FGL_J2324.6+3115_daily_bin646.fits outfile=/scratch/kocevski/831999/cmap_406771201_407030401_4FGL_J2324.6+3115_daily_bin646.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/831999/ft1_filtered_4FGL_J2324.6+3115_daily_bin646.fits scfile=/scratch/kocevski/831999/ft2_4FGL_J2324.6+3115_daily_bin646.fits outfile=/scratch/kocevski/831999/cmap_HighResolution_406771201_407030401_4FGL_J2324.6+3115_daily_bin646.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/831999/ft1_filtered_4FGL_J2324.6+3115_daily_bin646.fits evtable="EVENTS" scfile=/scratch/kocevski/831999/ft2_4FGL_J2324.6+3115_daily_bin646.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/831999/Model_4FGL_J2324.6+3115_daily_bin646.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/831999/ft1_filtered_4FGL_J2324.6+3115_daily_bin646.fits....................!
real 99.75
user 98.27
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2722       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6151       1.0000         .10000E-03   10000.    
     3 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.991       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18589E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3648       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.476       1.0000         .10000E-03   10000.    
    10 'norm      '    8.2665       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.959       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1594       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.734       1.0000         .10000E-03   10000.    
    14 'norm      '    11.029       1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.406       1.0000         .10000E-03   10000.    
    17 'norm      '    .76827E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.389       1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.956       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.4926       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0012       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0060       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=   9084.073     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2611 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2603        26.367        .21355E-05    .57544E-04
   2  Prefactor     3.6175        6.1501        .63962E-06    .13604E-02
   3  norm          .10000E-03    .82437        .19322E-06** at limit **
   4  Prefactor     .10001E-03    29.511       -.41956E-05** at limit **
   5  Prefactor     25.975        24.252       -.91324E-06   -.28286E-03
   6  Prefactor     .10000E-03    5.7318       -.40366E-07** at limit **
   7  Prefactor     .10001E-03    5.0951       -.16382E-05** at limit **
   8  Prefactor     8.3649        12.173       -.77141E-08   -.79327E-04
   9  Prefactor     11.473        19.835        .45729E-06    .48043E-04
  10  norm          8.2667        2.2532        .63484E-07   -.53619E-04
  11  Prefactor     19.963        25.422       -.38252E-06   -.12390E-03
  12  Prefactor     7.1582        11.807        .15099E-05    .35736E-03
  13  Prefactor     27.734        29.020        .52285E-06   -.25872E-04
  14  norm          11.028        7.4591       -.15557E-06   -.34646E-03
  15  norm          .10000E-03    8.1804       -.89973E-08** at limit **
  16  Prefactor     29.410        26.422       -.76602E-06   -.24882E-03
  17  norm          .81533E-01    5.2812       -.25186E-05    .13519E-02
  18  Prefactor     37.391        24.424       -.22083E-06   -.75335E-04
  19  Prefactor     39.950        35.516        .25124E-05    .21917E-03
  20  Prefactor     .10000E-03    47.977        .18095E-05** at limit **
  21  Prefactor     6.4962        8.6061       -.38629E-06   -.14773E-03
  22  Normalizat    1.0011        .22917       -.17728E-05   -.27014E-03
  23  Prefactor     1.0061        .10548       -.14121E-06   -.49444E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.26029
  Prefactor  = 3.61746
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 25.9751
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 8.36493
  Prefactor  = 11.4732
  norm       = 8.26674
  Prefactor  = 19.9626
  Prefactor  = 7.15821
  Prefactor  = 27.7342
  norm       = 11.0282
  norm       = 0.0001
  Prefactor  = 29.4103
  norm       = 0.0815334
  Prefactor  = 37.391
  Prefactor  = 39.9501
  Prefactor  = 0.000100001
  Prefactor  = 6.49624
  Normalizat = 1.0011
  Prefactor  = 1.00608
 **********
 **   18 **HESSE 
 **********

 FCN=   9084.073     FROM HESSE     STATUS=OK           376 CALLS     2987 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2603        25.907        .22386E-03   -1.5347    
   2  Prefactor     3.6175        6.7890        .10625E-02   -1.5328    
   3  norm          .10000E-03    1.6870        .15443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    29.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.975        24.740        .78577E-04   -1.4688    
   6  Prefactor     .10000E-03    5.7344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    22.634        .32446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.3649        12.169        .13861E-03   -1.5129    
   9  Prefactor     11.473        19.864        .11826E-03   -1.5030    
  10  norm          8.2667        2.2541        .69863E-04   -1.5133    
  11  Prefactor     19.963        25.444        .89651E-04   -1.4814    
  12  Prefactor     7.1582        11.715        .14992E-03   -1.5173    
  13  Prefactor     27.734        29.042        .76073E-04   -1.4654    
  14  norm          11.028        7.4400        .12064E-03   -1.5044    
  15  norm          .10000E-03    8.3622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.410        26.468        .73884E-04   -1.4623    
  17  norm          .81533E-01    18.497        .19829E-02   -1.5651    
  18  Prefactor     37.391        24.429        .65545E-04   -1.4484    
  19  Prefactor     39.950        35.758        .63412E-04   -1.4443    
  20  Prefactor     .10000E-03    48.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.4962        8.5175        .15750E-03   -1.5198    
  22  Normalizat    1.0011        .26395        .38295E-03   -.92994    
  23  Prefactor     1.0061        .12338        .18495E-03   -.92527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90988e-08
Minuit parameter uncertainties:
  1  18.3916
  2  6.79045
  3  3.77372e-05
  4  0.000782997
  5  24.7497
  6  1.00205e-06
  7  0.000910169
  8  12.1727
  9  19.8757
  10  2.25415
  11  25.4573
  12  11.7187
  13  29.057
  14  7.4406
  15  1.23634e-05
  16  26.4789
  17  2.45539
  18  24.4357
  19  35.7775
  20  0.000461719
  21  8.51909
  22  0.264297
  23  0.123418
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.941e+01  2.648e+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.006e+00  1.234e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.001e+00  2.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 351.170 31.257
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 9.46e-08 +/- 8.51e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.82e-05

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

Saving results to:
/scratch/kocevski/831999/likelihoodResults_406771201_407030401_4FGL_J2324.6+3115_daily_bin646.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) = 9083.48017921
delta logL = 0.592438084122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9083.45204821
delta logL = 0.620569089935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.903       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0443       1.0000          .0000       10.000    
     3 'Normalizat'    .94526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0275       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=   9083.452     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      246 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.903        137.79        .27878E-02    .12868E-03
   2  Index         4.0444        3.9039        .20537        .12849E-03
   3  Normalizat    .94527        .72578E-01    .88651E-01    .28098E-04
   4  Prefactor     1.0275        .35252E-01    .41458E-01   -.10051E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9028
  Index      = 4.04438
  Normalizat = 0.945266
  Prefactor  = 1.02754
 **********
 **   18 **HESSE 
 **********

 FCN=   9083.452     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.903        785.04        .11151E-03   -1.4989    
   2  Index         4.0444        5.0175        .78845E-02   -.19231    
   3  Normalizat    .94527        .26462        .39257E-03   -.94887    
   4  Prefactor     1.0275        .15407        .18323E-03   -.91817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97474e-06
Minuit parameter uncertainties:
  1  204.157
  2  13.4957
  3  0.264989
  4  0.154135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831999': 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) = 9083.45204818
delta logL = 0.620569117393

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.290e+01  2.042e+02  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  4.044e+00  1.350e+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:  1.028e+00  1.541e-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.453e-01  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.40
Ra Dec: 351.170 31.257
Photon Index (Free Index): 4.04 +/- 13.50
Photon Flux (Free Index): 1.36e-07 +/- 1.61e-07
Energy Flux (Free Index): 2.02e-05 +/- 6.52e-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/831999/cmap_HighResolution_406771201_407030401_4FGL_J2324.6+3115_daily_bin646.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-02', comment='SUCCESS', photon_flux='9.46e-08', energy_flux2='2.02e-05', photon_flux_error='8.51e-08', dlogl='6.21e-01', energy_flux='2.02e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-29 16:01:34.495529', photon_index_error2='13.50', photon_index2='4.04', ts='1.92', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='2.34e-07', energy_flux_error2='6.52e-05', EG='1.00', time_epoch_completed='1632956494.5', return_code='0', job_id='831999', GAL2='1.03', EG2='0.95', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='1.61e-07', ts2='3.40', photon_index='2.88' WHERE bin_id='646' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:01:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 831999: <4FGL_J2324.6+3115_daily_bin646> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin646> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 15:45:34 2021
Job was executed on host(s) <bullet0088>, 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 16:01:35 2021
Results reported at Wed Sep 29 16:01:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin646 351.17 31.2573 406771201 407030401 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 :                                   830.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            961 sec.

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

