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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin613
RA = 351.19, Dec = 8.0282
tmin = 398217601, tmax = 398476801
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='840629', job_status='RUN', time_executed='2021-09-29 16:15:35.540730', time_epoch_executed='1632957335.54' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='613'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840629

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840629/ft1_4FGL_J2324.7+0801_daily_bin613.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840629/ft2_4FGL_J2324.7+0801_daily_bin613.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840629/ft1_4FGL_J2324.7+0801_daily_bin613.fits outfile=/scratch/kocevski/840629/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin613.fits ra=351.19 dec=8.0282 rad=12.0 tmin=398217601.0 tmax=398476801.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 6.54
user 6.23
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/840629/ft2_4FGL_J2324.7+0801_daily_bin613.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/840629/ft2_4FGL_J2324.7+0801_daily_bin613.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/840629/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin613.fits evtable="EVENTS" outfile="/scratch/kocevski/840629/ft1_filtered_4FGL_J2324.7+0801_daily_bin613.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840629/ft1_filtered_4FGL_J2324.7+0801_daily_bin613.fits" evtable="EVENTS" scfile=/scratch/kocevski/840629/ft2_4FGL_J2324.7+0801_daily_bin613.fits sctable="SC_DATA" outfile=/scratch/kocevski/840629/ltcube_398217601_398476801_4FGL_J2324.7+0801_daily_bin613.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/840629/ft2_4FGL_J2324.7+0801_daily_bin613.fits
.....................!
real 11.19
user 10.81
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840629/ft1_filtered_4FGL_J2324.7+0801_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/840629/ft2_4FGL_J2324.7+0801_daily_bin613.fits sctable="SC_DATA" expcube=/scratch/kocevski/840629/ltcube_398217601_398476801_4FGL_J2324.7+0801_daily_bin613.fits outfile=/scratch/kocevski/840629/expmap_398217601_398476801_4FGL_J2324.7+0801_daily_bin613.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/840629/ltcube_398217601_398476801_4FGL_J2324.7+0801_daily_bin613.fits
.....................!
real 191.12
user 185.39
sys 4.97

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.7+0801 @ 351.19 8.0282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/840629/ft1_filtered_4FGL_J2324.7+0801_daily_bin613.fits scfile=/scratch/kocevski/840629/ft2_4FGL_J2324.7+0801_daily_bin613.fits outfile=/scratch/kocevski/840629/cmap_398217601_398476801_4FGL_J2324.7+0801_daily_bin613.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.19 yref=8.0282 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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840629/ft1_filtered_4FGL_J2324.7+0801_daily_bin613.fits scfile=/scratch/kocevski/840629/ft2_4FGL_J2324.7+0801_daily_bin613.fits outfile=/scratch/kocevski/840629/cmap_HighResolution_398217601_398476801_4FGL_J2324.7+0801_daily_bin613.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.19 yref=8.0282 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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840629/ft1_filtered_4FGL_J2324.7+0801_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/840629/ft2_4FGL_J2324.7+0801_daily_bin613.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840629/Model_4FGL_J2324.7+0801_daily_bin613.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/840629/ft1_filtered_4FGL_J2324.7+0801_daily_bin613.fits.....................!
real 95.20
user 93.82
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/840629/ft1_filtered_4FGL_J2324.7+0801_daily_bin613.fits', '/scratch/kocevski/840629/ft2_4FGL_J2324.7+0801_daily_bin613.fits', expMap='/scratch/kocevski/840629/expmap_398217601_398476801_4FGL_J2324.7+0801_daily_bin613.fits', expCube='/scratch/kocevski/840629/ltcube_398217601_398476801_4FGL_J2324.7+0801_daily_bin613.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/840629/Model_4FGL_J2324.7+0801_daily_bin613.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7+0801'

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.182e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/840629/ft1_filtered_4FGL_J2324.7+0801_daily_bin613.fits
Spacecraft file(s): /scratch/kocevski/840629/ft2_4FGL_J2324.7+0801_daily_bin613.fits
Exposure map: /scratch/kocevski/840629/expmap_398217601_398476801_4FGL_J2324.7+0801_daily_bin613.fits
Exposure cube: /scratch/kocevski/840629/ltcube_398217601_398476801_4FGL_J2324.7+0801_daily_bin613.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/840629/Model_4FGL_J2324.7+0801_daily_bin613.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) = 9048.57468669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5769       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2517       1.0000         .10000E-03   10000.    
     3 'norm      '    49.350       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.175       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.918       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11090E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.9415       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7820       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.012       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    94.248       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.198       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.826       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6436       1.0000         .10000E-03   10000.    
    19 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.083       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .91868       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0375       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94021       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9048.538     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2888 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5741        11.912        .29749E-06   -.70847E-05
   2  Prefactor     2.2518        .24570        .48104E-08   -.66507E-03
   3  norm          49.354        18.272        .17698E-06    .39886E-04
   4  Prefactor     42.178        33.072        .43710E-06    .71050E-05
   5  Prefactor     .10000E-03    2.1951        .29248E-07** at limit **
   6  Prefactor     13.917        11.106        .14703E-06   -.11689E-04
   7  Prefactor     .10000E-03    5.3046        .63402E-07** at limit **
   8  Prefactor     .10000E-03    7.9068        .21802E-05** at limit **
   9  norm          5.9417        1.6254        .16511E-07   -.28939E-04
  10  Prefactor     6.7823        8.1136        .16452E-06   -.56397E-05
  11  Prefactor     33.031        22.741       -.22426E-08    .81741E-04
  12  Prefactor     .10000E-03    15.326       -.50664E-07** at limit **
  13  norm          .10000E-03    3.4611        .77312E-08** at limit **
  14  Prefactor     .10000E-03    4.9051       -.10161E-06** at limit **
  15  Prefactor     94.271        177.10        .80931E-06    .10280E-04
  16  Prefactor     15.202        13.545        .25963E-06    .26525E-04
  17  Prefactor     23.829        26.471        .28826E-06    .37185E-05
  18  norm          1.6407        20.289        .21170E-05   -.79218E-05
  19  norm          .10000E-03    9.9959        .17930E-06** at limit **
  20  Prefactor     .10000E-03    2.1427        .46926E-07** at limit **
  21  Prefactor     50.064        43.512        .14708E-06   -.10533E-03
  22  Prefactor     .10000E-03    10.149       -.23524E-06** at limit **
  23  Prefactor     .91556        16.222        .63129E-05   -.16445E-04
  24  Normalizat    1.0369        .21430       -.19318E-05   -.10620E-03
  25  Prefactor     .94057        .12417        .34954E-06   -.26543E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.57408
  Prefactor  = 2.25178
  norm       = 49.3538
  Prefactor  = 42.1781
  Prefactor  = 0.0001
  Prefactor  = 13.9174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.94173
  Prefactor  = 6.7823
  Prefactor  = 33.0309
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.2708
  Prefactor  = 15.2021
  Prefactor  = 23.8287
  norm       = 1.64073
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.0642
  Prefactor  = 0.0001
  Prefactor  = 0.915557
  Normalizat = 1.03689
  Prefactor  = 0.940573
 **********
 **   18 **HESSE 
 **********

 FCN=   9048.538     FROM HESSE     STATUS=OK           427 CALLS     3315 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5741        11.908        .18816E-03   -1.5280    
   2  Prefactor     2.2518        .24606        .14840E-04   -1.5408    
   3  norm          49.354        18.289        .57084E-04   -1.4302    
   4  Prefactor     42.178        33.124        .61728E-04   -1.4408    
   5  Prefactor     .10000E-03    2.2024        .13761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.917        11.109        .10736E-03   -1.4962    
   7  Prefactor     .10000E-03    5.3101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.1676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.9417        1.6261        .59984E-04   -1.5220    
  10  Prefactor     6.7823        8.1028        .15407E-03   -1.5187    
  11  Prefactor     33.031        22.644        .69742E-04   -1.4558    
  12  Prefactor     .10000E-03    15.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.4785        .17272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     94.271        177.18        .20699E-03   -1.3763    
  16  Prefactor     15.202        13.543        .10274E-03   -1.4928    
  17  Prefactor     23.829        26.476        .82064E-04   -1.4731    
  18  norm          1.6407        20.409        .32951E-03   -1.5452    
  19  norm          .10000E-03    9.9995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1506        .13585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     50.064        43.557        .56667E-04   -1.4292    
  22  Prefactor     .10000E-03    10.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .91556        16.318        .51501E-03   -1.5517    
  24  Normalizat    1.0369        .24867        .34971E-03   -.91805    
  25  Prefactor     .94057        .14497        .22487E-03   -.94737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19997e-10
Minuit parameter uncertainties:
  1  11.9145
  2  0.246059
  3  18.2907
  4  33.1385
  5  1.04572e-06
  6  11.1108
  7  1.99301e-05
  8  4.92366e-07
  9  1.62615
  10  8.10412
  11  22.6497
  12  1.26261e-05
  13  2.7276e-06
  14  6.67914e-06
  15  178.188
  16  13.5459
  17  26.4895
  18  11.5778
  19  1.61889e-06
  20  9.80734e-07
  21  43.5848
  22  1.03723e-05
  23  7.7326
  24  0.248951
  25  0.145032
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.782e+00  8.104e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.406e-01  1.450e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.037e+00  2.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.44e-08 +/- 2.92e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 1.25e-05

TS (Fixed Index): 1.12
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 9.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840629/likelihoodResults_398217601_398476801_4FGL_J2324.7+0801_daily_bin613.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) = 9048.49257865
delta logL = 0.0451204915225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9048.49005444
delta logL = 0.0476446976281

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2951       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9907       1.0000          .0000       10.000    
     3 'Normalizat'    1.0429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93838       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+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=   9048.490     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      268 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2965        10.359        .13920E-03   -.73327E-03
   2  Index         1.9915        .75401        .10090E-01   -.23318E-03
   3  Normalizat    1.0427        .23227        .34883E-03    .17755E-03
   4  Prefactor     .93855        .14378        .22508E-03    .34523E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.29645
  Index      = 1.9915
  Normalizat = 1.04272
  Prefactor  = 0.938553
 **********
 **   18 **HESSE 
 **********

 FCN=   9048.490     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2965        10.169        .55678E-05   -1.5132    
   2  Index         1.9915        .74039        .40361E-03   -.64563    
   3  Normalizat    1.0427        .23239        .13953E-04   -.91613    
   4  Prefactor     .93855        .14388        .45015E-04   -.94807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13903e-09
Minuit parameter uncertainties:
  1  10.1713
  2  0.744702
  3  0.232621
  4  0.14394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840629': 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) = 9048.49005294
delta logL = 0.0476461937797

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  8.296e+00  1.017e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.991e+00  7.447e-01  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.386e-01  1.439e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.043e+00  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.99 +/- 0.74
Photon Flux (Free Index): 1.94e-08 +/- 2.88e-08
Energy Flux (Free Index): 1.37e-05 +/- 2.04e-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/840629/cmap_HighResolution_398217601_398476801_4FGL_J2324.7+0801_daily_bin613.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', comment='SUCCESS', photon_flux='2.44e-08', energy_flux2='1.37e-05', photon_flux_error='2.92e-08', dlogl='4.76e-02', energy_flux='1.04e-05', photon_flux2='1.94e-08', job_status='DONE', time_completed='2021-09-29 16:30:06.337591', photon_index_error2='0.74', photon_index2='1.99', ts='1.12', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='9.75e-08', energy_flux_error2='2.04e-05', EG='1.04', time_epoch_completed='1632958206.34', return_code='0', job_id='840629', GAL2='0.94', EG2='1.04', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='2.88e-08', ts2='1.21', photon_index='2.23' WHERE bin_id='613' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:30:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 840629: <4FGL_J2324.7+0801_daily_bin613> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin613> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:15:21 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:15:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:15:22 2021
Terminated at Wed Sep 29 16:30:07 2021
Results reported at Wed Sep 29 16:30:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin613 351.19 8.0282 398217601 398476801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7+0801 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   867.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             340.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            886 sec.

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

