/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 140 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 = 7304
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2324.7+0801_daily_bin384
RA = 351.19, Dec = 8.0282
tmin = 338860801, tmax = 339120001
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='839183', job_status='RUN', time_executed='2021-09-29 16:12:42.078412', time_epoch_executed='1632957162.08' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839183

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839183/ft1_4FGL_J2324.7+0801_daily_bin384.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839183/ft2_4FGL_J2324.7+0801_daily_bin384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839183/ft1_4FGL_J2324.7+0801_daily_bin384.fits outfile=/scratch/kocevski/839183/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin384.fits ra=351.19 dec=8.0282 rad=12.0 tmin=338860801.0 tmax=339120001.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 4.74
user 4.47
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839183/ft1_filtered_4FGL_J2324.7+0801_daily_bin384.fits" evtable="EVENTS" scfile=/scratch/kocevski/839183/ft2_4FGL_J2324.7+0801_daily_bin384.fits sctable="SC_DATA" outfile=/scratch/kocevski/839183/ltcube_338860801_339120001_4FGL_J2324.7+0801_daily_bin384.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/839183/ft2_4FGL_J2324.7+0801_daily_bin384.fits
.....................!
real 11.89
user 11.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839183/ft1_filtered_4FGL_J2324.7+0801_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/839183/ft2_4FGL_J2324.7+0801_daily_bin384.fits sctable="SC_DATA" expcube=/scratch/kocevski/839183/ltcube_338860801_339120001_4FGL_J2324.7+0801_daily_bin384.fits outfile=/scratch/kocevski/839183/expmap_338860801_339120001_4FGL_J2324.7+0801_daily_bin384.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/839183/ltcube_338860801_339120001_4FGL_J2324.7+0801_daily_bin384.fits
.....................!
real 191.13
user 186.48
sys 4.28

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/839183/ft1_filtered_4FGL_J2324.7+0801_daily_bin384.fits scfile=/scratch/kocevski/839183/ft2_4FGL_J2324.7+0801_daily_bin384.fits outfile=/scratch/kocevski/839183/cmap_338860801_339120001_4FGL_J2324.7+0801_daily_bin384.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.55
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/839183/ft1_filtered_4FGL_J2324.7+0801_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/839183/ft2_4FGL_J2324.7+0801_daily_bin384.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839183/Model_4FGL_J2324.7+0801_daily_bin384.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/839183/ft1_filtered_4FGL_J2324.7+0801_daily_bin384.fits.....................!
real 67.44
user 65.92
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .12715       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19506E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.607       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8288       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4497       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.656       1.0000         .10000E-03   10000.    
    13 'norm      '    5.1696       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .92858E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10446E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.700       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    17.694       1.0000         .10000E-03   10000.    
    19 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0664       1.0000         .10000E-03   10000.    
    21 'Prefactor '    121.93       1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.395       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82619       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0500       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=   6116.211     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2953 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.585       -.61867E-06** at limit **
   2  Prefactor     .12721        .11400       -.87851E-07    .27008E-02
   3  norm          .10000E-03    15.562       -.28006E-06** at limit **
   4  Prefactor     .10000E-03    32.418       -.18685E-05** at limit **
   5  Prefactor     .10001E-03    89.483        .28796E-04** at limit **
   6  Prefactor     24.620        15.161        .90044E-07    .28775E-03
   7  Prefactor     .10001E-03    36.960        .19235E-05** at limit **
   8  Prefactor     8.8306        5.8743        .53420E-07    .25096E-03
   9  norm          1.4496        1.0710       -.13187E-07   -.53273E-03
  10  Prefactor     .10000E-03    10.445       -.10728E-05** at limit **
  11  Prefactor     .10000E-03    5.9611        .13551E-07** at limit **
  12  Prefactor     36.650        43.822        .21675E-06   -.90634E-04
  13  norm          5.1559        9.9423        .25863E-05    .63339E-03
  14  Prefactor     .10001E-03    3.9203       -.23218E-05** at limit **
  15  Prefactor     .10000E-03    134.51        .40720E-05** at limit **
  16  Prefactor     23.690        17.448        .53189E-06   -.50741E-03
  17  Prefactor     .10000E-03    10.644       -.42635E-06** at limit **
  18  norm          17.692        15.390        .72870E-07    .72873E-04
  19  norm          .10000E-03    12.433        .34407E-06** at limit **
  20  Prefactor     3.0681        5.0621       -.61916E-06    .21109E-03
  21  Prefactor     121.93        54.756       -.60582E-07   -.67260E-04
  22  Prefactor     33.391        22.432       -.17279E-06    .22272E-04
  23  Prefactor     .10000E-03    3.7949       -.85771E-07** at limit **
  24  Normalizat    .82605        .21851        .16632E-05    .10626E-03
  25  Prefactor     1.0502        .13513        .38348E-06    .11781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.127215
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 24.62
  Prefactor  = 0.000100012
  Prefactor  = 8.83062
  norm       = 1.44962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.6497
  norm       = 5.15585
  Prefactor  = 0.000100007
  Prefactor  = 0.000100002
  Prefactor  = 23.6901
  Prefactor  = 0.0001
  norm       = 17.6917
  norm       = 0.0001
  Prefactor  = 3.0681
  Prefactor  = 121.926
  Prefactor  = 33.3905
  Prefactor  = 0.0001
  Normalizat = 0.826053
  Prefactor  = 1.05017
 **********
 **   18 **HESSE 
 **********

 FCN=   6116.211     FROM HESSE     STATUS=OK           429 CALLS     3382 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12721        .10896        .24040E-03   -1.5637    
   3  norm          .10000E-03    15.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    8.2423        .52913E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.620        15.155        .80752E-04   -1.4715    
   7  Prefactor     .10001E-03    36.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.8306        5.8763        .13490E-03   -1.5114    
   9  norm          1.4496        1.0709        .35785E-04   -1.5467    
  10  Prefactor     .10000E-03    10.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.650        43.798        .66195E-04   -1.4496    
  13  norm          5.1559        9.7171        .17681E-03   -1.5254    
  14  Prefactor     .10001E-03    16.004        .27802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    134.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.690        17.288        .82281E-04   -1.4734    
  17  Prefactor     .10000E-03    10.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.692        15.389        .95216E-04   -1.4866    
  19  norm          .10000E-03    12.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0681        5.0118        .20120E-03   -1.5358    
  21  Prefactor     121.93        54.825        .36448E-04   -1.3495    
  22  Prefactor     33.391        22.436        .69342E-04   -1.4552    
  23  Prefactor     .10000E-03    3.8083        .14879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82605        .24948        .33329E-03   -.99109    
  25  Prefactor     1.0502        .15509        .19304E-03   -.91075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23073e-09
Minuit parameter uncertainties:
  1  6.10467e-05
  2  0.108962
  3  9.12269e-05
  4  0.00011237
  5  0.000558657
  6  15.157
  7  0.00132524
  8  5.87673
  9  1.07087
  10  0.000120426
  11  3.2266e-05
  12  43.8367
  13  9.72007
  14  0.00068575
  15  0.00106522
  16  17.2918
  17  5.45992e-05
  18  15.3925
  19  0.000103373
  20  5.01245
  21  54.8483
  22  22.4415
  23  1.28062e-05
  24  0.249824
  25  0.155157
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  1.204e-04  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.050e+00  1.552e-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:  8.261e-01  2.498e-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.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839183/likelihoodResults_338860801_339120001_4FGL_J2324.7+0801_daily_bin384.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) = 6116.21119052
delta logL = -0.000449166317594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6116.21074155
delta logL = -1.94565473066e-07

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 'Index     '    2.2536       1.0000          .0000       10.000    
     3 'Normalizat'    .82587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0503       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6116.211     FROM MIGRAD    STATUS=FAILED        87 CALLS      241 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    667.58        .18142E-02** at limit **
   2  Index         2.2815        5.8098        .50000       -.23274E-04
   3  Normalizat    .82605        .44581E-01    .33329E-03    .64231E-04
   4  Prefactor     1.0502        .29003E-01    .19304E-03    .96820E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6116.211     FROM SIMPLEX   STATUS=UNCHANGED    160 CALLS      401 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    667.58        .59424E-03** at limit **
   2  Index         2.2815        5.8098        .22552E-05   -.23274E-04
   3  Normalizat    .82605        .44581E-01    .48091E-07    .64231E-04
   4  Prefactor     1.0502        .29003E-01    .22726E-07    .96820E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6116.211     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      435 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1995.9        .36285E-03** at limit **
   2  Index         2.2817        6.0608        .50000       -.23286E-04
   3  Normalizat    .82605        .11021        .13331E-04    .61741E-04
   4  Prefactor     1.0502        .71708E-01    .38608E-04    .92697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.2817
  Normalizat = 0.826052
  Prefactor  = 1.05017
 **********
 **   18 **HESSE 
 **********

 FCN=   6116.211     FROM HESSE     STATUS=OK            29 CALLS      464 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    12.668        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2817        6.1354        .50000       -.57479    
   3  Normalizat    .82605        .23500        .26663E-05   -.99109    
   4  Prefactor     1.0502        .15303        .77216E-05   -.91075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0941e-10
Minuit parameter uncertainties:
  1  0.000551924
  2  4.45671
  3  0.235288
  4  0.153091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839183': 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) = 6116.21074107
delta logL = 2.78929292108e-07

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  5.519e-04  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.282e+00  4.457e+00  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.050e+00  1.531e-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:  8.261e-01  2.353e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/839183/cmap_HighResolution_338860801_339120001_4FGL_J2324.7+0801_daily_bin384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.04e-03', job_status='DONE', photon_flux_upper_limit='9.22e-08', time_completed='2021-09-29 16:24:11.322780', job_id='839183', GAL2='1.05', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1632957851.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='384' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:24:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 839183: <4FGL_J2324.7+0801_daily_bin384> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin384 351.19 8.0282 338860801 339120001 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 :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            839 sec.

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

