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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin726
RA = 351.19, Dec = 8.0282
tmin = 427507201, tmax = 427766401
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='840794', job_status='RUN', time_executed='2021-09-29 16:16:25.014901', time_epoch_executed='1632957385.01' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840794

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840794/ft1_4FGL_J2324.7+0801_daily_bin726.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840794/ft2_4FGL_J2324.7+0801_daily_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840794/ft1_4FGL_J2324.7+0801_daily_bin726.fits outfile=/scratch/kocevski/840794/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin726.fits ra=351.19 dec=8.0282 rad=12.0 tmin=427507201.0 tmax=427766401.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 5.44
user 5.17
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840794/ft1_filtered_4FGL_J2324.7+0801_daily_bin726.fits" evtable="EVENTS" scfile=/scratch/kocevski/840794/ft2_4FGL_J2324.7+0801_daily_bin726.fits sctable="SC_DATA" outfile=/scratch/kocevski/840794/ltcube_427507201_427766401_4FGL_J2324.7+0801_daily_bin726.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/840794/ft2_4FGL_J2324.7+0801_daily_bin726.fits
.....................!
real 11.83
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840794/ft1_filtered_4FGL_J2324.7+0801_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/840794/ft2_4FGL_J2324.7+0801_daily_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/840794/ltcube_427507201_427766401_4FGL_J2324.7+0801_daily_bin726.fits outfile=/scratch/kocevski/840794/expmap_427507201_427766401_4FGL_J2324.7+0801_daily_bin726.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/840794/ltcube_427507201_427766401_4FGL_J2324.7+0801_daily_bin726.fits
.....................!
real 190.43
user 185.23
sys 4.89

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/840794/ft1_filtered_4FGL_J2324.7+0801_daily_bin726.fits scfile=/scratch/kocevski/840794/ft2_4FGL_J2324.7+0801_daily_bin726.fits outfile=/scratch/kocevski/840794/cmap_427507201_427766401_4FGL_J2324.7+0801_daily_bin726.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840794/ft1_filtered_4FGL_J2324.7+0801_daily_bin726.fits scfile=/scratch/kocevski/840794/ft2_4FGL_J2324.7+0801_daily_bin726.fits outfile=/scratch/kocevski/840794/cmap_HighResolution_427507201_427766401_4FGL_J2324.7+0801_daily_bin726.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/840794/ft1_filtered_4FGL_J2324.7+0801_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/840794/ft2_4FGL_J2324.7+0801_daily_bin726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840794/Model_4FGL_J2324.7+0801_daily_bin726.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/840794/ft1_filtered_4FGL_J2324.7+0801_daily_bin726.fits.....................!
real 52.24
user 50.97
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6338       1.0000         .10000E-03   10000.    
     3 'norm      '    6.3943       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11973E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7746       1.0000         .10000E-03   10000.    
     7 'Prefactor '    63.060       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6113       1.0000         .10000E-03   10000.    
     9 'norm      '    .30766       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7956       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.459       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .35803E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    28.945       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5632       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .53175       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1399       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=   3908.192     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2898 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.012       -.41932E-05** at limit **
   2  Prefactor     6.6338        .63311       -.23954E-08    .30121E-03
   3  norm          6.3841        24.514        .12706E-05   -.26815E-04
   4  Prefactor     .10000E-03    152.28       -.20730E-04** at limit **
   5  Prefactor     .10000E-03    4.5344        .14758E-07** at limit **
   6  Prefactor     9.7745        13.630       -.96755E-06   -.49259E-03
   7  Prefactor     63.061        46.023        .77822E-06    .41929E-06
   8  Prefactor     8.6113        13.206       -.92824E-07   -.67319E-04
   9  norm          .30705        1.8302       -.44756E-06   -.12028E-02
  10  Prefactor     8.7972        11.935       -.20138E-06   -.59919E-04
  11  Prefactor     18.461        32.192        .18701E-06   -.12904E-04
  12  Prefactor     .10000E-03    41.244       -.12374E-04** at limit **
  13  norm          .10000E-03    9.5953       -.12436E-06** at limit **
  14  Prefactor     .10000E-03    9.1563        .56634E-07** at limit **
  15  Prefactor     .10000E-03    143.00        .15809E-04** at limit **
  16  Prefactor     .10000E-03    33.229        .87845E-05** at limit **
  17  Prefactor     .10000E-03    103.98        .14800E-04** at limit **
  18  norm          .10000E-03    12.350        .17931E-06** at limit **
  19  norm          28.931        47.659       -.11730E-04    .47800E-04
  20  Prefactor     8.5607        9.6193       -.67450E-06   -.47887E-04
  21  Prefactor     .10000E-03    54.019        .58934E-05** at limit **
  22  Prefactor     .10000E-03    28.788        .34366E-05** at limit **
  23  Prefactor     .10000E-03    7.1742       -.47730E-07** at limit **
  24  Normalizat    .53158        .34424        .10469E-05   -.54553E-04
  25  Prefactor     1.1401        .21796        .22366E-06   -.59669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.63377
  norm       = 6.38406
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 9.77446
  Prefactor  = 63.0612
  Prefactor  = 8.61135
  norm       = 0.307054
  Prefactor  = 8.79724
  Prefactor  = 18.4607
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 28.9306
  Prefactor  = 8.5607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.531579
  Prefactor  = 1.14006
 **********
 **   18 **HESSE 
 **********

 FCN=   3908.192     FROM HESSE     STATUS=OK           419 CALLS     3317 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.6338        .63321        .14818E-04   -1.5193    
   3  norm          6.3841        24.477        .15872E-03   -1.5203    
   4  Prefactor     .10000E-03    152.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5422        .13000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7745        13.776        .64086E-03   -1.5083    
   7  Prefactor     63.061        45.986        .50532E-04   -1.4118    
   8  Prefactor     8.6113        13.151        .13660E-03   -1.5121    
   9  norm          .30705        1.9157        .16385E-03   -1.5597    
  10  Prefactor     8.7972        11.922        .13515E-03   -1.5115    
  11  Prefactor     18.461        32.063        .93222E-04   -1.4848    
  12  Prefactor     .10000E-03    40.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.7105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.3026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    142.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    105.19        .21314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          28.931        47.297        .74468E-04   -1.4632    
  20  Prefactor     8.5607        9.6279        .13699E-03   -1.5123    
  21  Prefactor     .10000E-03    54.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.1862        .16353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .53158        .37312        .46903E-03   -1.1097    
  25  Prefactor     1.1401        .24058        .21368E-03   -.88196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82004e-09
Minuit parameter uncertainties:
  1  0.000133073
  2  0.633209
  3  24.5153
  4  0.00167261
  5  8.98027e-07
  6  13.7806
  7  46.0121
  8  13.1556
  9  1.53375
  10  11.9252
  11  32.0928
  12  0.000494755
  13  7.78958e-06
  14  1.47625e-05
  15  0.00103089
  16  0.000511068
  17  0.00136672
  18  9.28219e-06
  19  47.3586
  20  9.6296
  21  0.000193405
  22  0.000132499
  23  3.59636e-06
  24  0.374899
  25  0.240806
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  8.797e+00  1.193e+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.140e+00  2.408e-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.316e-01  3.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/840794/likelihoodResults_427507201_427766401_4FGL_J2324.7+0801_daily_bin726.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) = 3907.63293686
delta logL = 0.559196812094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3907.52072706
delta logL = 0.671406616054

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.413       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3707       1.0000          .0000       10.000    
     3 'Normalizat'    .55789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1264       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.

 FCN=   3907.521     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.413        20.873        .24715E-02   -.16453E-02
   2  Index         1.3705        .59596        .23543       -.23457E-04
   3  Normalizat    .55773        .32976        .10334        .24612E-04
   4  Prefactor     1.1265        .21498        .36659E-01    .41541E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4132
  Index      = 1.37052
  Normalizat = 0.55773
  Prefactor  = 1.12648
 **********
 **   18 **HESSE 
 **********

 FCN=   3907.521     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.413        18.657        .98860E-04   -1.4897    
   2  Index         1.3705        .60993        .90720E-02   -.81234    
   3  Normalizat    .55773        .36516        .45833E-03   -1.0981    
   4  Prefactor     1.1265        .23957        .21456E-03   -.88625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77924e-09
Minuit parameter uncertainties:
  1  18.6641
  2  0.613176
  3  0.366752
  4  0.239795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840794': 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) = 3907.52072676
delta logL = 0.671406914797

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.641e+01  1.866e+01  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.371e+00  6.132e-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.126e+00  2.398e-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.577e-01  3.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 351.190 8.028
Photon Index (Free Index): 1.37 +/- 0.61
Photon Flux (Free Index): 1.73e-08 +/- 2.24e-08
Energy Flux (Free Index): 8.44e-05 +/- 1.44e-04

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/840794/cmap_HighResolution_427507201_427766401_4FGL_J2324.7+0801_daily_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', energy_flux2='8.44e-05', dlogl='6.71e-01', photon_flux2='1.73e-08', job_status='DONE', time_completed='2021-09-29 16:25:49.523447', photon_index_error2='0.61', photon_index2='1.37', ts='0.99', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.44e-04', EG='0.53', time_epoch_completed='1632957949.52', return_code='0', job_id='840794', GAL2='1.13', EG2='0.56', return_code2='0', photon_flux_error2='2.24e-08', ts2='2.34', photon_index='2.23' WHERE bin_id='726' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:25:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 840794: <4FGL_J2324.7+0801_daily_bin726> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin726 351.19 8.0282 427507201 427766401 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 :                                   561.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             340.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            616 sec.

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

