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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin502
RA = 351.17, Dec = 31.2573
tmin = 369446401, tmax = 369705601
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='831769', job_status='RUN', time_executed='2021-09-29 15:45:31.764655', time_epoch_executed='1632955531.76' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831769

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831769/ft1_4FGL_J2324.6+3115_daily_bin502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831769/ft2_4FGL_J2324.6+3115_daily_bin502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831769/ft1_4FGL_J2324.6+3115_daily_bin502.fits outfile=/scratch/kocevski/831769/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin502.fits ra=351.17 dec=31.2573 rad=12.0 tmin=369446401.0 tmax=369705601.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.42
user 3.24
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/831769/ft1_filtered_4FGL_J2324.6+3115_daily_bin502.fits" evtable="EVENTS" scfile=/scratch/kocevski/831769/ft2_4FGL_J2324.6+3115_daily_bin502.fits sctable="SC_DATA" outfile=/scratch/kocevski/831769/ltcube_369446401_369705601_4FGL_J2324.6+3115_daily_bin502.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/831769/ft2_4FGL_J2324.6+3115_daily_bin502.fits
.....................!
real 11.83
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831769/ft1_filtered_4FGL_J2324.6+3115_daily_bin502.fits evtable="EVENTS" scfile=/scratch/kocevski/831769/ft2_4FGL_J2324.6+3115_daily_bin502.fits sctable="SC_DATA" expcube=/scratch/kocevski/831769/ltcube_369446401_369705601_4FGL_J2324.6+3115_daily_bin502.fits outfile=/scratch/kocevski/831769/expmap_369446401_369705601_4FGL_J2324.6+3115_daily_bin502.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/831769/ltcube_369446401_369705601_4FGL_J2324.6+3115_daily_bin502.fits
.....................!
real 189.23
user 185.03
sys 3.88

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/831769/ft1_filtered_4FGL_J2324.6+3115_daily_bin502.fits scfile=/scratch/kocevski/831769/ft2_4FGL_J2324.6+3115_daily_bin502.fits outfile=/scratch/kocevski/831769/cmap_369446401_369705601_4FGL_J2324.6+3115_daily_bin502.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/831769/ft1_filtered_4FGL_J2324.6+3115_daily_bin502.fits scfile=/scratch/kocevski/831769/ft2_4FGL_J2324.6+3115_daily_bin502.fits outfile=/scratch/kocevski/831769/cmap_HighResolution_369446401_369705601_4FGL_J2324.6+3115_daily_bin502.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/831769/ft1_filtered_4FGL_J2324.6+3115_daily_bin502.fits evtable="EVENTS" scfile=/scratch/kocevski/831769/ft2_4FGL_J2324.6+3115_daily_bin502.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/831769/Model_4FGL_J2324.6+3115_daily_bin502.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/831769/ft1_filtered_4FGL_J2324.6+3115_daily_bin502.fits.....................!
real 89.69
user 88.40
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.253       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.893       1.0000         .10000E-03   10000.    
     3 'norm      '    .95604       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8331       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.882       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1050       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6036       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4971       1.0000         .10000E-03   10000.    
    15 'norm      '    .18150       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11059E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4904       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7568       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6892       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15956E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0308       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91432       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=   8307.588     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2976 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.251        20.587        .64889E-06   -.66068E-04
   2  Prefactor     13.894        9.8091       -.33518E-06   -.10773E-03
   3  norm          .95635        1.1952        .11775E-06    .18115E-03
   4  Prefactor     .10000E-03    18.288        .22734E-06** at limit **
   5  Prefactor     .10000E-03    8.8255       -.18994E-06** at limit **
   6  Prefactor     .10000E-03    4.5905       -.33374E-07** at limit **
   7  Prefactor     1.8339        5.0745       -.18400E-05   -.24833E-03
   8  Prefactor     .10000E-03    2.5733       -.10057E-07** at limit **
   9  Prefactor     33.886        24.213        .30206E-06    .18004E-04
  10  norm          1.1056        1.3050       -.88657E-07   -.15548E-03
  11  Prefactor     .10000E-03    8.2808       -.59382E-08** at limit **
  12  Prefactor     4.6005        10.258       -.34612E-06   -.33151E-04
  13  Prefactor     .10000E-03    5.4689        .18179E-07** at limit **
  14  norm          3.4990        5.9495        .76414E-07    .99727E-05
  15  norm          .30622        85.938        .42101E-05   -.89373E-04
  16  Prefactor     .10000E-03    37.431        .36538E-06** at limit **
  17  norm          2.4886        2.1137        .83022E-08   -.16295E-04
  18  Prefactor     5.7675        20.138       -.68714E-06   -.28581E-04
  19  Prefactor     .10000E-03    70.903        .37995E-05** at limit **
  20  Prefactor     6.6671        87.899        .17519E-05   -.34926E-04
  21  Prefactor     .10003E-03    5.4840        .15223E-06** at limit **
  22  Normalizat    1.0309        .20265        .34020E-06   -.62392E-04
  23  Prefactor     .91418        .98077E-01   -.17759E-07   -.12678E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 34.251
  Prefactor  = 13.8938
  norm       = 0.956346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.83392
  Prefactor  = 0.0001
  Prefactor  = 33.8865
  norm       = 1.10555
  Prefactor  = 0.0001
  Prefactor  = 4.60053
  Prefactor  = 0.0001
  norm       = 3.49905
  norm       = 0.306223
  Prefactor  = 0.0001
  norm       = 2.48864
  Prefactor  = 5.76751
  Prefactor  = 0.0001
  Prefactor  = 6.66714
  Prefactor  = 0.000100029
  Normalizat = 1.03087
  Prefactor  = 0.914184
 **********
 **   18 **HESSE 
 **********

 FCN=   8307.588     FROM HESSE     STATUS=OK           376 CALLS     3352 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.251        20.506        .68470E-04   -1.4537    
   2  Prefactor     13.894        9.8403        .10746E-03   -1.4962    
   3  norm          .95635        1.1082        .10769E-02   -1.5512    
   4  Prefactor     .10000E-03    18.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8339        5.1365        .30821E-03   -1.5437    
   8  Prefactor     .10000E-03    2.5770        .14279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.886        24.214        .68843E-04   -1.4543    
  10  norm          1.1056        1.2713        .10651E-03   -1.5498    
  11  Prefactor     .10000E-03    8.2952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6005        10.211        .18760E-03   -1.5279    
  13  Prefactor     .10000E-03    5.4707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4990        5.8928        .21621E-03   -1.5334    
  15  norm          .30622        91.990        .48513E-02   -1.5597    
  16  Prefactor     .10000E-03    38.049        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4886        2.1100        .11684E-03   -1.5392    
  18  Prefactor     5.7675        20.155        .16740E-03   -1.5228    
  19  Prefactor     .10000E-03    69.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.6671        86.386        .15515E-03   -1.5191    
  21  Prefactor     .10003E-03    14.106        .31999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0309        .23651        .34240E-03   -.92003    
  23  Prefactor     .91418        .11588        .17421E-03   -.95647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46288e-08
Minuit parameter uncertainties:
  1  20.51
  2  9.84145
  3  1.10822
  4  7.49573e-06
  5  1.30454e-05
  6  9.54643e-07
  7  5.13769
  8  6.72193e-07
  9  24.2211
  10  1.2713
  11  1.89485e-06
  12  10.2144
  13  2.19516e-07
  14  5.89376
  15  10.6297
  16  9.70494e-05
  17  2.11002
  18  20.1789
  19  0.000108509
  20  48.0828
  21  0.00128372
  22  0.236751
  23  0.115915
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  9.705e-05  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:  9.142e-01  1.159e-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.031e+00  2.368e-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: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/831769/likelihoodResults_369446401_369705601_4FGL_J2324.6+3115_daily_bin502.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) = 8307.58803929
delta logL = -0.000125336995552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8307.58803906
delta logL = -0.000125108912471

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96121E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8755       1.0000          .0000       10.000    
     3 'Normalizat'    1.0307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91425       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8307.529     FROM MIGRAD    STATUS=FAILED       220 CALLS      372 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87022        75.545        .45643E-02   -.25235E-01
   2  Index         4.7268        7.0646        .50000       -.34290E-05
   3  Normalizat    1.0085        .35234E-01    .34240E-03   -.52527E-04
   4  Prefactor     .92032        .17065E-01    .17421E-03   -.76666E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8307.529     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      444 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87022        75.545        .34518E-03   -.25235E-01
   2  Index         4.7268        7.0646        .48796E-02   -.34290E-05
   3  Normalizat    1.0085        .35234E-01    .86242E-04   -.52527E-04
   4  Prefactor     .92032        .17065E-01    .25656E-04   -.76666E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8307.529     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      477 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87028        10.500        .91285E-03   -.10276E-02
   2  Index         4.7268        7.1117        .14084E-01    .10285E-03
   3  Normalizat    1.0085        .23682        .13696E-04    .59102E-04
   4  Prefactor     .92032        .11227        .34842E-04    .57167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.870279
  Index      = 4.72679
  Normalizat = 1.00848
  Prefactor  = 0.920317
 **********
 **   18 **HESSE 
 **********

 FCN=   8307.529     FROM HESSE     STATUS=OK            27 CALLS      504 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87028        9.5717        .18257E-03   -1.5895    
   2  Index         4.7268        7.0534        .28168E-02   -.54669E-01
   3  Normalizat    1.0085        .23679        .27392E-05   -.92747    
   4  Prefactor     .92032        .11218        .69684E-05   -.95435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33699e-11
Minuit parameter uncertainties:
  1  5.77322
  2  5.05678
  3  0.237038
  4  0.11221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831769': 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) = 8307.52927276
delta logL = 0.0586411965978

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  8.703e-01  5.773e+00  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  4.727e+00  5.057e+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:  9.203e-01  1.122e-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.008e+00  2.370e-01  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/831769/cmap_HighResolution_369446401_369705601_4FGL_J2324.6+3115_daily_bin502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.87e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-29 15:59:10.053266', job_id='831769', GAL2='0.92', fit_tolerance='1e-08', EG2='1.01', EG='1.03', time_epoch_completed='1632956350.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='5.86e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='502' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:59:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 831769: <4FGL_J2324.6+3115_daily_bin502> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin502 351.17 31.2573 369446401 369705601 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 :                                   815.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            834 sec.

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

