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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin221
RA = 351.19, Dec = 8.0282
tmin = 296611201, tmax = 296870401
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='837936', job_status='RUN', time_executed='2021-09-29 16:06:46.980136', time_epoch_executed='1632956806.98' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837936

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837936/ft1_4FGL_J2324.7+0801_daily_bin221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837936/ft2_4FGL_J2324.7+0801_daily_bin221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837936/ft1_4FGL_J2324.7+0801_daily_bin221.fits outfile=/scratch/kocevski/837936/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin221.fits ra=351.19 dec=8.0282 rad=12.0 tmin=296611201.0 tmax=296870401.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.33
user 4.07
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/837936/ft2_4FGL_J2324.7+0801_daily_bin221.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/837936/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin221.fits evtable="EVENTS" outfile="/scratch/kocevski/837936/ft1_filtered_4FGL_J2324.7+0801_daily_bin221.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.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837936/ft1_filtered_4FGL_J2324.7+0801_daily_bin221.fits" evtable="EVENTS" scfile=/scratch/kocevski/837936/ft2_4FGL_J2324.7+0801_daily_bin221.fits sctable="SC_DATA" outfile=/scratch/kocevski/837936/ltcube_296611201_296870401_4FGL_J2324.7+0801_daily_bin221.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/837936/ft2_4FGL_J2324.7+0801_daily_bin221.fits
.....................!
real 11.77
user 11.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837936/ft1_filtered_4FGL_J2324.7+0801_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/837936/ft2_4FGL_J2324.7+0801_daily_bin221.fits sctable="SC_DATA" expcube=/scratch/kocevski/837936/ltcube_296611201_296870401_4FGL_J2324.7+0801_daily_bin221.fits outfile=/scratch/kocevski/837936/expmap_296611201_296870401_4FGL_J2324.7+0801_daily_bin221.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/837936/ltcube_296611201_296870401_4FGL_J2324.7+0801_daily_bin221.fits
.....................!
real 190.96
user 185.21
sys 5.25

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/837936/ft1_filtered_4FGL_J2324.7+0801_daily_bin221.fits scfile=/scratch/kocevski/837936/ft2_4FGL_J2324.7+0801_daily_bin221.fits outfile=/scratch/kocevski/837936/cmap_296611201_296870401_4FGL_J2324.7+0801_daily_bin221.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837936/ft1_filtered_4FGL_J2324.7+0801_daily_bin221.fits scfile=/scratch/kocevski/837936/ft2_4FGL_J2324.7+0801_daily_bin221.fits outfile=/scratch/kocevski/837936/cmap_HighResolution_296611201_296870401_4FGL_J2324.7+0801_daily_bin221.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/837936/ft1_filtered_4FGL_J2324.7+0801_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/837936/ft2_4FGL_J2324.7+0801_daily_bin221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/837936/Model_4FGL_J2324.7+0801_daily_bin221.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/837936/ft1_filtered_4FGL_J2324.7+0801_daily_bin221.fits.....................!
real 96.84
user 95.35
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1898       1.0000         .10000E-03   10000.    
     3 'norm      '    9.0801       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19329E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.733       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .40231E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.233       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .60696       1.0000         .10000E-03   10000.    
     9 'norm      '    .94044       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.631       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11225E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11702E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.191       1.0000         .10000E-03   10000.    
    15 'Prefactor '    155.26       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13888E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    2.4298       1.0000         .10000E-03   10000.    
    19 'norm      '    .10919E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7245       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.136       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.769       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0768       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .54647       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0718       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=   8967.470     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3009 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.082        .21202E-06** at limit **
   2  Prefactor     5.1897        .39192       -.15986E-08    .62222E-03
   3  norm          9.0816        9.6990        .92015E-07    .14594E-04
   4  Prefactor     .10000E-03    215.95       -.77376E-05** at limit **
   5  Prefactor     17.742        11.419       -.52400E-07    .72033E-04
   6  Prefactor     .10001E-03    6.7763       -.79502E-06** at limit **
   7  Prefactor     19.262        21.290        .15150E-06    .54711E-04
   8  Prefactor     .60315        12.439       -.30375E-05   -.53897E-05
   9  norm          .93944        1.0004       -.48536E-06   -.20193E-03
  10  Prefactor     18.629        12.260       -.65288E-07    .84007E-04
  11  Prefactor     .10000E-03    42.287        .69643E-06** at limit **
  12  Prefactor     .10000E-03    66.788       -.14639E-05** at limit **
  13  norm          .10000E-03    7.7193        .84552E-07** at limit **
  14  Prefactor     18.192        9.4081       -.70458E-07    .91136E-04
  15  Prefactor     155.36        200.96       -.19833E-05   -.52395E-05
  16  Prefactor     .10000E-03    14.418        .49331E-06** at limit **
  17  Prefactor     .10000E-03    133.53        .18571E-06** at limit **
  18  norm          2.4344        15.133       -.80905E-07   -.90434E-05
  19  norm          .10000E-03    31.281        .17435E-06** at limit **
  20  Prefactor     5.7277        5.2408        .73879E-06   -.45916E-04
  21  Prefactor     29.156        39.297       -.47075E-06    .16274E-04
  22  Prefactor     20.791        26.344       -.16729E-06    .16648E-04
  23  Prefactor     2.0774        3.6398       -.67193E-08   -.18212E-05
  24  Normalizat    .54627        .22738        .32121E-06    .10344E-03
  25  Prefactor     1.0718        .12982        .16319E-06    .19957E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.1897
  norm       = 9.08165
  Prefactor  = 0.0001
  Prefactor  = 17.7418
  Prefactor  = 0.000100007
  Prefactor  = 19.2625
  Prefactor  = 0.603147
  norm       = 0.939436
  Prefactor  = 18.6286
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.1923
  Prefactor  = 155.363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.43443
  norm       = 0.0001
  Prefactor  = 5.72766
  Prefactor  = 29.1565
  Prefactor  = 20.7913
  Prefactor  = 2.07736
  Normalizat = 0.546268
  Prefactor  = 1.07178
 **********
 **   18 **HESSE 
 **********

 FCN=   8967.470     FROM HESSE     STATUS=OK           447 CALLS     3456 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1897        .39258        .15310E-04   -1.5252    
   3  norm          9.0816        9.6972        .13301E-03   -1.5105    
   4  Prefactor     .10000E-03    20.481        .12915       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.742        11.396        .95111E-04   -1.4865    
   6  Prefactor     .10001E-03    28.004        .44716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.262        21.272        .91328E-04   -1.4830    
   8  Prefactor     .60315        12.679        .37760E-02   -1.5553    
   9  norm          .93944        1.0017        .10304E-02   -1.5514    
  10  Prefactor     18.629        12.204        .92790E-04   -1.4844    
  11  Prefactor     .10000E-03    43.003        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    66.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.7621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.192        9.3821        .93905E-04   -1.4855    
  15  Prefactor     155.36        201.94        .16177E-03   -1.3209    
  16  Prefactor     .10000E-03    14.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    137.65        .41061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4344        15.126        .26253E-03   -1.5396    
  19  norm          .10000E-03    31.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7277        5.2492        .83939E-03   -1.5229    
  21  Prefactor     29.156        39.310        .74224E-04   -1.4628    
  22  Prefactor     20.791        26.297        .87887E-04   -1.4796    
  23  Prefactor     2.0774        3.6142        .23326E-03   -1.5420    
  24  Normalizat    .54627        .24260        .45431E-03   -1.1032    
  25  Prefactor     1.0718        .14182        .21087E-03   -.90374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26103e-08
Minuit parameter uncertainties:
  1  1.44222e-05
  2  0.392584
  3  9.6989
  4  0.000109097
  5  11.3974
  6  0.000855097
  7  21.2799
  8  5.53166
  9  1.00169
  10  12.2061
  11  0.000465558
  12  0.00013776
  13  5.15143e-06
  14  9.38284
  15  202.846
  16  0.000141891
  17  4.00641e-06
  18  12.1409
  19  0.000117604
  20  5.24967
  21  39.3448
  22  26.3114
  23  3.61455
  24  0.24307
  25  0.141873
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.863e+01  1.221e+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.072e+00  1.419e-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:  5.463e-01  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.64
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 6.70e-08 +/- 4.39e-08
Energy Flux (Fixed Index): 2.86e-05 +/- 1.88e-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) = 8965.85774321
delta logL = 1.61226684937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8965.83251856
delta logL = 1.63749149179

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4958       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2069       1.0000          .0000       10.000    
     3 'Normalizat'    .44912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1055       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=   8965.833     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      287 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4943        11.308        .92721E-04   -.24118E-02
   2  Index         3.2070        .98541        .35119E-02   -.45597E-03
   3  Normalizat    .44927        .22973        .49710E-03   -.45740E-04
   4  Prefactor     1.1054        .14277        .20764E-03   -.33784E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.49432
  Index      = 3.20696
  Normalizat = 0.44927
  Prefactor  = 1.10543
 **********
 **   18 **HESSE 
 **********

 FCN=   8965.833     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4943        6.7850        .37088E-05   -1.5239    
   2  Index         3.2070        .59317        .14047E-03   -.36678    
   3  Normalizat    .44927        .22519        .19884E-04   -1.1483    
   4  Prefactor     1.1054        .14057        .41528E-04   -.89293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77732e-10
Minuit parameter uncertainties:
  1  6.78592
  2  0.594781
  3  0.225645
  4  0.140615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837936': 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) = 8965.83251831
delta logL = 1.63749174074

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  5.494e+00  6.786e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.207e+00  5.948e-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.105e+00  1.406e-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:  4.493e-01  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.14
Ra Dec: 351.190 8.028
Photon Index (Free Index): 3.21 +/- 0.59
Photon Flux (Free Index): 1.60e-07 +/- 7.92e-08
Energy Flux (Free Index): 2.92e-05 +/- 1.32e-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/837936/cmap_HighResolution_296611201_296870401_4FGL_J2324.7+0801_daily_bin221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.70e-08', energy_flux2='2.92e-05', photon_flux_error='4.39e-08', dlogl='1.64e+00', energy_flux='2.86e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-29 16:19:32.092582', photon_index_error2='0.59', photon_index2='3.21', ts='4.64', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='0.55', time_epoch_completed='1632957572.09', return_code='0', job_id='837936', GAL2='1.11', EG2='0.45', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='7.92e-08', ts2='8.14', photon_index='2.23' WHERE bin_id='221' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:19:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 837936: <4FGL_J2324.7+0801_daily_bin221> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin221 351.19 8.0282 296611201 296870401 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 :                                   762.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            832 sec.

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

