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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin500
RA = 351.19, Dec = 8.0282
tmin = 368928001, tmax = 369187201
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='839354', job_status='RUN', time_executed='2021-09-29 16:13:06.212324', time_epoch_executed='1632957186.21' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839354

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839354/ft1_4FGL_J2324.7+0801_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839354/ft2_4FGL_J2324.7+0801_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839354/ft1_4FGL_J2324.7+0801_daily_bin500.fits outfile=/scratch/kocevski/839354/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin500.fits ra=351.19 dec=8.0282 rad=12.0 tmin=368928001.0 tmax=369187201.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.33
user 3.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839354/ft1_filtered_4FGL_J2324.7+0801_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/839354/ft2_4FGL_J2324.7+0801_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/839354/ltcube_368928001_369187201_4FGL_J2324.7+0801_daily_bin500.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/839354/ft2_4FGL_J2324.7+0801_daily_bin500.fits
.....................!
real 11.67
user 11.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839354/ft1_filtered_4FGL_J2324.7+0801_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/839354/ft2_4FGL_J2324.7+0801_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/839354/ltcube_368928001_369187201_4FGL_J2324.7+0801_daily_bin500.fits outfile=/scratch/kocevski/839354/expmap_368928001_369187201_4FGL_J2324.7+0801_daily_bin500.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/839354/ltcube_368928001_369187201_4FGL_J2324.7+0801_daily_bin500.fits
.....................!
real 191.04
user 185.32
sys 5.41

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/839354/ft1_filtered_4FGL_J2324.7+0801_daily_bin500.fits scfile=/scratch/kocevski/839354/ft2_4FGL_J2324.7+0801_daily_bin500.fits outfile=/scratch/kocevski/839354/cmap_368928001_369187201_4FGL_J2324.7+0801_daily_bin500.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839354/ft1_filtered_4FGL_J2324.7+0801_daily_bin500.fits scfile=/scratch/kocevski/839354/ft2_4FGL_J2324.7+0801_daily_bin500.fits outfile=/scratch/kocevski/839354/cmap_HighResolution_368928001_369187201_4FGL_J2324.7+0801_daily_bin500.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/839354/ft1_filtered_4FGL_J2324.7+0801_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/839354/ft2_4FGL_J2324.7+0801_daily_bin500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839354/Model_4FGL_J2324.7+0801_daily_bin500.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/839354/ft1_filtered_4FGL_J2324.7+0801_daily_bin500.fits.....................!
real 80.11
user 78.72
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11020       1.0000         .10000E-03   10000.    
     3 'norm      '    16.128       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13942E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2170       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.682       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8890       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3609       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.794       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4507       1.0000         .10000E-03   10000.    
    15 'Prefactor '    252.96       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8945       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6988       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33712       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3040       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76933       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1312       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7624.600     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     2493 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8848        .15857E-05** at limit **
   2  Prefactor     .11016        .12782        .55148E-07    .23533E-04
   3  norm          16.119        3.9438        .33305E-05   -.75740E-02
   4  Prefactor     .10000E-03    103.07       -.84759E-05** at limit **
   5  Prefactor     6.2158        1.0330       -.13719E-08   -.72833E-04
   6  Prefactor     .10006E-03    6.8713       -.10464E-04** at limit **
   7  Prefactor     10.671        2.3155        .20393E-05   -.36080E-02
   8  Prefactor     3.8859        2.4299        .40111E-05   -.81539E-03
   9  norm          1.3606        .75134        .74022E-07    .11735E-03
  10  Prefactor     11.790        3.1538        .30952E-05   -.36553E-02
  11  Prefactor     .10009E-03    6.6714        .14166E-04** at limit **
  12  Prefactor     .10000E-03    12.537       -.16638E-05** at limit **
  13  norm          .10000E-03    17.935        .27976E-06** at limit **
  14  Prefactor     6.4477        1.2179        .69900E-06    .51571E-03
  15  Prefactor     252.94        1.5051       -.13659E-06    .51439E-02
  16  Prefactor     3.9016        1.4784       -.55203E-06    .82411E-05
  17  Prefactor     .10001E-03    21.141       -.16626E-05** at limit **
  18  norm          .10000E-03    5.9164        .70572E-06** at limit **
  19  norm          .10000E-03    9.2213        .34336E-05** at limit **
  20  Prefactor     3.6972        3.9619       -.14293E-06   -.38957E-03
  21  Prefactor     .10104E-03    1426.4       -.34216E-04** at limit **
  22  Prefactor     .10000E-03    8.0536       -.30573E-05** at limit **
  23  Prefactor     7.3029        1.0399        .30843E-06   -.50146E-04
  24  Normalizat    .76962        .22011       -.77273E-05   -.88848E-04
  25  Prefactor     1.1312        .14197        .50024E-06   -.22920E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.11016
  norm       = 16.1193
  Prefactor  = 0.0001
  Prefactor  = 6.21577
  Prefactor  = 0.000100061
  Prefactor  = 10.6706
  Prefactor  = 3.88593
  norm       = 1.36058
  Prefactor  = 11.7896
  Prefactor  = 0.00010009
  Prefactor  = 0.000100002
  norm       = 0.000100004
  Prefactor  = 6.44766
  Prefactor  = 252.945
  Prefactor  = 3.90162
  Prefactor  = 0.000100008
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 3.69722
  Prefactor  = 0.000101044
  Prefactor  = 0.000100003
  Prefactor  = 7.30285
  Normalizat = 0.769621
  Prefactor  = 1.13117
 **********
 **   18 **HESSE 
 **********

 FCN=   7624.600     FROM HESSE     STATUS=OK           487 CALLS     2980 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9001        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11016        .13792        .73377E-02   -1.5642    
   3  norm          16.119        14.894        .24933E-02   -1.4905    
   4  Prefactor     .10000E-03    101.39        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2158        7.2556        .40250E-02   -1.5209    
   6  Prefactor     .10006E-03    7.3987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.671        19.021        .30646E-02   -1.5055    
   8  Prefactor     3.8859        8.7000        .51151E-02   -1.5314    
   9  norm          1.3606        .75706        .93590E-02   -1.5475    
  10  Prefactor     11.790        11.339        .29162E-02   -1.5021    
  11  Prefactor     .10009E-03    7.5021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.568        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    17.596        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4477        6.5473        .39505E-02   -1.5200    
  15  Prefactor     252.94        199.75        .63685E-03   -1.2514    
  16  Prefactor     3.9016        10.519        .51113E-02   -1.5313    
  17  Prefactor     .10001E-03    21.178        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.9214        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.2667        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6972        4.8538        .52497E-02   -1.5323    
  21  Prefactor     .10104E-03    25.484        .13388       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.1549        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.3029        6.8519        .37103E-02   -1.5167    
  24  Normalizat    .76962        .20316        .78445E-01   -1.0121    
  25  Prefactor     1.1312        .12513        .36505E-01   -.88476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68127e-07
Minuit parameter uncertainties:
  1  5.98041e-05
  2  0.137921
  3  14.8973
  4  4.09451e-05
  5  7.25663
  6  0.00134153
  7  19.0321
  8  8.70281
  9  0.757061
  10  11.3408
  11  0.00164536
  12  0.000337518
  13  0.000527815
  14  6.54807
  15  200.293
  16  10.5243
  17  0.000839172
  18  1.66036e-05
  19  0.000188055
  20  4.85429
  21  0.0103201
  22  0.000303104
  23  6.85264
  24  0.203357
  25  0.125166
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.179e+01  1.134e+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.131e+00  1.252e-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.696e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.24e-08 +/- 4.08e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.74e-05

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

Saving results to:
/scratch/kocevski/839354/likelihoodResults_368928001_369187201_4FGL_J2324.7+0801_daily_bin500.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) = 7624.43269628
delta logL = 0.167633276085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7624.4185975
delta logL = 0.181732050651

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4631       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6066       1.0000          .0000       10.000    
     3 'Normalizat'    .75255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1375       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=   7624.419     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      280 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4613        12.816        .14681E-03    .92231E-04
   2  Index         2.6068        .81365        .62535E-02    .46976E-04
   3  Normalizat    .75258        .22006        .35083E-03   -.50504E-03
   4  Prefactor     1.1374        .14212        .18814E-03   -.11155E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.46134
  Index      = 2.60677
  Normalizat = 0.752582
  Prefactor  = 1.13744
 **********
 **   18 **HESSE 
 **********

 FCN=   7624.419     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4613        10.615        .58723E-05   -1.5162    
   2  Index         2.6068        .67443        .25014E-03   -.49911    
   3  Normalizat    .75258        .21968        .14033E-04   -1.0185    
   4  Prefactor     1.1374        .14182        .37627E-04   -.88279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.65483e-10
Minuit parameter uncertainties:
  1  10.6177
  2  0.67711
  3  0.21994
  4  0.141871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839354': 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) = 7624.41859745
delta logL = 0.181732104337

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  7.461e+00  1.062e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.607e+00  6.771e-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.137e+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:  7.526e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 351.190 8.028
Photon Index (Free Index): 2.61 +/- 0.68
Photon Flux (Free Index): 5.79e-08 +/- 5.20e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.38e-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/839354/cmap_HighResolution_368928001_369187201_4FGL_J2324.7+0801_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.68e-03', comment='SUCCESS', photon_flux='4.24e-08', energy_flux2='1.51e-05', photon_flux_error='4.08e-08', dlogl='1.82e-01', energy_flux='1.81e-05', photon_flux2='5.79e-08', job_status='DONE', time_completed='2021-09-29 16:25:01.669579', photon_index_error2='0.68', photon_index2='2.61', ts='1.43', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.38e-05', EG='0.77', time_epoch_completed='1632957901.67', return_code='0', job_id='839354', GAL2='1.14', EG2='0.75', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='5.20e-08', ts2='1.79', photon_index='2.23' WHERE bin_id='500' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:25:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 839354: <4FGL_J2324.7+0801_daily_bin500> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin500 351.19 8.0282 368928001 369187201 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 :                                   715.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            877 sec.

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

