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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin846
RA = 351.19, Dec = 8.0282
tmin = 458611201, tmax = 458870401
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='842048', job_status='RUN', time_executed='2021-09-29 16:22:29.593845', time_epoch_executed='1632957749.59' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='846'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842048

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842048/ft1_4FGL_J2324.7+0801_daily_bin846.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842048/ft2_4FGL_J2324.7+0801_daily_bin846.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842048/ft1_4FGL_J2324.7+0801_daily_bin846.fits outfile=/scratch/kocevski/842048/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin846.fits ra=351.19 dec=8.0282 rad=12.0 tmin=458611201.0 tmax=458870401.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.61
user 3.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842048/ft1_filtered_4FGL_J2324.7+0801_daily_bin846.fits" evtable="EVENTS" scfile=/scratch/kocevski/842048/ft2_4FGL_J2324.7+0801_daily_bin846.fits sctable="SC_DATA" outfile=/scratch/kocevski/842048/ltcube_458611201_458870401_4FGL_J2324.7+0801_daily_bin846.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/842048/ft2_4FGL_J2324.7+0801_daily_bin846.fits
.....................!
real 11.73
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842048/ft1_filtered_4FGL_J2324.7+0801_daily_bin846.fits evtable="EVENTS" scfile=/scratch/kocevski/842048/ft2_4FGL_J2324.7+0801_daily_bin846.fits sctable="SC_DATA" expcube=/scratch/kocevski/842048/ltcube_458611201_458870401_4FGL_J2324.7+0801_daily_bin846.fits outfile=/scratch/kocevski/842048/expmap_458611201_458870401_4FGL_J2324.7+0801_daily_bin846.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/842048/ltcube_458611201_458870401_4FGL_J2324.7+0801_daily_bin846.fits
.....................!
real 189.72
user 184.78
sys 4.63

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/842048/ft1_filtered_4FGL_J2324.7+0801_daily_bin846.fits scfile=/scratch/kocevski/842048/ft2_4FGL_J2324.7+0801_daily_bin846.fits outfile=/scratch/kocevski/842048/cmap_458611201_458870401_4FGL_J2324.7+0801_daily_bin846.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.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4356       1.0000         .10000E-03   10000.    
     3 'norm      '    9.8756       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9096       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0362       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.198       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4146       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2964       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.165       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0776       1.0000         .10000E-03   10000.    
    15 'Prefactor '    116.81       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.638       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .63574       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1573       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=   6501.717     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2855 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.171       -.77641E-06** at limit **
   2  Prefactor     1.4356        .23313        .73849E-08    .14411E-02
   3  norm          9.8751        16.277        .22007E-06    .15578E-05
   4  Prefactor     7.9039        51.282        .14023E-05   -.73458E-05
   5  Prefactor     .10000E-03    2.1185        .23146E-07** at limit **
   6  Prefactor     2.0361        6.7858        .70273E-05   -.12031E-04
   7  Prefactor     11.199        21.007        .32723E-07   -.14945E-04
   8  Prefactor     4.4157        7.0529        .39799E-06    .12354E-03
   9  norm          1.2965        .90273        .54406E-09    .21844E-03
  10  Prefactor     .10000E-03    12.766       -.20456E-07** at limit **
  11  Prefactor     .10000E-03    10.831       -.70100E-06** at limit **
  12  Prefactor     .10000E-03    15.610        .13155E-05** at limit **
  13  norm          13.168        11.094       -.42237E-06   -.21488E-04
  14  Prefactor     9.0774        9.0123        .85935E-06   -.20213E-04
  15  Prefactor     116.75        178.21        .58318E-05    .17497E-04
  16  Prefactor     .10000E-03    6.6369       -.10468E-05** at limit **
  17  Prefactor     31.639        27.338       -.99228E-07   -.34467E-04
  18  norm          .10000E-03    6.0703        .17732E-06** at limit **
  19  norm          .10000E-03    24.411       -.12537E-05** at limit **
  20  Prefactor     .10000E-03    2.0034       -.23942E-06** at limit **
  21  Prefactor     .10000E-03    38.823        .14917E-05** at limit **
  22  Prefactor     .10000E-03    7.4641        .70415E-06** at limit **
  23  Prefactor     .10000E-03    2.4599        .22737E-07** at limit **
  24  Normalizat    .63575        .21541       -.85884E-06    .31643E-04
  25  Prefactor     1.1572        .13536       -.21167E-06    .10627E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.43562
  norm       = 9.87509
  Prefactor  = 7.90386
  Prefactor  = 0.0001
  Prefactor  = 2.03615
  Prefactor  = 11.1989
  Prefactor  = 4.41571
  norm       = 1.29646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1678
  Prefactor  = 9.07741
  Prefactor  = 116.754
  Prefactor  = 0.0001
  Prefactor  = 31.6393
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.635753
  Prefactor  = 1.15725
 **********
 **   18 **HESSE 
 **********

 FCN=   6501.717     FROM HESSE     STATUS=OK           423 CALLS     3278 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.4356        .23319        .15105E-04   -1.5468    
   3  norm          9.8751        16.269        .12751E-03   -1.5079    
   4  Prefactor     7.9039        51.162        .14257E-03   -1.5146    
   5  Prefactor     .10000E-03    2.1247        .11460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0361        6.7879        .14492E-02   -1.5423    
   7  Prefactor     11.199        21.026        .11972E-03   -1.5039    
   8  Prefactor     4.4157        7.0429        .19167E-03   -1.5288    
   9  norm          1.2965        .90538        .61542E-04   -1.5480    
  10  Prefactor     .10000E-03    12.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.168        11.050        .11040E-03   -1.4982    
  14  Prefactor     9.0774        8.9859        .66513E-03   -1.5105    
  15  Prefactor     116.75        179.05        .18615E-03   -1.3543    
  16  Prefactor     .10000E-03    6.7144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.639        27.315        .71235E-04   -1.4582    
  18  norm          .10000E-03    6.0783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    25.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0160        .11149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.4786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.4643        .12351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .63575        .23669        .37378E-03   -1.0649    
  25  Prefactor     1.1572        .15044        .18811E-03   -.87657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82159e-10
Minuit parameter uncertainties:
  1  0.00019717
  2  0.233192
  3  16.2761
  4  40.2683
  5  1.4055e-06
  6  6.79045
  7  21.04
  8  7.04426
  9  0.90539
  10  1.44949e-06
  11  4.8511e-05
  12  6.86782e-05
  13  11.0516
  14  8.98719
  15  179.885
  16  4.76596e-05
  17  27.3253
  18  5.58099e-07
  19  6.95465e-05
  20  2.03278e-05
  21  0.000145851
  22  2.50585e-05
  23  1.47342e-06
  24  0.237073
  25  0.150496
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  1.449e-06  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.157e+00  1.505e-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.358e-01  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 9.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/842048/likelihoodResults_458611201_458870401_4FGL_J2324.7+0801_daily_bin846.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): 102
logL (Free Index) = 6501.71746308
delta logL = -0.000370501807083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6501.71709379
delta logL = -1.20755521493e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2594       1.0000          .0000       10.000    
     3 'Normalizat'    .63541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1575       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=   6501.717     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    172.36        .90712E-02** at limit **
   2  Index         2.2930        8.4284        .50000       -.22804E-04
   3  Normalizat    .63575        .18440E-01    .84387E-01   -.31034E-03
   4  Prefactor     1.1573        .12274E-01    .35723E-01   -.23776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.29304
  Normalizat = 0.635748
  Prefactor  = 1.15725
 **********
 **   18 **HESSE 
 **********

 FCN=   6501.717     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      240 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6346.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2930        5.0473        .50000       -.57209    
   3  Normalizat    .63575        .12725        .37378E-03   -1.0649    
   4  Prefactor     1.1573        .84865E-01    .18811E-03   -.87657    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.9576e-08
Minuit parameter uncertainties:
  1  0.00452458
  2  61.3179
  3  0.127308
  4  0.0848751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842048': 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): 102
logL (Free Index) = 6501.71709225
delta logL = 3.33193383995e-07

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  4.525e-03  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.293e+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.157e+00  8.488e-02  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.357e-01  1.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.190 8.028

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/842048/cmap_HighResolution_458611201_458870401_4FGL_J2324.7+0801_daily_bin846.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-03', job_status='DONE', photon_flux_upper_limit='9.70e-08', time_completed='2021-09-29 16:34:01.869713', job_id='842048', GAL2='1.16', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1632958441.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='3.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='846' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:34:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 842048: <4FGL_J2324.7+0801_daily_bin846> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin846> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 16:20:18 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:20:21 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:20:21 2021
Terminated at Wed Sep 29 16:34:02 2021
Results reported at Wed Sep 29 16:34:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin846 351.19 8.0282 458611201 458870401 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 :                                   691.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             326.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            824 sec.

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

