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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1625
RA = 351.19, Dec = 8.0282
tmin = 660528001, tmax = 660787201
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='107442', job_status='RUN', time_executed='2021-12-10 00:42:43.038825', time_epoch_executed='1639125763.04' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107442

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107442/ft1_4FGL_J2324.7+0801_daily_bin1625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107442/ft2_4FGL_J2324.7+0801_daily_bin1625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107442/ft1_4FGL_J2324.7+0801_daily_bin1625.fits outfile=/scratch/kocevski/107442/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1625.fits ra=351.19 dec=8.0282 rad=12.0 tmin=660528001.0 tmax=660787201.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.56
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107442/ft1_filtered_4FGL_J2324.7+0801_daily_bin1625.fits" evtable="EVENTS" scfile=/scratch/kocevski/107442/ft2_4FGL_J2324.7+0801_daily_bin1625.fits sctable="SC_DATA" outfile=/scratch/kocevski/107442/ltcube_660528001_660787201_4FGL_J2324.7+0801_daily_bin1625.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/107442/ft2_4FGL_J2324.7+0801_daily_bin1625.fits
.....................!
real 11.64
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107442/ft1_filtered_4FGL_J2324.7+0801_daily_bin1625.fits evtable="EVENTS" scfile=/scratch/kocevski/107442/ft2_4FGL_J2324.7+0801_daily_bin1625.fits sctable="SC_DATA" expcube=/scratch/kocevski/107442/ltcube_660528001_660787201_4FGL_J2324.7+0801_daily_bin1625.fits outfile=/scratch/kocevski/107442/expmap_660528001_660787201_4FGL_J2324.7+0801_daily_bin1625.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/107442/ltcube_660528001_660787201_4FGL_J2324.7+0801_daily_bin1625.fits
.....................!
real 190.52
user 185.30
sys 4.92

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/107442/ft1_filtered_4FGL_J2324.7+0801_daily_bin1625.fits scfile=/scratch/kocevski/107442/ft2_4FGL_J2324.7+0801_daily_bin1625.fits outfile=/scratch/kocevski/107442/cmap_660528001_660787201_4FGL_J2324.7+0801_daily_bin1625.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107442/ft1_filtered_4FGL_J2324.7+0801_daily_bin1625.fits scfile=/scratch/kocevski/107442/ft2_4FGL_J2324.7+0801_daily_bin1625.fits outfile=/scratch/kocevski/107442/cmap_HighResolution_660528001_660787201_4FGL_J2324.7+0801_daily_bin1625.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/107442/ft1_filtered_4FGL_J2324.7+0801_daily_bin1625.fits evtable="EVENTS" scfile=/scratch/kocevski/107442/ft2_4FGL_J2324.7+0801_daily_bin1625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/107442/Model_4FGL_J2324.7+0801_daily_bin1625.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/107442/ft1_filtered_4FGL_J2324.7+0801_daily_bin1625.fits.....................!
real 67.23
user 65.91
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56052E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .76397       1.0000         .10000E-03   10000.    
     3 'norm      '    55.429       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.020       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5569       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7726       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.505       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.860       1.0000         .10000E-03   10000.    
    13 'norm      '    .11179E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.037       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13323E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.736       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3534       1.0000         .10000E-03   10000.    
    18 'norm      '    .10578E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .37637E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8579       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.147       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.5576       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .57290       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0422       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=   6201.463     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2920 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    80.011        .33789E-05** at limit **
   2  Prefactor     .76385        .18532        .24473E-10    .14655E-03
   3  norm          55.438        22.831       -.17761E-06   -.13876E-06
   4  Prefactor     38.001        38.582       -.64958E-06   -.35199E-05
   5  Prefactor     .10000E-03    3.4711       -.17389E-07** at limit **
   6  Prefactor     .10000E-03    3.3252       -.67244E-08** at limit **
   7  Prefactor     .10000E-03    5.4953       -.38046E-08** at limit **
   8  Prefactor     4.5548        5.3110       -.80446E-06   -.83911E-04
   9  norm          2.7732        1.4313        .16421E-09    .19849E-03
  10  Prefactor     32.501        13.889       -.31132E-07    .57173E-05
  11  Prefactor     .10000E-03    4.8007       -.17237E-07** at limit **
  12  Prefactor     27.905        53.383        .23194E-05    .24266E-04
  13  norm          .10000E-03    4.4310       -.27021E-08** at limit **
  14  Prefactor     17.034        8.7506        .34371E-08    .97738E-05
  15  Prefactor     .10000E-03    168.25       -.86035E-06** at limit **
  16  Prefactor     14.705        12.877        .96520E-06    .29226E-03
  17  Prefactor     2.3290        96.685       -.83704E-06   -.11738E-05
  18  norm          .10000E-03    12.620       -.28497E-07** at limit **
  19  norm          .36821E-01    37.147       -.40055E-05    .18357E-03
  20  Prefactor     4.8590        4.3120        .95727E-07    .17060E-03
  21  Prefactor     22.136        29.923       -.22683E-06    .90298E-05
  22  Prefactor     .10000E-03    20.007        .52768E-07** at limit **
  23  Prefactor     7.5569        11.548       -.56706E-06   -.18998E-04
  24  Normalizat    .57359        .23174        .50946E-06    .36701E-04
  25  Prefactor     1.0418        .13797        .11439E-06    .92358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 0.763853
  norm       = 55.4381
  Prefactor  = 38.0007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.55477
  norm       = 2.77318
  Prefactor  = 32.5013
  Prefactor  = 0.0001
  Prefactor  = 27.9048
  norm       = 0.0001
  Prefactor  = 17.0339
  Prefactor  = 0.0001
  Prefactor  = 14.7051
  Prefactor  = 2.32905
  norm       = 0.0001
  norm       = 0.0368212
  Prefactor  = 4.85901
  Prefactor  = 22.1356
  Prefactor  = 0.0001
  Prefactor  = 7.55693
  Normalizat = 0.573592
  Prefactor  = 1.0418
 **********
 **   18 **HESSE 
 **********

 FCN=   6201.463     FROM HESSE     STATUS=OK           441 CALLS     3361 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    78.387        .55239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .76385        .18158        .15706E-04   -1.5533    
   3  norm          55.438        22.819        .53879E-04   -1.4217    
   4  Prefactor     38.001        38.583        .65001E-04   -1.4474    
   5  Prefactor     .10000E-03    3.4947        .14322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3295        .14024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.5008        .18029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5548        5.3117        .94289E-03   -1.5281    
   9  norm          2.7732        1.4276        .64301E-04   -1.5375    
  10  Prefactor     32.501        13.795        .70282E-04   -1.4567    
  11  Prefactor     .10000E-03    4.8052        .16852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.905        53.377        .75901E-04   -1.4651    
  13  norm          .10000E-03    4.4460        .16164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.034        8.7289        .97033E-04   -1.4882    
  15  Prefactor     .10000E-03    168.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.705        15.239        .10434E-03   -1.4941    
  17  Prefactor     2.3290        94.214        .26719E-03   -1.5403    
  18  norm          .10000E-03    12.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .36821E-01    34.420        .10828       -1.5670    
  20  Prefactor     4.8590        4.3262        .14615E-03   -1.5267    
  21  Prefactor     22.136        29.929        .85113E-04   -1.4767    
  22  Prefactor     .10000E-03    20.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.5569        11.560        .72939E-03   -1.5158    
  24  Normalizat    .57359        .25688        .38322E-03   -1.0912    
  25  Prefactor     1.0418        .15519        .18760E-03   -.91349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36303e-10
Minuit parameter uncertainties:
  1  0.00134418
  2  0.181584
  3  22.8221
  4  38.6082
  5  1.15147e-06
  6  9.91817e-07
  7  2.29642e-06
  8  5.31221
  9  1.42766
  10  13.7964
  11  5.98905e-07
  12  53.4685
  13  1.92936e-07
  14  8.72959
  15  4.13797e-05
  16  15.2429
  17  29.6759
  18  3.06961e-06
  19  2.24982
  20  4.32651
  21  29.9489
  22  5.20349e-06
  23  11.5635
  24  0.25741
  25  0.155257
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.250e+01  1.380e+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.042e+00  1.553e-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.736e-01  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.42
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 4.96e-08
Energy Flux (Fixed Index): 4.99e-05 +/- 2.12e-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) = 6201.45849475
delta logL = 0.00437823371794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6201.4533747
delta logL = 0.00949828524426

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.296       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1780       1.0000          .0000       10.000    
     3 'Normalizat'    .57903       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0397       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=   6201.453     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      231 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.297        19.724        .68428E-04   -.32833E-03
   2  Index         2.1780        .37366        .42344E-02   -.18956E-03
   3  Normalizat    .57903        .24024        .38157E-03    .67663E-04
   4  Prefactor     1.0397        .15454        .18777E-03    .25825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.2972
  Index      = 2.17797
  Normalizat = 0.579032
  Prefactor  = 1.03968
 **********
 **   18 **HESSE 
 **********

 FCN=   6201.453     FROM HESSE     STATUS=OK            25 CALLS      256 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.297        19.015        .13686E-04   -1.4536    
   2  Index         2.1780        .35999        .16937E-03   -.59971    
   3  Normalizat    .57903        .24007        .15263E-04   -1.0888    
   4  Prefactor     1.0397        .15452        .37555E-04   -.91418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55802e-10
Minuit parameter uncertainties:
  1  19.0185
  2  0.360452
  3  0.240498
  4  0.154587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107442': 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) = 6201.4533747
delta logL = 0.00949828758621

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.430e+01  1.902e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.178e+00  3.605e-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.040e+00  1.546e-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.790e-01  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.40
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.18 +/- 0.36
Photon Flux (Free Index): 1.12e-07 +/- 5.77e-08
Energy Flux (Free Index): 5.25e-05 +/- 2.95e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/107442/cmap_HighResolution_660528001_660787201_4FGL_J2324.7+0801_daily_bin1625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='5.25e-05', photon_flux_error='4.96e-08', dlogl='9.50e-03', energy_flux='4.99e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-12-10 00:52:44.516790', photon_index_error2='0.36', photon_index2='2.18', ts='14.42', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.95e-05', EG='0.57', time_epoch_completed='1639126364.52', return_code='0', job_id='107442', GAL2='1.04', EG2='0.58', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='5.77e-08', ts2='14.40', photon_index='2.23' WHERE bin_id='1625' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 10 00:52:44 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 107442: <4FGL_J2324.7+0801_daily_bin1625> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1625> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 10 00:40:34 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 10 00:40:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 10 00:40:36 2021
Terminated at Fri Dec 10 00:52:45 2021
Results reported at Fri Dec 10 00:52:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1625 351.19 8.0282 660528001 660787201 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 :                                   604.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            731 sec.

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

