/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 42 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 = 7450
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.6+3115_daily_bin50
RA = 351.17, Dec = 31.2573
tmin = 252288001, tmax = 252547201
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='829094', job_status='RUN', time_executed='2021-09-29 15:36:30.624611', time_epoch_executed='1632954990.62' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/829094

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/829094/ft1_4FGL_J2324.6+3115_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/829094/ft2_4FGL_J2324.6+3115_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/829094/ft1_4FGL_J2324.6+3115_daily_bin50.fits outfile=/scratch/kocevski/829094/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin50.fits ra=351.17 dec=31.2573 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.56
user 2.35
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/829094/ft1_filtered_4FGL_J2324.6+3115_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/829094/ft2_4FGL_J2324.6+3115_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/829094/ltcube_252288001_252547201_4FGL_J2324.6+3115_daily_bin50.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/829094/ft2_4FGL_J2324.6+3115_daily_bin50.fits
.....................!
real 12.37
user 12.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/829094/ft1_filtered_4FGL_J2324.6+3115_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/829094/ft2_4FGL_J2324.6+3115_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/829094/ltcube_252288001_252547201_4FGL_J2324.6+3115_daily_bin50.fits outfile=/scratch/kocevski/829094/expmap_252288001_252547201_4FGL_J2324.6+3115_daily_bin50.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/829094/ltcube_252288001_252547201_4FGL_J2324.6+3115_daily_bin50.fits
.....................!
real 189.88
user 185.33
sys 4.18

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

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

This is gtbin version HEAD
real 0.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/829094/ft1_filtered_4FGL_J2324.6+3115_daily_bin50.fits scfile=/scratch/kocevski/829094/ft2_4FGL_J2324.6+3115_daily_bin50.fits outfile=/scratch/kocevski/829094/cmap_HighResolution_252288001_252547201_4FGL_J2324.6+3115_daily_bin50.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.172       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.795       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    58.620       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3741       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.4590       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9430       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.043       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3398       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .29831       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.815       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.907       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.547       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78613       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0599       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=   7348.519     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2583 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.172        22.674        .14238E-06   -.49636E-05
   2  Prefactor     10.795        8.0693        .46941E-06   -.23062E-04
   3  norm          .10000E-03    .35522        .50376E-07** at limit **
   4  Prefactor     58.573        85.928        .70772E-05    .31894E-05
   5  Prefactor     .10000E-03    4.9146        .14262E-07** at limit **
   6  Prefactor     .10000E-03    8.3897       -.55246E-06** at limit **
   7  Prefactor     2.3731        5.2509        .48502E-05   -.42106E-05
   8  Prefactor     .10000E-03    11.670        .29667E-06** at limit **
   9  Prefactor     .10000E-03    12.466       -.30958E-06** at limit **
  10  norm          3.4588        1.5607       -.23935E-09   -.69589E-04
  11  Prefactor     6.9356        15.299        .53170E-06   -.65943E-05
  12  Prefactor     17.052        15.856       -.51465E-06   -.63102E-04
  13  Prefactor     .10000E-03    5.7704       -.34943E-07** at limit **
  14  norm          5.3401        5.1367        .11862E-05   -.11353E-03
  15  norm          .10000E-03    7.1654        .28488E-06** at limit **
  16  Prefactor     .10000E-03    10.013        .51638E-06** at limit **
  17  norm          .29172        1.5732       -.12125E-06    .21087E-04
  18  Prefactor     .10000E-03    36.166       -.23461E-07** at limit **
  19  Prefactor     14.802        24.988        .21984E-05   -.42058E-06
  20  Prefactor     27.925        74.928       -.39269E-05   -.75639E-05
  21  Prefactor     11.543        12.814        .75611E-06   -.10110E-04
  22  Normalizat    .78625        .21067       -.67837E-06   -.83998E-04
  23  Prefactor     1.0599        .10817       -.46985E-06   -.37404E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.172
  Prefactor  = 10.7949
  norm       = 0.0001
  Prefactor  = 58.5732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.37307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.45879
  Prefactor  = 6.93564
  Prefactor  = 17.0523
  Prefactor  = 0.0001
  norm       = 5.34006
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.29172
  Prefactor  = 0.0001
  Prefactor  = 14.802
  Prefactor  = 27.9252
  Prefactor  = 11.5426
  Normalizat = 0.786254
  Prefactor  = 1.05992
 **********
 **   18 **HESSE 
 **********

 FCN=   7348.519     FROM HESSE     STATUS=OK           378 CALLS     2961 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.172        22.653        .85065E-04   -1.4766    
   2  Prefactor     10.795        8.0808        .60970E-03   -1.5051    
   3  norm          .10000E-03    .54227        .99438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     58.573        85.996        .26200E-03   -1.4176    
   5  Prefactor     .10000E-03    4.9165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.4013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3731        5.2576        .13295E-02   -1.5400    
   8  Prefactor     .10000E-03    11.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.4588        1.5582        .68940E-04   -1.5336    
  11  Prefactor     6.9356        15.291        .15226E-03   -1.5181    
  12  Prefactor     17.052        15.735        .97018E-04   -1.4882    
  13  Prefactor     .10000E-03    5.7727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3401        5.1313        .86959E-03   -1.5246    
  15  norm          .10000E-03    7.1911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29172        6.8924        .19941E-02   -1.5600    
  18  Prefactor     .10000E-03    36.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.802        25.011        .10406E-03   -1.4938    
  20  Prefactor     27.925        74.855        .75836E-04   -1.4651    
  21  Prefactor     11.543        12.794        .11789E-03   -1.5028    
  22  Normalizat    .78625        .23826        .37096E-03   -1.0058    
  23  Prefactor     1.0599        .12398        .16769E-03   -.90758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31636e-10
Minuit parameter uncertainties:
  1  22.6615
  2  8.08157
  3  1.78416e-06
  4  86.1794
  5  8.7632e-07
  6  1.06071e-05
  7  5.25864
  8  1.23541e-05
  9  7.06765e-06
  10  1.55819
  11  15.2999
  12  15.7384
  13  6.956e-07
  14  5.1317
  15  7.40475e-06
  16  4.79772e-06
  17  2.83584
  18  4.11117e-05
  19  25.0285
  20  75.1079
  21  12.797
  22  0.238579
  23  0.124015
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  4.798e-06  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.060e+00  1.240e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  7.863e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 8.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/829094/likelihoodResults_252288001_252547201_4FGL_J2324.6+3115_daily_bin50.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): 102
logL (Free Index) = 7348.51933908
delta logL = -0.000473075003356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7348.51886722
delta logL = -1.20665299619e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8460       1.0000          .0000       10.000    
     3 'Normalizat'    .78589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0601       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=   7348.519     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      260 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    105.34        .18142E-01** at limit **
   2  Index         2.1661        5.9264        .50000       -.10320E-06
   3  Normalizat    .78625        .12954E-01    .37096E-03   -.21484E-03
   4  Prefactor     1.0599        .67563E-02    .16769E-03   -.46701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Index      = 2.16607
  Normalizat = 0.786254
  Prefactor  = 1.05992
 **********
 **   18 **HESSE 
 **********

 FCN=   7348.519     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    2113.4        .70613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1661        8.0969        .50000       -.60260    
   3  Normalizat    .78625        .70293E-01    .14838E-04   -1.0058    
   4  Prefactor     1.0599        .36666E-01    .33538E-04   -.90758    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45256e-07
Minuit parameter uncertainties:
  1  0.0129035
  2  1307.62
  3  0.0703012
  4  0.0366671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/829094': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7348.51886375
delta logL = 2.26001975534e-06

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  1.290e-02  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.166e+00  1.308e+03  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.060e+00  3.667e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  7.863e-01  7.030e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.170 31.257

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/829094/cmap_HighResolution_252288001_252547201_4FGL_J2324.6+3115_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.92e-03', job_status='DONE', photon_flux_upper_limit='8.71e-08', time_completed='2021-09-29 15:48:42.304055', job_id='829094', GAL2='1.06', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632955722.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='50' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:48:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 829094: <4FGL_J2324.6+3115_daily_bin50> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin50> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 15:35:38 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:35:40 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:35:40 2021
Terminated at Wed Sep 29 15:48:43 2021
Results reported at Wed Sep 29 15:48:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin50 351.17 31.2573 252288001 252547201 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 :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            785 sec.

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

