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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin318
RA = 351.19, Dec = 8.0282
tmin = 321753601, tmax = 322012801
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='838092', job_status='RUN', time_executed='2021-09-29 16:07:40.713251', time_epoch_executed='1632956860.71' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838092

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838092/ft1_4FGL_J2324.7+0801_daily_bin318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838092/ft2_4FGL_J2324.7+0801_daily_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838092/ft1_4FGL_J2324.7+0801_daily_bin318.fits outfile=/scratch/kocevski/838092/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin318.fits ra=351.19 dec=8.0282 rad=12.0 tmin=321753601.0 tmax=322012801.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.41
user 3.16
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/838092/ft2_4FGL_J2324.7+0801_daily_bin318.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/838092/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin318.fits evtable="EVENTS" outfile="/scratch/kocevski/838092/ft1_filtered_4FGL_J2324.7+0801_daily_bin318.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838092/ft1_filtered_4FGL_J2324.7+0801_daily_bin318.fits" evtable="EVENTS" scfile=/scratch/kocevski/838092/ft2_4FGL_J2324.7+0801_daily_bin318.fits sctable="SC_DATA" outfile=/scratch/kocevski/838092/ltcube_321753601_322012801_4FGL_J2324.7+0801_daily_bin318.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/838092/ft2_4FGL_J2324.7+0801_daily_bin318.fits
.....................!
real 11.90
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838092/ft1_filtered_4FGL_J2324.7+0801_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/838092/ft2_4FGL_J2324.7+0801_daily_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/838092/ltcube_321753601_322012801_4FGL_J2324.7+0801_daily_bin318.fits outfile=/scratch/kocevski/838092/expmap_321753601_322012801_4FGL_J2324.7+0801_daily_bin318.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/838092/ltcube_321753601_322012801_4FGL_J2324.7+0801_daily_bin318.fits
.....................!
real 191.02
user 185.96
sys 4.69

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/838092/ft1_filtered_4FGL_J2324.7+0801_daily_bin318.fits scfile=/scratch/kocevski/838092/ft2_4FGL_J2324.7+0801_daily_bin318.fits outfile=/scratch/kocevski/838092/cmap_321753601_322012801_4FGL_J2324.7+0801_daily_bin318.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838092/ft1_filtered_4FGL_J2324.7+0801_daily_bin318.fits scfile=/scratch/kocevski/838092/ft2_4FGL_J2324.7+0801_daily_bin318.fits outfile=/scratch/kocevski/838092/cmap_HighResolution_321753601_322012801_4FGL_J2324.7+0801_daily_bin318.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/838092/ft1_filtered_4FGL_J2324.7+0801_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/838092/ft2_4FGL_J2324.7+0801_daily_bin318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/838092/Model_4FGL_J2324.7+0801_daily_bin318.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/838092/ft1_filtered_4FGL_J2324.7+0801_daily_bin318.fits.....................!
real 100.96
user 99.57
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/838092/ft1_filtered_4FGL_J2324.7+0801_daily_bin318.fits', '/scratch/kocevski/838092/ft2_4FGL_J2324.7+0801_daily_bin318.fits', expMap='/scratch/kocevski/838092/expmap_321753601_322012801_4FGL_J2324.7+0801_daily_bin318.fits', expCube='/scratch/kocevski/838092/ltcube_321753601_322012801_4FGL_J2324.7+0801_daily_bin318.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/838092/Model_4FGL_J2324.7+0801_daily_bin318.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/838092/ft1_filtered_4FGL_J2324.7+0801_daily_bin318.fits
Spacecraft file(s): /scratch/kocevski/838092/ft2_4FGL_J2324.7+0801_daily_bin318.fits
Exposure map: /scratch/kocevski/838092/expmap_321753601_322012801_4FGL_J2324.7+0801_daily_bin318.fits
Exposure cube: /scratch/kocevski/838092/ltcube_321753601_322012801_4FGL_J2324.7+0801_daily_bin318.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/838092/Model_4FGL_J2324.7+0801_daily_bin318.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) = 8958.91185389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69190       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4402       1.0000         .10000E-03   10000.    
     3 'norm      '    21.254       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.889       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.229       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3486       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2897       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.527       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.700       1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.027       1.0000         .10000E-03   10000.    
    13 'norm      '    4.3098       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .65084       1.0000         .10000E-03   10000.    
    15 'Prefactor '    312.77       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10893E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.941       1.0000         .10000E-03   10000.    
    18 'norm      '    4.4718       1.0000         .10000E-03   10000.    
    19 'norm      '    110.23       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12484E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    60.651       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .32867       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77709       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0695       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=   8958.883     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2931 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71262        38.030        .14554E-04   -.31339E-03
   2  Prefactor     8.4402        .51438       -.91189E-08   -.12422E-02
   3  norm          21.254        17.671       -.87795E-08    .20824E-04
   4  Prefactor     24.889        32.476        .11647E-06    .17857E-04
   5  Prefactor     .10000E-03    3.5717       -.15604E-06** at limit **
   6  Prefactor     .10000E-03    6.9331       -.30314E-06** at limit **
   7  Prefactor     28.229        27.300        .19279E-06    .43934E-04
   8  Prefactor     5.3484        5.6755       -.80048E-07    .81011E-04
   9  norm          1.2897        1.1292        .35154E-07    .17673E-03
  10  Prefactor     19.528        12.911        .12982E-06    .14295E-03
  11  Prefactor     19.699        19.913        .21384E-07    .42872E-04
  12  Prefactor     61.025        52.616        .25267E-06    .13141E-04
  13  norm          4.3118        8.6555        .59246E-06    .46557E-03
  14  Prefactor     .66824        8.1686        .51491E-05    .44347E-03
  15  Prefactor     312.69        305.47        .56920E-05   -.27126E-05
  16  Prefactor     .10000E-03    28.510       -.62358E-06** at limit **
  17  Prefactor     21.953        37.492       -.12563E-05    .80226E-04
  18  norm          4.4717        7.5517        .67890E-07    .10251E-03
  19  norm          110.25        47.839        .51847E-06    .53084E-04
  20  Prefactor     .10003E-03    5.5925        .10687E-05** at limit **
  21  Prefactor     60.661        54.598        .92216E-07    .56120E-04
  22  Prefactor     .10000E-03    11.585       -.27012E-07** at limit **
  23  Prefactor     .33387        16.899        .11283E-04    .13945E-03
  24  Normalizat    .77677        .24106       -.13506E-05    .92086E-04
  25  Prefactor     1.0697        .13960        .10249E-05    .69144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.712621
  Prefactor  = 8.44021
  norm       = 21.2538
  Prefactor  = 24.889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.2293
  Prefactor  = 5.34838
  norm       = 1.2897
  Prefactor  = 19.5281
  Prefactor  = 19.6987
  Prefactor  = 61.0253
  norm       = 4.31179
  Prefactor  = 0.66824
  Prefactor  = 312.687
  Prefactor  = 0.0001
  Prefactor  = 21.9528
  norm       = 4.47174
  norm       = 110.249
  Prefactor  = 0.00010003
  Prefactor  = 60.6611
  Prefactor  = 0.0001
  Prefactor  = 0.33387
  Normalizat = 0.776766
  Prefactor  = 1.06972
 **********
 **   18 **HESSE 
 **********

 FCN=   8958.883     FROM HESSE     STATUS=OK           443 CALLS     3374 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71262        158.38        .64189E-02   -1.5539    
   2  Prefactor     8.4402        .51314        .15817E-04   -1.5127    
   3  norm          21.254        17.672        .86880E-04   -1.4786    
   4  Prefactor     24.889        32.482        .80294E-04   -1.4710    
   5  Prefactor     .10000E-03    3.5876        .17473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.229        27.307        .75404E-04   -1.4645    
   8  Prefactor     5.3484        5.6658        .17377E-03   -1.5245    
   9  norm          1.2897        1.1284        .39002E-04   -1.5481    
  10  Prefactor     19.528        12.875        .90638E-04   -1.4824    
  11  Prefactor     19.699        19.895        .90240E-04   -1.4820    
  12  Prefactor     61.025        52.609        .51362E-04   -1.4144    
  13  norm          4.3118        8.5349        .19405E-03   -1.5293    
  14  Prefactor     .66824        16.807        .40125E-02   -1.5544    
  15  Prefactor     312.69        304.79        .11490E-03   -1.2153    
  16  Prefactor     .10000E-03    29.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.953        37.235        .85511E-04   -1.4771    
  18  norm          4.4717        7.5420        .19041E-03   -1.5285    
  19  norm          110.25        47.710        .19155E-03   -1.3604    
  20  Prefactor     .10003E-03    62.798        .37145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     60.661        54.556        .51520E-04   -1.4149    
  22  Prefactor     .10000E-03    11.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .33387        23.857        .39764E-02   -1.5592    
  24  Normalizat    .77677        .26956        .44940E-03   -1.0094    
  25  Prefactor     1.0697        .16256        .24596E-03   -.90440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.08587e-09
Minuit parameter uncertainties:
  1  21.3032
  2  0.513138
  3  17.6767
  4  32.5048
  5  2.68369e-05
  6  7.51481e-05
  7  27.3188
  8  5.6664
  9  1.12846
  10  12.877
  11  19.9013
  12  52.6487
  13  8.53732
  14  6.70422
  15  306.366
  16  0.000106404
  17  37.274
  18  7.54364
  19  47.7268
  20  0.00275063
  21  54.6013
  22  1.30877e-05
  23  5.64598
  24  0.270024
  25  0.162631
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.953e+01  1.288e+01  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:  1.070e+00  1.626e-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:  7.768e-01  2.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.60
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.03e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 3.00e-05 +/- 1.98e-05

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) = 8958.88248392
delta logL = 2.60026372416e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8958.88247054
delta logL = 3.9384856791e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.458       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2331       1.0000          .0000       10.000    
     3 'Normalizat'    .77637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0698       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=   8958.882     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      265 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.453        15.623        .90800E-04    .23038E-03
   2  Index         2.2328        .57328        .76949E-02    .47940E-04
   3  Normalizat    .77640        .25730        .44950E-03    .14507E-03
   4  Prefactor     1.0698        .16180        .24595E-03    .23021E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4527
  Index      = 2.23278
  Normalizat = 0.776395
  Prefactor  = 1.06983
 **********
 **   18 **HESSE 
 **********

 FCN=   8958.882     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.453        14.811        .18160E-04   -1.4826    
   2  Index         2.2328        .54288        .30779E-03   -.58649    
   3  Normalizat    .77640        .25696        .17980E-04   -1.0095    
   4  Prefactor     1.0698        .16179        .49190E-04   -.90437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41977e-11
Minuit parameter uncertainties:
  1  14.8133
  2  0.544431
  3  0.257363
  4  0.161863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838092': 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) = 8958.88246982
delta logL = 4.01024590246e-05

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.945e+01  1.481e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.233e+00  5.444e-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:  1.070e+00  1.619e-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:  7.764e-01  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.55
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.23 +/- 0.54
Photon Flux (Free Index): 7.07e-08 +/- 6.15e-08
Energy Flux (Free Index): 2.99e-05 +/- 2.13e-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/838092/cmap_HighResolution_321753601_322012801_4FGL_J2324.7+0801_daily_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.03e-08', energy_flux2='2.99e-05', photon_flux_error='4.63e-08', dlogl='4.01e-05', energy_flux='3.00e-05', photon_flux2='7.07e-08', job_status='DONE', time_completed='2021-09-29 16:20:53.338078', photon_index_error2='0.54', photon_index2='2.23', ts='7.60', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.13e-05', EG='0.78', time_epoch_completed='1632957653.34', return_code='0', job_id='838092', GAL2='1.07', EG2='0.78', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='6.15e-08', ts2='7.55', photon_index='2.23' WHERE bin_id='318' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:20:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 838092: <4FGL_J2324.7+0801_daily_bin318> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin318> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 16:05:54 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:05:56 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:05:56 2021
Terminated at Wed Sep 29 16:20:54 2021
Results reported at Wed Sep 29 16:20:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin318 351.19 8.0282 321753601 322012801 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 :                                   786.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

