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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1152
RA = 351.19, Dec = 8.0282
tmin = 537926401, tmax = 538185601
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='843585', job_status='RUN', time_executed='2021-09-29 16:28:24.501315', time_epoch_executed='1632958104.5' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/843585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/843585/ft1_4FGL_J2324.7+0801_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/843585/ft2_4FGL_J2324.7+0801_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/843585/ft1_4FGL_J2324.7+0801_daily_bin1152.fits outfile=/scratch/kocevski/843585/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1152.fits ra=351.19 dec=8.0282 rad=12.0 tmin=537926401.0 tmax=538185601.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 6.50
user 6.21
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/843585/ft1_filtered_4FGL_J2324.7+0801_daily_bin1152.fits" evtable="EVENTS" scfile=/scratch/kocevski/843585/ft2_4FGL_J2324.7+0801_daily_bin1152.fits sctable="SC_DATA" outfile=/scratch/kocevski/843585/ltcube_537926401_538185601_4FGL_J2324.7+0801_daily_bin1152.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/843585/ft2_4FGL_J2324.7+0801_daily_bin1152.fits
.....................!
real 11.65
user 11.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/843585/ft1_filtered_4FGL_J2324.7+0801_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/843585/ft2_4FGL_J2324.7+0801_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/843585/ltcube_537926401_538185601_4FGL_J2324.7+0801_daily_bin1152.fits outfile=/scratch/kocevski/843585/expmap_537926401_538185601_4FGL_J2324.7+0801_daily_bin1152.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/843585/ltcube_537926401_538185601_4FGL_J2324.7+0801_daily_bin1152.fits
.....................!
real 190.23
user 185.27
sys 4.37

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/843585/ft1_filtered_4FGL_J2324.7+0801_daily_bin1152.fits scfile=/scratch/kocevski/843585/ft2_4FGL_J2324.7+0801_daily_bin1152.fits outfile=/scratch/kocevski/843585/cmap_HighResolution_537926401_538185601_4FGL_J2324.7+0801_daily_bin1152.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/843585/ft1_filtered_4FGL_J2324.7+0801_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/843585/ft2_4FGL_J2324.7+0801_daily_bin1152.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/843585/Model_4FGL_J2324.7+0801_daily_bin1152.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/843585/ft1_filtered_4FGL_J2324.7+0801_daily_bin1152.fits.....................!
real 83.64
user 82.32
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.583       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0698       1.0000         .10000E-03   10000.    
     3 'norm      '    15.328       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0027       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.145       1.0000         .10000E-03   10000.    
     9 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.730       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.550       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3159       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7647       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.436       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2180       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95277       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=   7281.715     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2864 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.583        23.027        .13675E-06    .21096E-04
   2  Prefactor     2.0697        .32950       -.70186E-07   -.34420E-02
   3  norm          15.328        14.630        .46118E-07   -.18627E-03
   4  Prefactor     .10000E-03    18.407        .54472E-06** at limit **
   5  Prefactor     1.0025        8.6047        .21524E-04   -.51339E-03
   6  Prefactor     .10000E-03    9.4902        .62730E-06** at limit **
   7  Prefactor     .10000E-03    4.2891        .33085E-07** at limit **
   8  Prefactor     35.155        14.620       -.73096E-06   -.33798E-03
   9  norm          .10000E-03    .39130       -.55614E-07** at limit **
  10  Prefactor     11.729        9.4012       -.16705E-06   -.30013E-03
  11  Prefactor     20.491        31.013        .22516E-05   -.11324E-03
  12  Prefactor     2.2768        195.90       -.34467E-05   -.12871E-03
  13  norm          .10000E-03    3.7703        .21209E-06** at limit **
  14  Prefactor     4.7647        6.2957       -.55895E-07   -.22136E-03
  15  Prefactor     .10000E-03    62.566       -.53355E-06** at limit **
  16  Prefactor     .10000E-03    8.2626       -.10031E-05** at limit **
  17  Prefactor     .10000E-03    7.8318        .87968E-07** at limit **
  18  norm          .10000E-03    4.2559       -.33570E-06** at limit **
  19  norm          .10000E-03    13.298       -.59265E-06** at limit **
  20  Prefactor     .10000E-03    1.6473       -.11356E-06** at limit **
  21  Prefactor     .10000E-03    11.380       -.43053E-06** at limit **
  22  Prefactor     22.433        20.697        .30451E-06   -.16968E-03
  23  Prefactor     .10000E-03    4.9496       -.60516E-07** at limit **
  24  Normalizat    1.2179        .22761        .40201E-05   -.68924E-03
  25  Prefactor     .95286        .13904       -.52988E-05   -.15812E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.5835
  Prefactor  = 2.06974
  norm       = 15.3276
  Prefactor  = 0.0001
  Prefactor  = 1.00255
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 35.1548
  norm       = 0.0001
  Prefactor  = 11.7292
  Prefactor  = 20.4911
  Prefactor  = 2.27675
  norm       = 0.0001
  Prefactor  = 4.76472
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4331
  Prefactor  = 0.0001
  Normalizat = 1.2179
  Prefactor  = 0.952864
 **********
 **   18 **HESSE 
 **********

 FCN=   7281.715     FROM HESSE     STATUS=OK           413 CALLS     3277 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.583        23.066        .73662E-04   -1.4620    
   2  Prefactor     2.0697        .33030        .18524E-04   -1.5420    
   3  norm          15.328        14.633        .10230E-03   -1.4925    
   4  Prefactor     .10000E-03    18.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0025        8.6720        .23996E-02   -1.5508    
   6  Prefactor     .10000E-03    9.5382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2899        .17260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.155        14.618        .67598E-04   -1.4521    
   9  norm          .10000E-03    1.1377        .10395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.729        9.4108        .11697E-03   -1.5023    
  11  Prefactor     20.491        31.081        .88356E-04   -1.4802    
  12  Prefactor     2.2768        200.38        .26957E-03   -1.5406    
  13  norm          .10000E-03    3.7797        .16173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7647        6.2895        .18432E-03   -1.5271    
  15  Prefactor     .10000E-03    62.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.3674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.8370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.2587        .17196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    13.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.6552        .10694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.433        20.711        .84564E-04   -1.4760    
  23  Prefactor     .10000E-03    4.9699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2179        .26684        .33036E-03   -.86052    
  25  Prefactor     .95286        .16309        .22802E-03   -.94318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2101e-09
Minuit parameter uncertainties:
  1  23.0729
  2  0.3303
  3  14.636
  4  0.000153516
  5  5.898
  6  0.000145499
  7  2.08426e-05
  8  14.6198
  9  1.4523e-06
  10  9.412
  11  31.1057
  12  42.8666
  13  3.31591e-05
  14  6.29036
  15  4.19482e-05
  16  0.000259826
  17  3.7559e-05
  18  2.84325e-05
  19  0.000201446
  20  1.13383e-05
  21  6.24362e-05
  22  20.7173
  23  7.33109e-06
  24  0.267142
  25  0.163174
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.173e+01  9.412e+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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.529e-01  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.218e+00  2.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.95
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.45e-05

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) = 7280.95726442
delta logL = 0.758103643676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7280.69874331
delta logL = 1.01662475271

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0185       1.0000         .10000E-03   10000.    
     2 'Index     '    .93318       1.0000          .0000       10.000    
     3 'Normalizat'    1.2555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94642       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=   7280.699     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      211 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0185        4.3509        .50293E-02   -.15737E-02
   2  Index         .93318        .45146        .27615       -.66885E-04
   3  Normalizat    1.2554        .22015        .73689E-01    .11505E-04
   4  Prefactor     .94646        .13705        .45594E-01    .88193E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.01849
  Index      = 0.933178
  Normalizat = 1.25541
  Prefactor  = 0.946457
 **********
 **   18 **HESSE 
 **********

 FCN=   7280.699     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0185        7.0414        .16680E-03   -1.5307    
   2  Index         .93318        .73911        .11971E-02   -.94991    
   3  Normalizat    1.2554        .25964        .32609E-03   -.84907    
   4  Prefactor     .94646        .16183        .22878E-03   -.94536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22251e-09
Minuit parameter uncertainties:
  1  7.04287
  2  0.747307
  3  0.259911
  4  0.161911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/843585': 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) = 7280.69874329
delta logL = 1.0166247753

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  4.018e+00  7.043e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  9.332e-01  7.473e-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:  9.465e-01  1.619e-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.255e+00  2.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.90
Ra Dec: 351.190 8.028
Photon Index (Free Index): 0.93 +/- 0.75
Photon Flux (Free Index): 4.52e-09 +/- 5.53e-09
Energy Flux (Free Index): 7.66e-05 +/- 1.07e-04

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/843585/cmap_HighResolution_537926401_538185601_4FGL_J2324.7+0801_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='7.66e-05', photon_flux_error='3.39e-08', dlogl='1.02e+00', energy_flux='1.80e-05', photon_flux2='4.52e-09', job_status='DONE', time_completed='2021-09-29 16:39:48.014585', photon_index_error2='0.75', photon_index2='0.93', ts='7.95', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.07e-04', EG='1.22', time_epoch_completed='1632958788.01', return_code='0', job_id='843585', GAL2='0.95', EG2='1.26', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='5.53e-09', ts2='9.90', photon_index='2.23' WHERE bin_id='1152' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:39:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 843585: <4FGL_J2324.7+0801_daily_bin1152> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1152> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 16:25:24 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:25:26 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:25:26 2021
Terminated at Wed Sep 29 16:39:48 2021
Results reported at Wed Sep 29 16:39:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1152 351.19 8.0282 537926401 538185601 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 :                                   676.26 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             243.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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

