/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 173 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 = 7383
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.6+3115_daily_bin308
RA = 351.17, Dec = 31.2573
tmin = 319161601, tmax = 319420801
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='830441', job_status='RUN', time_executed='2021-09-29 15:43:24.113711', time_epoch_executed='1632955404.11' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830441

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830441/ft1_4FGL_J2324.6+3115_daily_bin308.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830441/ft2_4FGL_J2324.6+3115_daily_bin308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830441/ft1_4FGL_J2324.6+3115_daily_bin308.fits outfile=/scratch/kocevski/830441/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin308.fits ra=351.17 dec=31.2573 rad=12.0 tmin=319161601.0 tmax=319420801.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 4.51
user 4.23
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830441/ft1_filtered_4FGL_J2324.6+3115_daily_bin308.fits evtable="EVENTS" scfile=/scratch/kocevski/830441/ft2_4FGL_J2324.6+3115_daily_bin308.fits sctable="SC_DATA" expcube=/scratch/kocevski/830441/ltcube_319161601_319420801_4FGL_J2324.6+3115_daily_bin308.fits outfile=/scratch/kocevski/830441/expmap_319161601_319420801_4FGL_J2324.6+3115_daily_bin308.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/830441/ltcube_319161601_319420801_4FGL_J2324.6+3115_daily_bin308.fits
.....................!
real 192.48
user 187.07
sys 4.99

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/830441/ft1_filtered_4FGL_J2324.6+3115_daily_bin308.fits scfile=/scratch/kocevski/830441/ft2_4FGL_J2324.6+3115_daily_bin308.fits outfile=/scratch/kocevski/830441/cmap_319161601_319420801_4FGL_J2324.6+3115_daily_bin308.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830441/ft1_filtered_4FGL_J2324.6+3115_daily_bin308.fits scfile=/scratch/kocevski/830441/ft2_4FGL_J2324.6+3115_daily_bin308.fits outfile=/scratch/kocevski/830441/cmap_HighResolution_319161601_319420801_4FGL_J2324.6+3115_daily_bin308.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.446       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0796       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8303       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15103E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13854       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.149       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.652       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.183       1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.518       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.5940       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .69246       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1759       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=   7293.681     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2623 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6488        .25727E-08** at limit **
   2  Prefactor     16.444        10.079       -.87843E-07   -.15537E-04
   3  norm          2.0796        1.4092       -.58374E-07   -.48314E-04
   4  Prefactor     1.8147        928.41       -.94984E-04    .16228E-06
   5  Prefactor     .10000E-03    17.296       -.40549E-06** at limit **
   6  Prefactor     .10000E-03    19.932        .13076E-06** at limit **
   7  Prefactor     .10000E-03    5.0888       -.21553E-07** at limit **
   8  Prefactor     .23803E-01    11.582       -.75253E-06    .61605E-05
   9  Prefactor     .10000E-03    8.5712       -.13716E-06** at limit **
  10  norm          14.149        2.8802       -.42924E-07    .60055E-04
  11  Prefactor     .10000E-03    8.4665        .16122E-06** at limit **
  12  Prefactor     15.645        15.807        .91990E-06   -.14258E-04
  13  Prefactor     27.181        35.891       -.53439E-05    .60052E-05
  14  norm          .10000E-03    2.4332        .18045E-07** at limit **
  15  norm          19.517        12.920        .62364E-06    .40443E-05
  16  Prefactor     .10000E-03    8.0026        .40748E-07** at limit **
  17  norm          .10000E-03    .95277       -.28458E-07** at limit **
  18  Prefactor     .10000E-03    15.494        .10684E-07** at limit **
  19  Prefactor     9.5863        35.200       -.11041E-04   -.70956E-05
  20  Prefactor     .10000E-03    18.624       -.92157E-07** at limit **
  21  Prefactor     .10000E-03    3.7777       -.20216E-07** at limit **
  22  Normalizat    .69259        .25308        .13264E-05    .68492E-04
  23  Prefactor     1.1759        .12239        .69420E-06    .20038E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 16.4439
  norm       = 2.07963
  Prefactor  = 1.81474
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0238028
  Prefactor  = 0.0001
  norm       = 14.1488
  Prefactor  = 0.0001
  Prefactor  = 15.6451
  Prefactor  = 27.1807
  norm       = 0.0001
  norm       = 19.5167
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.58627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.692589
  Prefactor  = 1.17593
 **********
 **   18 **HESSE 
 **********

 FCN=   7293.681     FROM HESSE     STATUS=OK           378 CALLS     3001 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6510        .17984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.444        10.081        .98761E-04   -1.4897    
   3  norm          2.0796        1.3699        .78519E-04   -1.5420    
   4  Prefactor     1.8147        954.13        .30850E-03   -1.5439    
   5  Prefactor     .10000E-03    163.15        .66869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23803E-01    14.296        .83704E-01   -1.5677    
   9  Prefactor     .10000E-03    8.5729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.149        2.8785        .62132E-04   -1.4955    
  11  Prefactor     .10000E-03    8.4728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.645        15.769        .10124E-03   -1.4917    
  13  Prefactor     27.181        35.915        .76837E-04   -1.4665    
  14  norm          .10000E-03    2.4444        .13007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.517        12.922        .90660E-04   -1.4824    
  16  Prefactor     .10000E-03    8.0134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .95613        .81384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.5863        35.322        .12938E-03   -1.5089    
  20  Prefactor     .10000E-03    18.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.8133        .16210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .69259        .27260        .45024E-03   -1.0419    
  23  Prefactor     1.1759        .13394        .17614E-03   -.87075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96187e-11
Minuit parameter uncertainties:
  1  1.49079e-06
  2  10.0825
  3  1.36993
  4  84.6122
  5  0.00164999
  6  1.08365e-05
  7  5.34921e-06
  8  1.1645
  9  3.04543e-06
  10  2.87852
  11  8.48906e-06
  12  15.7736
  13  35.9436
  14  2.61813e-06
  15  12.9234
  16  1.32292e-05
  17  3.11924e-06
  18  1.13888e-06
  19  35.399
  20  6.82177e-06
  21  5.07763e-06
  22  0.273131
  23  0.133979
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  1.323e-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:  1.176e+00  1.340e-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:  6.926e-01  2.731e-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.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/830441/likelihoodResults_319161601_319420801_4FGL_J2324.6+3115_daily_bin308.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) = 7293.68185767
delta logL = -0.000594371106672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7293.68126381
delta logL = -5.13516170031e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8633       1.0000          .0000       10.000    
     3 'Normalizat'    .69244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1760       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=   7293.681     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10168E-03    255.67        .18142E-02** at limit **
   2  Index         2.7607        6.9800        .50000        .98624E-05
   3  Normalizat    .69259        .34658E-01    .45024E-03    .92163E-05
   4  Prefactor     1.1759        .17387E-01    .17614E-03    .17363E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101678
  Index      = 2.76065
  Normalizat = 0.692589
  Prefactor  = 1.17593
 **********
 **   18 **HESSE 
 **********

 FCN=   7293.681     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10168E-03    926.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7607        6.1242        .50000       -.46438    
   3  Normalizat    .69259        .75836E-01    .18010E-04   -1.0419    
   4  Prefactor     1.1759        .38051E-01    .70455E-05   -.87075    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.37791e-08
Minuit parameter uncertainties:
  1  0.0801132
  2  2081.49
  3  0.0758477
  4  0.0380514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830441': 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) = 7293.6812631
delta logL = 1.99672285817e-07

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.017e-04  8.011e-02  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.761e+00  2.081e+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.176e+00  3.805e-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:  6.926e-01  7.585e-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/830441/cmap_HighResolution_319161601_319420801_4FGL_J2324.6+3115_daily_bin308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.82e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-29 15:55:33.031225', job_id='830441', GAL2='1.18', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1632956133.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='308' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:55:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 830441: <4FGL_J2324.6+3115_daily_bin308> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin308> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 15:40:21 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:40:23 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:40:23 2021
Terminated at Wed Sep 29 15:55:33 2021
Results reported at Wed Sep 29 15:55:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin308 351.17 31.2573 319161601 319420801 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 :                                   728.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

