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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin313
RA = 351.19, Dec = 8.0282
tmin = 320457601, tmax = 320716801
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='838085', job_status='RUN', time_executed='2021-09-29 16:07:44.594271', time_epoch_executed='1632956864.59' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/838085

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/838085/ft1_4FGL_J2324.7+0801_daily_bin313.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/838085/ft2_4FGL_J2324.7+0801_daily_bin313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/838085/ft1_4FGL_J2324.7+0801_daily_bin313.fits outfile=/scratch/kocevski/838085/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin313.fits ra=351.19 dec=8.0282 rad=12.0 tmin=320457601.0 tmax=320716801.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.78
user 3.54
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/838085/ft1_filtered_4FGL_J2324.7+0801_daily_bin313.fits" evtable="EVENTS" scfile=/scratch/kocevski/838085/ft2_4FGL_J2324.7+0801_daily_bin313.fits sctable="SC_DATA" outfile=/scratch/kocevski/838085/ltcube_320457601_320716801_4FGL_J2324.7+0801_daily_bin313.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/838085/ft2_4FGL_J2324.7+0801_daily_bin313.fits
.....................!
real 12.03
user 11.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/838085/ft1_filtered_4FGL_J2324.7+0801_daily_bin313.fits evtable="EVENTS" scfile=/scratch/kocevski/838085/ft2_4FGL_J2324.7+0801_daily_bin313.fits sctable="SC_DATA" expcube=/scratch/kocevski/838085/ltcube_320457601_320716801_4FGL_J2324.7+0801_daily_bin313.fits outfile=/scratch/kocevski/838085/expmap_320457601_320716801_4FGL_J2324.7+0801_daily_bin313.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/838085/ltcube_320457601_320716801_4FGL_J2324.7+0801_daily_bin313.fits
.....................!
real 191.12
user 185.41
sys 5.35

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/838085/ft1_filtered_4FGL_J2324.7+0801_daily_bin313.fits scfile=/scratch/kocevski/838085/ft2_4FGL_J2324.7+0801_daily_bin313.fits outfile=/scratch/kocevski/838085/cmap_320457601_320716801_4FGL_J2324.7+0801_daily_bin313.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.19 yref=8.0282 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/838085/ft1_filtered_4FGL_J2324.7+0801_daily_bin313.fits scfile=/scratch/kocevski/838085/ft2_4FGL_J2324.7+0801_daily_bin313.fits outfile=/scratch/kocevski/838085/cmap_HighResolution_320457601_320716801_4FGL_J2324.7+0801_daily_bin313.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/838085/ft1_filtered_4FGL_J2324.7+0801_daily_bin313.fits evtable="EVENTS" scfile=/scratch/kocevski/838085/ft2_4FGL_J2324.7+0801_daily_bin313.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/838085/Model_4FGL_J2324.7+0801_daily_bin313.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/838085/ft1_filtered_4FGL_J2324.7+0801_daily_bin313.fits.....................!
real 93.12
user 91.72
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4558       1.0000         .10000E-03   10000.    
     3 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0683       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.570       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5225       1.0000         .10000E-03   10000.    
     9 'norm      '    .43834       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.830       1.0000         .10000E-03   10000.    
    15 'Prefactor '    88.104       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10118       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9445       1.0000         .10000E-03   10000.    
    18 'norm      '    11.618       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1091       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0197       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=   8169.839     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2926 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    86.562       -.67565E-06** at limit **
   2  Prefactor     6.4559        .44068       -.22338E-07    .34226E-03
   3  norm          .10000E-03    19.283        .38128E-06** at limit **
   4  Prefactor     3.0733        99.680       -.12016E-05   -.31681E-05
   5  Prefactor     .10000E-03    12.689        .47368E-06** at limit **
   6  Prefactor     .10000E-03    14.753        .21989E-06** at limit **
   7  Prefactor     13.574        19.068       -.15962E-06    .42187E-04
   8  Prefactor     8.5245        7.1080       -.50293E-07   -.18315E-04
   9  norm          .43844        1.0447        .21048E-06    .40957E-03
  10  Prefactor     .10000E-03    10.482       -.11765E-05** at limit **
  11  Prefactor     .10000E-03    6.9652        .24541E-07** at limit **
  12  Prefactor     .10000E-03    32.810        .10009E-07** at limit **
  13  norm          .10000E-03    8.0135       -.94864E-06** at limit **
  14  Prefactor     13.829        9.4404       -.47584E-06    .14475E-03
  15  Prefactor     87.963        229.31        .17996E-04    .70667E-04
  16  Prefactor     .24209E-01    12.466       -.33270E-05    .28705E-03
  17  Prefactor     4.0244        45.717       -.15264E-06   -.23752E-04
  18  norm          11.619        11.405       -.43028E-08    .17260E-05
  19  norm          .10000E-03    12.939       -.41648E-06** at limit **
  20  Prefactor     .10000E-03    2.8211       -.38055E-06** at limit **
  21  Prefactor     .10000E-03    43.940       -.81809E-07** at limit **
  22  Prefactor     .10000E-03    16.414       -.41746E-06** at limit **
  23  Prefactor     .10000E-03    2.4703        .45571E-07** at limit **
  24  Normalizat    1.1092        .24256        .32850E-05    .17245E-03
  25  Prefactor     1.0196        .14347       -.15179E-05    .46464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.45591
  norm       = 0.0001
  Prefactor  = 3.07331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5742
  Prefactor  = 8.52451
  norm       = 0.438442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.8285
  Prefactor  = 87.9634
  Prefactor  = 0.0242088
  Prefactor  = 4.02438
  norm       = 11.6187
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10919
  Prefactor  = 1.01957
 **********
 **   18 **HESSE 
 **********

 FCN=   8169.839     FROM HESSE     STATUS=OK           431 CALLS     3357 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    88.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4559        .44045        .15080E-04   -1.5200    
   3  norm          .10000E-03    19.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0733        100.28        .23158E-03   -1.5357    
   5  Prefactor     .10000E-03    12.991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.574        19.086        .10873E-03   -1.4971    
   8  Prefactor     8.5245        7.1089        .13731E-03   -1.5124    
   9  norm          .43844        .97875        .13046E-02   -1.5576    
  10  Prefactor     .10000E-03    10.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.9738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.0010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.829        9.3968        .10770E-03   -1.4964    
  15  Prefactor     87.963        252.68        .21402E-03   -1.3829    
  16  Prefactor     .24209E-01    15.822        .77753E-01   -1.5677    
  17  Prefactor     4.0244        45.082        .20311E-03   -1.5307    
  18  norm          11.619        11.405        .11753E-03   -1.5026    
  19  norm          .10000E-03    12.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.8555        .14817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    44.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.4731        .13873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1092        .27563        .36197E-03   -.89457    
  25  Prefactor     1.0196        .16311        .23762E-03   -.92080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01517e-09
Minuit parameter uncertainties:
  1  0.000209091
  2  0.44045
  3  1.14462e-05
  4  35.1744
  5  6.09392e-06
  6  1.67687e-06
  7  19.0942
  8  7.10965
  9  0.978783
  10  2.04929e-05
  11  3.11655e-06
  12  4.19451e-05
  13  2.55916e-05
  14  9.39779
  15  255.874
  16  1.23554
  17  26.9645
  18  11.4071
  19  1.10367e-05
  20  3.27453e-06
  21  4.18861e-05
  22  2.62361e-05
  23  1.7326e-06
  24  0.275991
  25  0.163187
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  2.049e-05  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.020e+00  1.632e-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:  1.109e+00  2.760e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/838085/likelihoodResults_320457601_320716801_4FGL_J2324.7+0801_daily_bin313.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) = 8169.83986761
delta logL = -0.00045369450163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8169.83941478
delta logL = -8.68508323038e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10705E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2470       1.0000          .0000       10.000    
     3 'Normalizat'    1.1089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0197       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=   8169.839     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    388.60        .90712E-02** at limit **
   2  Index         2.2669        5.4789        .50000       -.17425E-04
   3  Normalizat    1.1092        .36199E-01    .81760E-01    .49392E-04
   4  Prefactor     1.0196        .23006E-01    .42166E-01    .48826E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26695
  Normalizat = 1.10919
  Prefactor  = 1.01957
 **********
 **   18 **HESSE 
 **********

 FCN=   8169.839     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    333.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2669        6.6532        .50000       -.57831    
   3  Normalizat    1.1092        .33024E-01    .36197E-03   -.89457    
   4  Prefactor     1.0196        .21030E-01    .23762E-03   -.92080    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.6368e-09
Minuit parameter uncertainties:
  1  0.000485426
  2  23.4047
  3  0.0330246
  4  0.0210306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/838085': 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) = 8169.83941376
delta logL = 1.49260813487e-07

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  4.854e-04  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.267e+00  2.340e+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.020e+00  2.103e-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:  1.109e+00  3.302e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/838085/cmap_HighResolution_320457601_320716801_4FGL_J2324.7+0801_daily_bin313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-03', job_status='DONE', photon_flux_upper_limit='9.73e-08', time_completed='2021-09-29 16:21:57.411638', job_id='838085', GAL2='1.02', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632957717.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='313' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:21:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 838085: <4FGL_J2324.7+0801_daily_bin313> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin313> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 16:05:53 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:05:55 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:05:55 2021
Terminated at Wed Sep 29 16:21:58 2021
Results reported at Wed Sep 29 16:21:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin313 351.19 8.0282 320457601 320716801 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 :                                   848.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            965 sec.

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

