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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin523
RA = 351.19, Dec = 8.0282
tmin = 374889601, tmax = 375148801
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='839388', job_status='RUN', time_executed='2021-09-29 16:12:44.350815', time_epoch_executed='1632957164.35' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839388

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839388/ft1_4FGL_J2324.7+0801_daily_bin523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839388/ft2_4FGL_J2324.7+0801_daily_bin523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839388/ft1_4FGL_J2324.7+0801_daily_bin523.fits outfile=/scratch/kocevski/839388/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin523.fits ra=351.19 dec=8.0282 rad=12.0 tmin=374889601.0 tmax=375148801.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.50
user 3.30
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839388/ft1_filtered_4FGL_J2324.7+0801_daily_bin523.fits" evtable="EVENTS" scfile=/scratch/kocevski/839388/ft2_4FGL_J2324.7+0801_daily_bin523.fits sctable="SC_DATA" outfile=/scratch/kocevski/839388/ltcube_374889601_375148801_4FGL_J2324.7+0801_daily_bin523.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/839388/ft2_4FGL_J2324.7+0801_daily_bin523.fits
.....................!
real 11.87
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839388/ft1_filtered_4FGL_J2324.7+0801_daily_bin523.fits evtable="EVENTS" scfile=/scratch/kocevski/839388/ft2_4FGL_J2324.7+0801_daily_bin523.fits sctable="SC_DATA" expcube=/scratch/kocevski/839388/ltcube_374889601_375148801_4FGL_J2324.7+0801_daily_bin523.fits outfile=/scratch/kocevski/839388/expmap_374889601_375148801_4FGL_J2324.7+0801_daily_bin523.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/839388/ltcube_374889601_375148801_4FGL_J2324.7+0801_daily_bin523.fits
.....................!
real 190.24
user 185.63
sys 4.23

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/839388/ft1_filtered_4FGL_J2324.7+0801_daily_bin523.fits scfile=/scratch/kocevski/839388/ft2_4FGL_J2324.7+0801_daily_bin523.fits outfile=/scratch/kocevski/839388/cmap_374889601_375148801_4FGL_J2324.7+0801_daily_bin523.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8576       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .38420       1.0000         .10000E-03   10000.    
     3 'norm      '    5.9255       1.0000         .10000E-03   10000.    
     4 'Prefactor '    69.709       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6491       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.671       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.038       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .42497E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    4.8420       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.295       1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.101       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.7833       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2093       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8853       1.0000         .10000E-03   10000.    
    18 'norm      '    9.0471       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21264E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.193       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68987       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0941       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=   7028.947     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2928 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7891        39.870        .52527E-07    .14950E-04
   2  Prefactor     .38433        .17483        .16264E-07   -.41905E-03
   3  norm          5.9243        10.653       -.34147E-06    .11032E-04
   4  Prefactor     69.701        45.140        .46279E-06    .47824E-05
   5  Prefactor     6.6503        8.5934       -.49692E-06   -.76914E-04
   6  Prefactor     11.671        12.599        .16639E-08   -.17981E-04
   7  Prefactor     12.037        11.658       -.25979E-07    .41780E-05
   8  Prefactor     .10000E-03    32.793        .76398E-05** at limit **
   9  norm          4.8416        1.5178       -.59811E-07    .15151E-03
  10  Prefactor     13.294        12.991       -.13866E-05    .34612E-04
  11  Prefactor     43.086        25.267       -.92315E-06   -.19429E-03
  12  Prefactor     .10000E-03    61.641       -.31171E-05** at limit **
  13  norm          5.7809        8.3290        .48283E-06   -.22632E-04
  14  Prefactor     .10000E-03    4.1556        .38403E-07** at limit **
  15  Prefactor     .10000E-03    91.107        .12659E-05** at limit **
  16  Prefactor     7.2022        8.7739       -.51617E-06    .67899E-04
  17  Prefactor     2.8643        86.334        .15028E-05    .11127E-04
  18  norm          9.0470        8.6582        .83369E-07   -.18191E-04
  19  norm          .10000E-03    11.292        .91537E-06** at limit **
  20  Prefactor     .10000E-03    4.2288        .86420E-06** at limit **
  21  Prefactor     .10000E-03    31.563        .10228E-05** at limit **
  22  Prefactor     .10000E-03    45.435        .18246E-05** at limit **
  23  Prefactor     11.193        9.1713       -.10148E-06   -.19920E-04
  24  Normalizat    .68988        .21929        .11056E-05   -.13409E-03
  25  Prefactor     1.0942        .13417       -.15390E-06   -.11306E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.78906
  Prefactor  = 0.384327
  norm       = 5.92434
  Prefactor  = 69.7007
  Prefactor  = 6.65033
  Prefactor  = 11.671
  Prefactor  = 12.0373
  Prefactor  = 0.0001
  norm       = 4.84158
  Prefactor  = 13.2938
  Prefactor  = 43.086
  Prefactor  = 0.0001
  norm       = 5.78091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.2022
  Prefactor  = 2.86435
  norm       = 9.04697
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1929
  Normalizat = 0.689882
  Prefactor  = 1.09417
 **********
 **   18 **HESSE 
 **********

 FCN=   7028.947     FROM HESSE     STATUS=OK           431 CALLS     3359 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7891        40.067        .20546E-03   -1.5319    
   2  Prefactor     .38433        .17191        .21718E-04   -1.5584    
   3  norm          5.9243        10.632        .16497E-03   -1.5221    
   4  Prefactor     69.701        45.175        .48078E-04   -1.4036    
   5  Prefactor     6.6503        8.5730        .15562E-03   -1.5192    
   6  Prefactor     11.671        12.592        .11726E-03   -1.5025    
   7  Prefactor     12.037        11.656        .11546E-03   -1.5014    
   8  Prefactor     .10000E-03    33.361        .38600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.8416        1.5122        .55102E-04   -1.5268    
  10  Prefactor     13.294        12.823        .54927E-03   -1.4979    
  11  Prefactor     43.086        24.219        .61064E-04   -1.4394    
  12  Prefactor     .10000E-03    61.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.7809        8.2722        .16701E-03   -1.5227    
  14  Prefactor     .10000E-03    4.2271        .16664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    91.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.2022        8.5521        .14939E-03   -1.5171    
  17  Prefactor     2.8643        84.315        .23926E-03   -1.5369    
  18  norm          9.0470        8.6607        .13325E-03   -1.5106    
  19  norm          .10000E-03    11.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.195        .30910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    45.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.193        9.1681        .11975E-03   -1.5039    
  24  Normalizat    .68988        .23791        .37752E-03   -1.0429    
  25  Prefactor     1.0942        .15039        .19440E-03   -.89653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28494e-10
Minuit parameter uncertainties:
  1  24.6636
  2  0.171907
  3  10.6353
  4  45.1977
  5  8.57463
  6  12.5946
  7  11.658
  8  0.000191439
  9  1.51225
  10  12.8259
  11  24.2246
  12  0.000175556
  13  8.27383
  14  9.51667e-06
  15  0.000133424
  16  8.55358
  17  31.1288
  18  8.66188
  19  1.74966e-05
  20  0.000302561
  21  9.84743e-06
  22  0.00015692
  23  9.16926
  24  0.238261
  25  0.150449
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.329e+01  1.283e+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.094e+00  1.504e-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:  6.899e-01  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.30
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.78e-08 +/- 4.61e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.97e-05

TS (Fixed Index): 2.30
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839388/likelihoodResults_374889601_375148801_4FGL_J2324.7+0801_daily_bin523.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) = 7028.89330905
delta logL = 0.0532650170908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7028.89003879
delta logL = 0.0565352697813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.568       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4524       1.0000          .0000       10.000    
     3 'Normalizat'    .67713       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0986       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=   7028.890     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      292 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.565        14.510        .12325E-03    .67881E-03
   2  Index         2.4519        .77180        .70382E-02    .17791E-03
   3  Normalizat    .67747        .23399        .38067E-03   -.44749E-03
   4  Prefactor     1.0985        .14799        .19405E-03   -.11277E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5654
  Index      = 2.4519
  Normalizat = 0.677467
  Prefactor  = 1.09852
 **********
 **   18 **HESSE 
 **********

 FCN=   7028.890     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.565        12.934        .49300E-05   -1.5058    
   2  Index         2.4519        .68769        .28153E-03   -.53474    
   3  Normalizat    .67747        .23331        .15227E-04   -1.0479    
   4  Prefactor     1.0985        .14773        .38809E-04   -.89514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34441e-09
Minuit parameter uncertainties:
  1  12.9377
  2  0.690655
  3  0.233647
  4  0.147781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839388': 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) = 7028.89003683
delta logL = 0.0565372315214

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.057e+01  1.294e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.452e+00  6.907e-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.099e+00  1.478e-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:  6.775e-01  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.45 +/- 0.69
Photon Flux (Free Index): 5.94e-08 +/- 5.85e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.63e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/839388/cmap_HighResolution_374889601_375148801_4FGL_J2324.7+0801_daily_bin523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='4.78e-08', energy_flux2='1.82e-05', photon_flux_error='4.61e-08', dlogl='5.65e-02', energy_flux='2.04e-05', photon_flux2='5.94e-08', job_status='DONE', time_completed='2021-09-29 16:24:36.492487', photon_index_error2='0.69', photon_index2='2.45', ts='2.30', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.63e-05', EG='0.69', time_epoch_completed='1632957876.49', return_code='0', job_id='839388', GAL2='1.10', EG2='0.68', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='5.85e-08', ts2='2.41', photon_index='2.23' WHERE bin_id='523' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:24:36 PDT 2021


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

Job <4FGL_J2324.7+0801_daily_bin523> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:10:27 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:10:28 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:10:28 2021
Terminated at Wed Sep 29 16:24:37 2021
Results reported at Wed Sep 29 16:24:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin523 351.19 8.0282 374889601 375148801 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 :                                   711.29 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             293.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

